Back to index

freedink-data  1.08.20080920
S1-WAND.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    say_stop("`6Hello fellow traveller.", &current_sprite);
00008   }
00009 }
00010 
00011 //playmidi("xfiles.mid");
00012 
00013 void talk ( void )
00014 {
00015  freeze(1);
00016  freeze(&current_sprite);
00017  choice_start()
00018  "Inquire about his travels"
00019  "Ask about news"
00020 (&story == 2)"Ask about AlkTree nuts"
00021  "Leave"
00022  choice_end()
00023  wait(300);
00024   if (&result == 1)
00025    {
00026     story();
00027    }
00028   if (&result == 2)
00029    {
00030     news();
00031    }
00032   if (&result == 3)
00033    {
00034     say_stop("`6AlkTree nuts??  Those make for a hearty meal.  Let's see..", &current_sprite);
00035     say_stop("`6I think there's a tree to the south east of the small village", &current_sprite);
00036     say_stop("`6near here.", &current_sprite);
00037    }
00038  unfreeze(1);
00039  unfreeze(&current_sprite);
00040 }
00041 
00042 void hit ( void )
00043 {
00044  int &dir;
00045  say("`6Ow, crazy bastard!!", &current_sprite);
00046  sp_speed(&current_sprite, 4);
00047  sp_timing(&current_sprite, 0);
00048  //Disappear off screen
00049  &dir = random(4, 1);
00050  if (&dir == 1)
00051  {
00052          move(&current_sprite, 1, -100, 1);
00053  }
00054  if (&dir == 2)
00055  {
00056          move(&current_sprite, 3, 700, 1);
00057  }
00058  if (&dir == 3)
00059  {
00060          move(&current_sprite, 7, -100, 1);
00061  }
00062  if (&dir == 4)
00063  {
00064          move(&current_sprite, 9, 700, 1);
00065  }
00066  sp_brain(&current_sprite, 0);
00067  sp_kill(&current_sprite, 2000);
00068  script_attach(0);
00069 
00070 }
00071 
00072 void die ( void )
00073 {
00074  say("I'm afraid he wont be making it to his destination.", 1);
00075 }
00076 
00077 void story( void )
00078 {
00079  int &maybe = random(3,1);
00080  if (&maybe == 1)
00081   {
00082    say_stop("`6Be careful in the West.  The Goblin castle has extreme", &current_sprite);
00083    say_stop("`6defenses to say the least.", &current_sprite);
00084    wait(250);
00085    say_stop("`6I've seen many a traveler lose his head if you know what I mean.", &current_sprite);
00086   }
00087  if (&maybe == 2)
00088   {
00089    say_stop("`6I've heard of an old man who lives just north of SunCool pond.", &current_sprite);
00090    say_stop("`6Although I've never seen him I have heard noises when I've", &current_sprite);
00091    say_stop("`6gone by there.", &current_sprite);
00092   }
00093  if (&maybe == 3)
00094   {
00095    say_stop("`6Travel by sea is quite spendy these days. I suggest if", &current_sprite);
00096    say_stop("`6you aren't a person of wealth you look towards perhaps", &current_sprite);
00097    say_stop("`6working for your voyage or find a friend who will pay", &current_sprite);
00098    say_stop("`6for you.  Otherwise you could be saving for a long time.", &current_sprite);
00099   }
00100 }
00101 
00102 void news( void )
00103 {
00104 int &maybe = random(3,1);
00105   if (&maybe == 1)
00106    {
00107     makefun();
00108     return;
00109    }
00110  &maybe = random(3,1); 
00111  if (&maybe == 1)
00112   {
00113    say_stop("`6There's some talk of an old evil awakening to", &current_sprite);
00114    say_stop("`6the west.  I don't know though, I think it's all", &current_sprite);
00115    say_stop("`6just silly superstition.", &current_sprite);
00116    wait(500);
00117    say_stop("Yes.. I'm sure it's super ... stition ...", 1);
00118   }
00119  if (&maybe == 2)
00120   {
00121    say_stop("`6In the city of PortTown, the populous can seem quite", &current_sprite);
00122    say_stop("`6rowdy at times.  Some say it's because of the frequenting", &current_sprite);
00123    say_stop("`6of pirates in the town.  Either way, be careful if you", &current_sprite);
00124    say_stop("`6ever travel there.", &current_sprite);
00125   }
00126  if (&maybe == 3)
00127   {
00128    say_stop("`6If you ever run into goblins, be careful.", &current_sprite);
00129    say_stop("`6They're pretty prone to violence, so just don't", &current_sprite);
00130    say_stop("`6upset them.  However they're quite stupid.", &current_sprite);
00131    say_stop("`6You could probably tell them just about anything,", &current_sprite);
00132    say_stop("`6they'll believe it.", &current_sprite);
00133   }
00134 }
00135 
00136 void makefun( void )
00137 {
00138  //I think story = 5 ???
00139  if (&story == 6)
00140   {
00141    int &maybe = random(3,1);
00142    if(&maybe == 1)
00143    {
00144     say_stop("`6I heard there was a bad fire in a nearby village,", &current_sprite);
00145     say_stop("`6hope no one was hurt too bad.", &current_sprite);
00146     wait(500);
00147     say_stop("Yes.. I'm sure no one was ... hurt ...", 1);
00148    }
00149   }
00150  if (&old_womans_duck == 3)
00151   {
00152    say_stop("`6In the small village nearby, I've heard there's", &current_sprite);
00153    say_stop("`6a madman.  A murderer who stalks and kills the pets of the people!", &current_sprite);
00154    wait(250);
00155    say_stop("`6Horrible isn't it?", &current_sprite);
00156    wait(250);
00157    say_stop("Yes.. very .. horrible ..", 1);
00158   }
00159  if (&old_womans_duck == 5)
00160   {
00161    say_stop("`6In the small village nearby, I've heard there's", &current_sprite);
00162    say_stop("`6a madman.  A murderer who stalks and kills the pets of the people!", &current_sprite);
00163    wait(250);
00164    say_stop("`6Horrible isn't it?", &current_sprite);
00165    wait(250);
00166    say_stop("Yes.. very uh .. horrible ..", 1);
00167   }
00168  else
00169  {
00170   say_stop("`6So young man, what's your name?", &current_sprite);
00171   say_stop("Smallwood, Dink Smallwood.", 1);
00172   wait(250);
00173   say_stop("`6Greetings Mr. Smallwood.", &current_sprite);
00174  }
00175 }