Back to index

freedink-data  1.08.20080920
SC-WIZ.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &pap;
00004  int &wherex;
00005  int &wherey;
00006 }
00007 
00008 void talk( void )
00009 {
00010  &wherex = sp_x(&current_sprite, -1);
00011  &wherey = sp_y(&current_sprite, -1);
00012  freeze(1);
00013  freeze(&current_sprite);
00014  if (&story > 14)
00015  {
00016   say_stop("`6Good job on winning.", &current_sprite);
00017   wait(250);
00018   say_stop("`6Bye.", &current_sprite);
00019   int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
00020   sp_seq(&mcrap, 167);
00021   playsound(24, 22052, 0, 0, 0);
00022   unfreeze(1);
00023   unfreeze(&current_sprite);
00024   &snowc = 1;
00025   sp_active(&current_sprite, 0);  
00026   return;
00027  }
00028  say_stop("Who, who are you?", 1);
00029  wait(250);
00030  say_stop("`6Me, who are you, someone not a goblin in these parts?!?", &current_sprite);
00031  wait(250);                           
00032  say_stop("What are you talking about?", 1);
00033  wait(250);
00034  say_stop("`6The war, the goblin war!", &current_sprite);
00035  wait(250);
00036  say_stop("`6I must defend this castle, I can't let them take it back.", &current_sprite);
00037  wait(250);
00038  say_stop("The .. the goblin wars, those ended a long long time ago!!", 1);
00039  wait(250);
00040  say_stop("They haven't fought for over 100 years!", 1);
00041  wait(250);
00042  say_stop("`6What!?!", &current_sprite);
00043  wait(250);
00044  say_stop("`6Is this true?", &current_sprite);
00045  wait(250);
00046  say_stop("I'm afraid so ...", 1);
00047  wait(250);
00048  say_stop("`6What ... what of the city of KernSin?", &current_sprite);
00049  wait(250);
00050  say_stop("Ooooo, well, both the city and its castle were destroyed", 1);
00051  wait(250);
00052  say_stop("during the last part of the war 100 years ago.", 1);
00053  wait(250);
00054  say_stop("Later it was partly rebuilt and now is the smaller town of KernSin.", 1);
00055  wait(250);
00056  say_stop("`6This, this is so much.  Did we win the war?", &current_sprite);
00057  wait(250);
00058  say_stop("Yes.", 1);
00059  wait(1000);
00060  say_stop("`6I .. I have to go somewhere, think about what has happened.", &current_sprite);
00061  wait(250);
00062  say_stop("`6Thank you ... what is your name friend?", &current_sprite);
00063  wait(250);
00064  say_stop("Dink Smallwood sir.", 1);
00065  wait(250);
00066  say_stop("`6SMALLWOOD ?!?", &current_sprite);
00067  wait(250);
00068  say_stop("`6I thought you were exiled.", &current_sprite);
00069  wait(250);
00070  say_stop("What??", 1);
00071  wait(250);
00072  say_stop("`6Of course, 100 years ago, he would've had children by now.", &current_sprite);
00073  wait(250);
00074  say_stop("Hey, you wanna tell me what you're talking about?", 1);
00075  wait(250);
00076  say_stop("`6Your family has an interesting lineage.", &current_sprite);
00077  wait(250);
00078  say_stop("`6The ancient ones are drawn to you,", &current_sprite);
00079  wait(250);
00080  say_stop("`6they can draw and feed upon magic from your family.", &current_sprite);
00081  wait(250);
00082  say_stop("`6And if one were to destroy you, they would gain immense power.", &current_sprite);
00083  wait(250);
00084  say_stop("There is some chaos brewing in this land now.", 1);
00085  wait(250);
00086  say_stop("We don't know who's behind it either.  I was on my way to", 1);
00087  wait(250);
00088  say_stop("the darklands when I came here, I have to rescue a friend.", 1);
00089  wait(250);
00090  say_stop("`6Be careful Dink, whoever is behind this is probably an ancient,", &current_sprite);
00091  wait(250);
00092  say_stop("`6making it all seem to be someone else.", &current_sprite);
00093  wait(500);
00094  say_stop("`6I must go, beware Dink, and good luck.", &current_sprite);
00095  int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
00096  sp_seq(&mcrap, 167);
00097  playsound(24, 22052, 0, 0, 0);
00098  unfreeze(1);
00099  unfreeze(&current_sprite);
00100  &snowc = 1;
00101  sp_active(&current_sprite, 0);
00102 }
00103 
00104 void hit( void )
00105 {
00106  &wherex = sp_x(&current_sprite, -1);
00107  &wherey = sp_y(&current_sprite, -1);
00108  say("`6Bad idea ...", &current_sprite);
00109  &pap = random(3, 1);
00110  if (&pap == 1)
00111  {
00112   int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
00113   sp_seq(&mcrap, 167);
00114   playsound(24, 22052, 0, 0, 0);
00115   int &mcrap2 = create_sprite(100, 143, 7, 167, 1);
00116   sp_seq(&mcrap2, 167);
00117   sp_x(&current_sprite, 100);
00118   sp_y(&current_sprite, 143);
00119  }
00120  if (&pap == 2)
00121  {
00122   int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
00123   sp_seq(&mcrap, 167);
00124   playsound(24, 22052, 0, 0, 0);
00125   int &mcrap2 = create_sprite(429, 151, 7, 167, 1);
00126   sp_seq(&mcrap2, 167);
00127   sp_x(&current_sprite, 429);
00128   sp_y(&current_sprite, 151);
00129  }
00130  if (&pap == 3)
00131  {
00132   int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
00133   sp_seq(&mcrap, 167);
00134   playsound(24, 22052, 0, 0, 0);
00135   int &mcrap2 = create_sprite(288, 301, 7, 167, 1);
00136   sp_seq(&mcrap2, 167);  
00137   sp_x(&current_sprite, 288);
00138   sp_y(&current_sprite, 301);  
00139  }
00140 }