Back to index

freedink-data  1.08.20080920
KING.c
Go to the documentation of this file.
00001 void talk( void )
00002 {
00003 freeze(1);
00004 
00005  if (&story == 15)
00006  {
00007  playmidi("1011");
00008  say_stop("`%SMALLWOOD HAS RETURNED!", &current_sprite);
00009  wait(300);
00010  say_stop("I have sad news, my King.",1);
00011  wait(300);
00012  say_stop("Sir Flatstomp is dead.  He died in my arms, bravely.", 1);
00013  wait(300);
00014  say_stop("`%I will inform Lyna.  I was afraid this was so.", &current_sprite);
00015  wait(300);
00016  say_stop("Also - the evil ancient Seth has been vanquished.", 1);
00017  wait(300);
00018  say_stop("`%Hooray!  The world is safe!", &current_sprite);
00019 
00020   say_stop_xy("CONGRATULATIONS!", 20, 380);
00021  wait(300);
00022   say_stop_xy("YOU HAVE FINISHED THE GAME.", 20, 380);
00023  wait(300);
00024   say_stop_xy("You took a boy and turned him into a hero.", 20, 380);
00025  wait(300);
00026   say_stop_xy("Is this the end?", 20, 380);
00027  wait(300);
00028   say_stop_xy("Not by a long shot.", 20, 380);
00029  wait(300);
00030   say_stop_xy("There are hundreds more adventures awaiting you.", 20, 380);
00031  wait(300);
00032   say_stop_xy("Get them (and other great games!) at www.rtsoft.com", 20, 380);
00033  wait(300);
00034   say_stop_xy("Or make your own, download the free development kit.", 20, 380);
00035  wait(300);
00036   say_stop_xy("Special thanks to the following:", 20, 380);
00037  wait(300);
00038   say_stop_xy("Justin - sorry I made you draw blood ;)", 20, 380);
00039  wait(300);
00040   say_stop_xy("Pap - Great level design and story (when you were here...)", 20, 380);
00041  wait(300);
00042   say_stop_xy("Shawn - corndogs are NOT the food of the God's", 20, 380);
00043  wait(300);
00044   say_stop_xy("(for other unwise sayings, check out the QUOTES.TXT file)", 20, 380);
00045  wait(300);
00046   say_stop_xy("Thanks for playing - Seth", 20, 380);
00047 
00048  wait(300);
00049  say_stop("`%And now, food for my hungry hero!", &current_sprite);
00050 
00051 playsound(24, 22052, 0, 0, 0);
00052 int &mcrap = create_sprite(273, 264, 7, 167, 1);
00053 sp_seq(&mcrap, 167);
00054 wait(200);
00055  &temp1hold = create_sprite(273, 264, 0,0,0);
00056  sp_script(&temp1hold, "rpotion");
00057 wait(300);
00058 
00059 playsound(24, 22052, 0, 0, 0);
00060 int &mcrap = create_sprite(336, 264, 7, 167, 1);
00061 sp_seq(&mcrap, 167);
00062 wait(200);
00063  &temp1hold = create_sprite(336, 264, 0,0,0);
00064  sp_script(&temp1hold, "rpotion");
00065 wait(300);
00066 
00067 playsound(24, 22052, 0, 0, 0);
00068 int &mcrap = create_sprite(401, 264, 7, 167, 1);
00069 sp_seq(&mcrap, 167);
00070 wait(200);
00071  &temp1hold = create_sprite(401, 264, 0,0,0);
00072  sp_script(&temp1hold, "rpotion");
00073 wait(300);
00074 
00075 
00076 playsound(24, 22052, 0, 0, 0);
00077 int &mcrap = create_sprite(273, 302, 7, 167, 1);
00078 sp_seq(&mcrap, 167);
00079 wait(200);
00080  &temp1hold = create_sprite(273, 302, 0,0,0);
00081  sp_script(&temp1hold, "ppotion");
00082 wait(300);
00083 
00084 playsound(24, 22052, 0, 0, 0);
00085 int &mcrap = create_sprite(336, 302, 7, 167, 1);
00086 sp_seq(&mcrap, 167);
00087 wait(200);
00088  &temp1hold = create_sprite(336,302, 0,0,0);
00089  sp_script(&temp1hold, "ppotion");
00090 wait(300);
00091 
00092 playsound(24, 22052, 0, 0, 0);
00093 int &mcrap = create_sprite(401, 302, 7, 167, 1);
00094 sp_seq(&mcrap, 167);
00095 wait(200);
00096  &temp1hold = create_sprite(401,302, 0,0,0);
00097  sp_script(&temp1hold, "ppotion");
00098 wait(300);
00099 
00100 
00101 
00102  &story = 16;
00103  unfreeze(1);
00104  return;
00105  }
00106 
00107 
00108  if (&story == 16)
00109  {
00110  say("`%Ahh, my favorite subject!", &current_sprite);
00111  unfreeze(1);
00112  return;
00113  }
00114 
00115 
00116 
00117  if (&story == 14)
00118  {
00119   say_stop("`%You must hurry, Dink.", &current_sprite);
00120  unfreeze(1);
00121  return;
00122  }
00123 
00124  if (&story == 12)
00125  {
00126   say_stop("`%Hello, Dink.", &current_sprite);
00127   wait(300);
00128   say_stop("`%I've heard much about you - it is good to finally meet you.", &current_sprite);
00129   wait(300);
00130   say_stop("Greetings, M'lord.", 1);
00131   wait(300);
00132   say_stop("`%Now what is it I can help you with?", &current_sprite);
00133   wait(300);
00134   &story = 13;
00135   }
00136 
00137   choice_start();
00138 (&story == 13)  "Complain about your taxes"
00139 (&story == 13)  "Offer to help Milder"
00140   "Leave"
00141   choice_end();
00142 
00143 if (&result == 1)
00144    {
00145     //whine about taxes
00146   wait(300);
00147   say_stop("Well... I think you should lower the pig tax, sir.", 1);
00148   wait(300);
00149   say_stop("`%Oh really?", &current_sprite);
00150   wait(300);
00151   say_stop("Yes - my family got royally screwed by the crown each year.", 1);
00152   wait(300);
00153   say_stop("`%I will take that into consideration Dink, I really will.", &current_sprite);
00154    }
00155 
00156 if (&result == 2)
00157    {
00158     //help Milder
00159   wait(300);
00160   say_stop("I heard about Milder.", 1);
00161   wait(300);
00162   say_stop("`%Yes.. he was a very brave knight - he entered the darklands knowing...", &current_sprite);
00163   wait(300);
00164   say_stop("`%full well that very few return.  And now he is lost too.", &current_sprite);
00165   wait(300);
00166   say_stop("I would like permission to go after him, my King.", 1);
00167   wait(300);
00168   say_stop("`%You Dink?  It is suicide.", &current_sprite);
00169   wait(300);
00170   say_stop("He grew up in my village - I cannot turn my back on him.", 1);
00171   wait(300);
00172   say_stop("`%And I cannot refuse you.", &current_sprite);
00173   wait(300);
00174   say_stop("`%But... just getting to the darklands is quite a challenge...", &current_sprite);
00175   wait(300);
00176   say_stop("Please - just tell me the way.", 1);
00177   wait(300);
00178   say_stop("`%Go north from this castle until you hit the cliffs.", &current_sprite);
00179   wait(300);
00180   say_stop("`%I will have men there to guide you through the passage.", &current_sprite);
00181   wait(300);
00182   say_stop("`%And Dink...", &current_sprite);
00183   wait(300);
00184   say_stop("`%Something very strange is happening to the world...", &current_sprite);
00185   wait(300);
00186   say_stop("`%The darklands seem to be the origin.  Please be careful.", &current_sprite);
00187   wait(300);
00188   say_stop("Thank you.  I'll be back, and I won't be alone.", 1);
00189   &story = 14;
00190    }
00191 
00192    
00193 
00194  
00195 unfreeze(1);
00196 
00197 }
00198 
00199 
00200  void hit ( void )
00201  {
00202   //they try to damage the king
00203 
00204   say_stop("`%You have just attacked me, the King?", &current_sprite);
00205   wait(300);
00206   say_stop("`%Ahh, the famous Dink Smallwood sense of humor I heard so much about!", &current_sprite);
00207  }