Back to index

freedink-data  1.08.20080920
S2-MH-M.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  freeze(1);
00004  freeze(&current_sprite);
00005 
00006  say_stop("`0Welcome young BallWood.", &current_sprite);
00007  wait(250);
00008  say_stop("It's Smallwood sir.", 1);
00009  say_stop("`0Yes, now what did you want?", &current_sprite);
00010  unfreeze(1);
00011   unfreeze(&current_sprite);
00012 }
00013 
00014 void talk( void )
00015 {
00016  if (&caveguy == 2)
00017  {
00018   freeze(1);
00019  freeze(&current_sprite);
00020   say_stop("Please.  Teach me some incredibly strong sorcerous enchantment!", 1);
00021   wait(250);
00022   say_stop("Er, to help the man trapped in the dungeon I mean.", 1);
00023   wait(250);
00024   if (&magic > 4)
00025   {
00026    say_stop("`0I sense you are powerful enough now Tallwood.", &current_sprite);
00027   wait(250);
00028    say_stop("`0You will now understand the Acid Rain magic.", &current_sprite);
00029   wait(250);
00030   say_stop("Rain?  Rain is the big magic you will teach?", 1);
00031   wait(250);
00032    say_stop("`0Scoff not child or you shall burn and kill yourself with it!", &current_sprite);
00033    //Give magic here
00034    add_magic("item-ice",437, 5);
00035 
00036    //SETH!!!
00037    //Give magic here
00038    //This magic will allow Dink to free the guy in the cave ..
00039    //Even though the guy only walks a few feet to be killed again anyway...
00040    //Ooops
00041    playsound(22,22050,0,0,0);
00042    &caveguy = 4;
00043    say_stop("I now have Rain Magic.  Yay.", 1);
00044    unfreeze(1);
00045   unfreeze(&current_sprite);
00046      return;
00047   }
00048   say_stop("`0I'm sorry Smallweed, but your magic is not powerful enough yet.", &current_sprite);
00049   wait(250);
00050   say_stop("`0You must have at least 5 magic for the new spell.", &current_sprite);
00051   &caveguy = 3;
00052   unfreeze(1);
00053   unfreeze(&current_sprite);
00054   return;
00055  }
00056  if (&caveguy == 3)
00057  {
00058  freeze(&current_sprite);
00059   freeze(1);
00060   //First check him
00061   if (&magic > 4)
00062   {
00063    say_stop("`0I sense you are powerful enough now Tallwood.", &current_sprite);
00064    wait(250);
00065    say_stop("`0You will now understand the Acid Rain magic.", &current_sprite);
00066   wait(250);
00067   say_stop("Rain?  Rain is the big magic you will teach?", 1);
00068   wait(250);
00069    say_stop("`0Scoff not child or you shall burn and kill yourself with it!", &current_sprite);
00070    //Give magic here
00071    add_magic("item-ice",437, 5);
00072    playsound(10,22050,0,0,0);
00073    &caveguy = 4;
00074    say_stop("I now have Rain Magic.  Yay.", 1);
00075 
00076    unfreeze(1);
00077   unfreeze(&current_sprite);
00078     return;
00079   }
00080   //Otherwise
00081   say_stop("`0You are still not powerful enough Brickwood.", &current_sprite);
00082   wait(250);
00083   say_stop("Smallwood sir.", 1);
00084   wait(250);
00085   say_stop("`0You need 5 magic for this spell.", &current_sprite);
00086   wait(500);
00087   sp_dir(1, 2);
00088   wait(500);
00089   say_stop("Aww man.", 1);
00090   unfreeze(1);
00091   unfreeze(&current_sprite);
00092   return;
00093  }
00094  freeze(1);
00095  freeze(&current_sprite);
00096  say_stop("Hey Mister, you know anymore magic you can teach me?", 1);
00097  wait(250);
00098  say_stop("`0No Smallwood, I'm too old and tired anyway.", &current_sprite);
00099  wait(250);
00100  say_stop("Ok, no problem... and my name isn't.. oh.", 1);
00101 
00102  unfreeze(1);
00103   unfreeze(&current_sprite);
00104 }
00105