Back to index

freedink-data  1.08.20080920
S1-MH-M.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  if (&wizard_see == 2)
00004  {
00005   say("`0How goes the hunt Dink?", &current_sprite);
00006   return;
00007  }
00008  if (&wizard_see == 3)
00009  {
00010   sp_active(&current_sprite, 0);
00011   say("He's gone!!", 1);
00012   return;
00013  }
00014  if (&wizard_see == 4)
00015  {
00016   sp_active(&current_sprite, 0);
00017   return;
00018  }
00019  say("`0Ahh Dink, I've been expecting you.", &current_sprite);
00020 }
00021 
00022 void talk( void )
00023 {
00024  freeze(1);
00025  freeze(&current_sprite);
00026  if (&wizard_see == 0)
00027  {
00028   say_stop("Hi, it's me again.  Now who are you really?", 1);
00029   wait(200);
00030   say_stop("`0I am the Wizard Martridge.  A teacher of magic.", &current_sprite);
00031   wait(200);
00032   say_stop("Wow, I don't think I've ever seen your place around here before.", 1);
00033   wait(200);
00034   say_stop("`0I like being closer to nature.", &current_sprite);
00035   wait(200);
00036   say_stop("`0I've been watching you for a while Dink.", &current_sprite);
00037   wait(200);
00038   say_stop("Like, peeking in through my windows and such?", 1);
00039   wait(200);
00040   say_stop("`0No Dink, I have magic.", &current_sprite);
00041   wait(200);
00042   say_stop("`0You too may have the power, an ability for the supernatural.", &current_sprite);
00043   wait(200);
00044   say_stop("Really?  You think so?  Cool, what can I do?", 1);
00045   wait(200);
00046   say_stop("Can I like create chicks right in front of me and stuff?", 1);
00047   wait(200);
00048   say_stop("`0Uh, no.", &current_sprite);
00049   wait(200);
00050   say_stop("Well can I like float around and fly up into trees?", 1);
00051   wait(200);
00052   say_stop("`0Uh maybe, it depends...", &current_sprite);
00053   wait(200);
00054   say_stop("Can I throw death from my hands??", 1);
00055   wait(200);
00056   say_stop("`0Maybe I was wrong Dink.", &current_sprite);
00057   wait(200);
00058   say_stop("`0But these things can be hard to tell.", &current_sprite);
00059   &wizard_see = 1;
00060  }
00061  choice_start()
00062 (&wizard_see == 1)"Tell him you're worthy"
00063  "Ask about Magic"
00064  "Nevermind"
00065  choice_end()
00066  wait(200);
00067  if (&result == 1)
00068  {
00069   int &boom;
00070   int &bottle;
00071   say_stop("Martridge, I .. I can handle it.  I'm prepared.", 1);
00072   wait(200);
00073   say_stop("I promise I'll be honorable and learn to use it right.", 1);
00074   wait(200);
00075   say_stop("`0Well Dink, you must prove yourself.", &current_sprite);
00076   wait(200);
00077   say_stop("Ah man, how do I do that?", 1);
00078   wait(200);
00079   say_stop("`0Well in a cave on these hills, there lies a beast.", &current_sprite);
00080   wait(200);
00081   say_stop("`0It's called a Bonca.  Slay it and return.", &current_sprite);
00082   wait(200);
00083   say_stop("I'll do it, I can fight the beast.", 1);
00084   wait(200);
00085   say_stop("`0Excellent, excellent.", &current_sprite);
00086   wait(200);
00087   say_stop("Where does it dwell?", 1);
00088   wait(200);
00089   say_stop("`0In a cave to the west Dink.", &current_sprite);
00090   wait(200);
00091   say_stop("I won't fail you.", 1);
00092   wait(200);
00093   &wizard_see = 2;
00094   say_stop("`0Here Dink, take this.  This red potion will strengthen you.", &current_sprite);
00095   &boom = create_sprite(187, 157, 7, 167, 1);
00096   sp_seq(&boom, 167);
00097   &bottle = create_sprite(187, 157, 0, 56, 1);
00098   playsound(24, 22052, 0, 0, 0);
00099   sp_script(&bottle, "rpotion");
00100  }
00101  if (&result == 2)
00102  {
00103   say_stop("Martridge, tell me about magic.", 1);
00104   wait(200);
00105   say_stop("`0Well magic is an ancient art.  Those who've known it", &current_sprite);
00106   wait(200);
00107   say_stop("`0have been great leaders, entertainers, and warriors.", &current_sprite);
00108   wait(200);
00109   say_stop("`0It's a great power and gift to those who can use it.", &current_sprite);
00110  }
00111  unfreeze(1);
00112  unfreeze(&current_sprite);
00113 }
00114 
00115 void hit( void )
00116 {
00117  say("`0Why are you trying to hurt me Dink?", &current_sprite);
00118  //Warp the Wizard elsewhere
00119 }