Back to index

freedink-data  1.08.20080920
S2-CAVE.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &dude;
00004 
00005 
00006  if (&caveguy == 0)
00007  {
00008   freeze(1);
00009   &dude = create_sprite(464, 116, 0, 0, 0);
00010 
00011  &temp1hold = &dude;
00012   sp_brain(&dude, 0);
00013   sp_base_walk(&dude, 370);
00014   sp_speed(&dude, 2);
00015   sp_timing(&dude, 0);
00016  //set starting pic
00017   sp_pseq(&dude, 373);
00018   sp_pframe(&dude, 1);
00019   sp_dir(&dude, 2);
00020   //Playmidi("Mystery.mid", 1);
00021   say_stop("`5Help me!", &dude);
00022   wait(300);
00023   say_stop("The hell!?!", 1);
00024   move_stop(1, 6, 130, 1);
00025   move_stop(1, 3, 190, 1);
00026   move_stop(1, 6, 300, 1);
00027   say_stop("What's your problem?", 1);
00028   move(&dude, 1, 400, 1);
00029   say_stop("`5They threw me in here", &dude);
00030   wait(300);
00031   say_stop("Huh?", 1);
00032   wait(200);
00033   say_stop("Who threw you in here?", 1);
00034   wait(300);
00035 
00036   say_stop("`5They did, agents of the Cast.", &dude);
00037   sp_dir(1, 2);
00038   wait(750);
00039   say_stop("Is he telling the truth?", 1);
00040   sp_dir(1, 6);
00041   wait(500);
00042   say_stop("You probably deserved it...", 1);
00043   wait(300);
00044   say_stop("`5No, actually I didn't.", &dude);
00045   wait(300);
00046   say_stop("Oh.", 1);
00047   wait(300);
00048   say_stop("`5Now will you help me get outta here!", &dude);
00049   wait(300);
00050   say_stop("`5They'll be back here soon, they'll kill us both!", &dude);
00051   wait(300);
00052   say_stop("Ok ok, how do I get you out?", 1);
00053   wait(300);
00054   say_stop("`5I'm not sure.  That statue seems to keep me in.", &dude);
00055   wait(200);
00056   say_stop("`5I think it's protected with magic.", &dude);
00057   wait(250);
00058   say_stop("`5You know any, kid?", &dude);
00059   wait(300);
00060   say_stop("Hmm, just my fireball spell.", 1);
00061   wait(300);
00062   say_stop("`5I don't think that'll cut it.", &dude);
00063   wait(300);
00064   say_stop("`5Try in town, someone there's gotta know something.", &dude);
00065   wait(300);
00066   say_stop("Ok... by the way, my name is Dink.  Goodbye for now.", 1);
00067   &caveguy = 1;
00068   unfreeze(1);
00069   return;
00070  }
00071  if (&caveguy == 1)
00072  {
00073   freeze(1);
00074   &dude = create_sprite(464, 116, 0, 0, 0);
00075  &temp1hold = &dude;
00076 
00077   sp_brain(&dude, 0);
00078   sp_base_walk(&dude, 370);
00079   sp_speed(&dude, 2);
00080   sp_timing(&dude, 0);
00081  //set starting pic
00082   sp_pseq(&dude, 371);
00083   sp_pframe(&dude, 1);
00084   sp_dir(&dude, 2);
00085   //Playmidi("Mystery.mid", 1);
00086   say_stop("`5Any luck?", &dude);
00087   move_stop(1, 6, 130, 1);
00088   say_stop("Uh, working on that.", 1);
00089   wait(500);
00090   say_stop("`5Hurry!!", &dude);
00091   sp_dir(1, 2);
00092   wait(750);
00093   sp_dir(1, 6);
00094   wait(500);
00095   say_stop("Noted.", 1);
00096   unfreeze(1);
00097  }
00098  if (&caveguy == 2)
00099  {
00100   freeze(1);
00101   &dude = create_sprite(464, 116, 0, 0, 0);
00102  &temp1hold = &dude;
00103 
00104   sp_brain(&dude, 0);
00105   sp_base_walk(&dude, 370);
00106   sp_speed(&dude, 2);
00107   sp_timing(&dude, 0);
00108  //set starting pic
00109   sp_pseq(&dude, 371);
00110   sp_pframe(&dude, 1);
00111   sp_dir(&dude, 2);
00112   //Playmidi("Mystery.mid");
00113   wait(500);
00114   say_stop("`5Any luck yet?", &dude);
00115   move_stop(1, 6, 130, 1);
00116   say_stop("There's some old man in town who knows some magic.", 1);
00117    wait(200:
00118   say_stop("He might have a spell that could help us.", 1);
00119   wait(500);
00120   sp_dir(&dude, 2);
00121   wait(750);
00122   sp_dir(&dude, 4);
00123   wait(500);
00124   say_stop("`5THEN WHAT THE HELL ARE YOU DOING HERE?", &dude);
00125   wait(250);
00126   say_stop("Oh yeah, sorry.", 1);
00127   unfreeze(1);
00128  }
00129  if (&caveguy == 3)
00130  {
00131   freeze(1);
00132  &temp1hold = &dude;
00133 
00134   &dude = create_sprite(464, 116, 0, 0, 0);
00135   sp_brain(&dude, 0);
00136   sp_base_walk(&dude, 370);
00137   sp_speed(&dude, 2);
00138   sp_timing(&dude, 0);
00139  //set starting pic
00140   sp_pseq(&dude, 371);
00141   sp_pframe(&dude, 1);
00142   sp_dir(&dude, 2);
00143   //Playmidi("Mystery.mid");
00144   wait(500);
00145   say_stop("`5Any luck YET!?", &dude);
00146   wait(250);
00147   move_stop(1, 6, 130, 1);
00148   say_stop("The damn old man says I'm not powerful enough yet", 1);
00149   wait(200);
00150   say_stop("so I'm trying to raise my skills now.", 1);
00151   wait(750);
00152   sp_dir(&dude, 2);
00153   wait(500);
00154   sp_dir(&dude, 4);
00155   wait(500);
00156   say_stop("`5Well hey that's great.", &dude);
00157   wait(200);
00158   say_stop("`5I'll just be DYING here and hope those agents don't come back!!", &dude);
00159   wait(250);
00160   say_stop("Ok, ok I'm on it..", 1);
00161   unfreeze(1);
00162  }
00163  if (&caveguy == 4)
00164  {
00165   freeze(1);
00166   &dude = create_sprite(464, 116, 0, 0, 0);
00167  &temp1hold = &dude;
00168 
00169   sp_brain(&dude, 0);
00170   sp_base_walk(&dude, 370);
00171   sp_speed(&dude, 2);
00172   sp_timing(&dude, 0);
00173  //set starting pic
00174   sp_pseq(&dude, 371);
00175   sp_pframe(&dude, 1);
00176   sp_dir(&dude, 2);
00177   //Playmidi("Mystery.mid");
00178   wait(500);
00179   say_stop("`5I'm going to die soon, I just know it.", &dude);
00180   wait(300);
00181   say_stop("`5Any luck!?!", &dude);
00182   wait(250);
00183   move_stop(1, 6, 130, 1);
00184   say_stop("I got the spell, so let's see if it works.", 1);
00185   wait(250);
00186   say_stop("`5All right!!", &dude);
00187   wait(250);
00188   say_stop("`5Hurry though, I could've sworn I heard something just before you came.", &dude);
00189   wait(250);
00190   say_stop("Ok.", 1);
00191   unfreeze(1);
00192  }
00193 }
00194 
00195