Back to index

freedink-data  1.08.20080920
S1-WAND2.c
Go to the documentation of this file.
00001 void main ( void )
00002 {
00003  int &maybe;
00004  &maybe = random(3,1);
00005  if (&maybe == 1)
00006   {
00007         &maybe = random(3,1);
00008         if (&maybe == 1)
00009         {
00010      sp_speed(&current_sprite, 7);
00011      sp_timing(&current_sprite, 0);
00012      move(&current_sprite, 6, 510, 1);
00013         sp_speed(&current_sprite, 1);
00014      sp_timing(&current_sprite, 33);
00015         say_stop("`9I hope they didn't follow me ..", &current_sprite);
00016         }
00017         else
00018      {
00019      say_stop("`9Hello friend..", &current_sprite);
00020         }
00021   }
00022 }
00023 
00024 void talk ( void )
00025 {
00026  freeze(1);
00027  freeze(&current_sprite);
00028  choice_start()
00029  "Ask about his travels"
00030  "Ask for news"
00031 (&story == 2)"Ask if he has any AlkTree nuts"
00032  "Leave"
00033  choice_end()
00034 
00035   if (&result == 1)
00036    {
00037     story();
00038    }
00039   if (&result == 2)
00040    {
00041     news();
00042    }
00043   if (&result == 3)
00044    {
00045     say_stop("`9AlkTree nuts??  I haven't had those in a long long time.", &current_sprite);
00046     say_stop("`9In my old town I might have been able to tell you,", &current_sprite);
00047     say_stop("`9but I don't know of any around here.", &current_sprite);
00048    }
00049  unfreeze(1);
00050  unfreeze(&current_sprite);
00051 }
00052 
00053 void hit ( void )
00054 {
00055  int &dir;
00056  say("`9Ow, the hell's your problem?!", &current_sprite);
00057  sp_speed(&current_sprite, 4);
00058  sp_timing(&current_sprite, 0);
00059  //Dissapear off screen
00060  &dir = random(4, 1);
00061  if (&dir == 1)
00062  {
00063          move(&current_sprite, 1, -100, 1);
00064  }
00065  if (&dir == 2)
00066  {
00067          move(&current_sprite, 3, 700, 1);
00068  }
00069  if (&dir == 3)
00070  {
00071          move(&current_sprite, 7, -100, 1);
00072  }
00073  if (&dir == 4)
00074  {
00075          move(&current_sprite, 9, 700, 1);
00076  }
00077  sp_brain(&current_sprite, 0);
00078  sp_kill(&current_sprite, 2000);
00079  script_attach(0);
00080 }
00081 
00082 void die ( void )
00083 {
00084  say_stop("He won't bother anyone anymore...", 1);
00085 }
00086 
00087 void story( void )
00088 {
00089 int &maybe = random(3,1);
00090  if (&maybe == 1)
00091   {
00092    say_stop("`9I just escaped from the Goblin Sanctuary.", &current_sprite);
00093    say_stop("`9It's quite a horrible place and I wouldn't recommend going there.", &current_sprite);
00094    wait(250);
00095    say_stop("That place is far to the west, how'd you get out here?", 1);
00096    say_stop("`9Well I've just been headed away from it ever since I got out.", &current_sprite);
00097    say_stop("`9I hope I can make it to PortTown and get away for a while.", &current_sprite);
00098   }
00099  if (&maybe == 2)
00100   {
00101    say_stop("`9I've always wanted to go out into the world and find adventure.", &current_sprite);
00102    say_stop("`9Whether it be working with the Royal Guard or signing up", &current_sprite);
00103    say_stop("`9with a band of mercenaries.", &current_sprite);
00104    wait(250);
00105    say_stop("`9Unfortunately for me one of my first jobs led me right into", &current_sprite);
00106    say_stop("`9being captured by the goblins.  Last time I go to the WestLands.", &current_sprite); 
00107   }
00108  if (&maybe == 3)
00109   {
00110    say_stop("`9After being around those goblins for so long I'm glad to be out.", &current_sprite);
00111    say_stop("`9Those guy are dumb as bricks man!", &current_sprite);
00112    say_stop("`9I'm embarrassed that I got captured in the first place.", &current_sprite);
00113   }
00114 }
00115 
00116 void news( void )
00117 {
00118 int &maybe = random(5,1);
00119 
00120   if (&maybe == 1)
00121    {
00122     makefun();
00123 
00124    }
00125 
00126  &maybe = random(3,1);
00127  if (&maybe == 1)
00128   {
00129    //playmidi("creepy.mid");
00130    wait(1000);
00131    say_stop("`9When I was captured at the Goblin Sanctuary I did notice something.", &current_sprite);
00132    say_stop("`9All their patrols that came back from the north seemed different.", &current_sprite);
00133    say_stop("`9Soon they started behaving really weird, not much later a few were", &current_sprite);
00134    say_stop("`9locked up right next to me and going crazy!", &current_sprite);
00135    wait(200);
00136    say_stop("Man, sounds pretty creepy.", 1);
00137    wait(200);
00138    say_stop("`9Just another reason I'm headed away for a while.", &current_sprite);
00139    wait(200);
00140   }
00141  if (&maybe == 2)
00142   {
00143    say_stop("`9While imprisoned, the goblins said that by the Crag cliffs", &current_sprite);
00144    say_stop("`9There was a wizard that they were fighting, they thought", &current_sprite);
00145    say_stop("`9they could actually get his magic if they defeated him.", &current_sprite);
00146    say_stop("`9Anyway they said this guy could actually turn people to ice!!", &current_sprite);
00147    say_stop("`9I'd guess they lost about 30 troops before they gave up.", &current_sprite);
00148   }
00149  if (&maybe == 3)
00150   {
00151    say_stop("`9I hear your Mom's a slut.  But that's just the word on", &current_sprite);
00152    say_stop("`9the street.  Ha Ha Ha", &current_sprite);
00153    say_stop("`9Ha Ha .. Ha ..", &current_sprite);
00154    say_stop("`9 ... Ha ... ", &current_sprite);
00155    say_stop("Ha Ha Ha ...", 1);
00156    say_stop("`9 .. Ha Ha ..", &current_sprite);
00157 
00158    if (&story > 4)
00159    {
00160    say_stop("Ha Ha ... wait!!!!", 1);
00161    say_stop("My Mom's dead!!!!!", 1);
00162    }
00163   }
00164 
00165 }
00166 
00167 void makefun( void )
00168 {
00169  if (&story == 5)
00170   {
00171    say_stop("`9Some other guy I meet wandering told me there was a bad fire", &current_sprite);
00172    say_stop("`9around these parts.  Hope no one was injured.", &current_sprite);
00173    wait(200);
00174    say_stop("Yes.. I'm sure no one was ... hurt ...", 1);
00175    unfreeze(1);
00176    unfreeze(&current_sprite);
00177    return;
00178   }
00179   say_stop("Greetings friend, any news?", 1);
00180   wait(200);
00181   say_stop("`9Not really.  What's your name anyway?", &current_sprite);
00182   wait(200);
00183   say_stop("Smallwood,", 1);
00184   wait(250);
00185   say_stop("Dink Smallwood.", 1);
00186   wait(200);
00187   say_stop("`9Hello, I'm Chance `Zands", &current_sprite);
00188   wait(200);
00189   say_stop("`9You have an interesting name there.", &current_sprite);
00190   wait(200);
00191   say_stop("Thank you.", 1);    
00192 }