Back to index

freedink-data  1.08.20080920
S2-MAN2.c
Go to the documentation of this file.
00001 //script for old guys in the bar
00002 
00003 void main( void )
00004 {
00005 
00006 preload_seq(411);
00007 preload_seq(413);
00008 int &myrand;
00009 sp_brain(&current_sprite, 0);
00010 sp_base_walk(&current_sprite, 410);
00011 sp_speed(&current_sprite, 0);
00012 
00013 //set starting pic
00014 
00015 sp_pseq(&current_sprite, 411);
00016 sp_pframe(&current_sprite, 1);
00017 
00018 mainloop:
00019 wait(2000);
00020 if (&temp4hold == 1)
00021   {
00022 &myrand = random(5, 1);
00023   if (&myrand == 1)
00024   {
00025   say_stop_npc("`0Fight!!!", current_sprite);
00026   }
00027    goto mainloop;
00028   }
00029 &myrand = random(8, 1);
00030 
00031   if (&myrand == 1)
00032   {
00033   sp_pseq(&current_sprite, 411);
00034   }
00035 
00036   if (&myrand == 2)
00037   {
00038   sp_pseq(&current_sprite, 413);
00039   }
00040 
00041 &myrand = random(28, 1);
00042 
00043   if (&myrand == 1)
00044   {
00045   say_stop_npc("`3Nathan, how about another story?", &temp3hold);
00046   say_stop_npc("`0Alright.", &current_sprite);
00047   say_stop_npc("`0One time I was fighting this dragon...", &current_sprite);
00048   say_stop_npc("`0As I was about to deliver the death blow....", &current_sprite);
00049   say_stop_npc("`0He begged me for his life.  Have you ever seen a dragon cry?", &current_sprite);
00050   wait(400);
00051   say_stop_npc("`3Nope.", &temp3hold);
00052   wait(400);
00053 if (&temp4hold == 1)
00054   {
00055    goto mainloop;
00056   }
00057 
00058   say_stop_npc("`4Haw, those old codgers are so full of it...", &temphold);
00059   say_stop_npc("`0Anyway, it wasn't pretty so I killed him.", &current_sprite);
00060   say_stop_npc("`3And just where did you see a Dragon?", &temp3hold);
00061   say_stop_npc("`0Uh.. Joppa Isle!", &current_sprite);
00062   say_stop_npc("`3Liar.. Joppa Isle doesn't exist, it's a story for kids.", &temp3hold);
00063 
00064   }
00065 
00066   if (&myrand == 2)
00067   {
00068   say_stop_npc("`0Did I ever tell you about the time I trained a slayer?", &current_sprite);
00069   say_stop_npc("`3You trained a slayer!?!", &temp3hold);
00070   say_stop_npc("`0Yup.  I raised him from when he was a pup.  He would do anything I told him to.", &current_sprite);
00071   say_stop_npc("`3Where is he now??!", &temp3hold);
00072   say_stop_npc("`0Had to kill 'em.  Ever had slayer meat?", &current_sprite);
00073 if (&temp4hold == 1)
00074   {
00075    goto mainloop;
00076   }
00077 
00078   say_stop_npc("`4Give me a break...", &temphold);
00079   say_stop_npc("`0It tastes better than what you serve here, barkeep!", &current_sprite);
00080   say_stop_npc("`4I'll make a note of that...", &temphold);
00081 
00082   }
00083 
00084   if (&myrand == 3)
00085   {
00086   say_stop_npc("`0Then there was the time I found a magic scroll", &current_sprite);
00087   say_stop_npc("`3Oh yeah?", &temp3hold);
00088   say_stop_npc("`0Sure did, some strange fire spell it was.", &current_sprite);
00089   say_stop_npc("`0I may have helped that big fire back a few seasons ago.", &current_sprite);
00090   say_stop_npc("`0Quite toasty things got!", &current_sprite);
00091   say_stop_npc("`3Whatever, you've had too much to drink.", &temp3hold);
00092   }
00093   if (&myrand == 4)
00094   {
00095   say_stop_npc("`0You wanna go hunting?", &current_sprite);
00096   say_stop_npc("`3Sure I guess, why you wanna go hunting?", &temp3hold);
00097   say_stop_npc("`0I hear there's a cave to the northeast with quite a catch inside it.", &current_sprite);
00098   say_stop_npc("`3I don't know...", &temp3hold);
00099   }
00100 
00101 
00102 goto mainloop;
00103 }
00104 
00105 
00106 void hit( void )
00107 {
00108 sp_speed(&current_sprite, 0);
00109 wait(400);
00110 say_stop_npc("`0You'd best learn some manners quickly, boy.", &current_sprite);
00111 wait(800);
00112 goto mainloop;
00113 }
00114 
00115 void talk( void )
00116 {
00117 
00118  freeze(1);
00119          choice_start()
00120 (&s2-milder == 0) "Impress the men with your tales of valour"
00121 (&s2-milder == 1) "Convince the men that you ARE a warrior"
00122 (&s2-milder == 2) (&story < 8) "Argue with the men even more"
00123 (&s2-milder == 2) (&story > 7) "Chat with the men"
00124          "Leave"
00125          choice_end()
00126 
00127     if (&result == 1)
00128     {
00129 wait(500);
00130  say_stop("Greetings men.  I bring stories of my adventures from the East.", 1);
00131      //scene with Milder
00132   preload_seq(401);
00133   preload_seq(403);
00134   preload_seq(407);
00135   preload_seq(409);
00136   sp_pseq(&temp3hold, 349);
00137   say_stop("`0Oh really?  And who might you be?", &current_sprite);
00138   wait(500);
00139   say_stop("My name is Dink Smallwood.  I am a warrior!", 1);
00140   wait(500);
00141   sp_pseq(&current_sprite, 413);
00142   say_stop("`3You've had adventures, eh?", &temp3hold);
00143   wait(500);
00144   say_stop("Oh yes.  Once, I was in this really scary cave...", 1);
00145   wait(500);
00146   say_stop("`0Yes, go on!", &current_sprite);
00147   wait(500);
00148   say_stop("Next thing I knew I was face to face with a huge monster...", 1);
00149   playmidi("bullythe.mid");
00150   int &milder = create_sprite(261, 440, 0, 0,0);
00151   sp_base_walk(&milder, 400);
00152   sp_speed(&milder, 1);
00153   sp_timing(&milder, 0);
00154 move_stop(&milder, 9, 420, 1)
00155 move_stop(&milder, 7, 386, 1)
00156 sp_dir(1, 6);
00157 say_stop("`6What nonsense is this pig farmer filling your heads with?", &milder);
00158 wait(300);
00159   say_stop("`0He's a PIG FARMER?!", &current_sprite);
00160   wait(300);
00161   say_stop("Damn you, Milder!  What are you doing here?", 1);
00162 move_stop(&milder, 4, 300, 1)
00163   wait(300);
00164 
00165 say_stop("`6Just passing through... what are you doing away from the farm?", &milder);
00166   wait(300);
00167   say_stop("`3Farm?!  What a loser!", &temp3hold);
00168   wait(300);
00169   sp_dir(1, 4);
00170   say_stop("I don't tend pigs anymore, I'm a mighty warrior.", 1);
00171   wait(500);
00172   say_stop("`0Oh hogwash!", &current_sprite);
00173   wait(500);
00174   say("`3Hahahah!", &temp3hold);
00175   say_stop("`6Hahaha!  Good one, peasant!", &milder);
00176  wait(400);
00177  say_stop("That IS NOT funny.",1);
00178  wait(400);
00179   say_stop("`0I'm sorry Dink.. I'll make it up by buying you a drink.", &current_sprite);
00180  wait(400);
00181  say_stop("Great, what kind?",1);
00182  wait(400);
00183   say_stop("`0Is a bottle of SWINE ok? Bawahahah!", &current_sprite);
00184  wait(400);
00185   say("`3Hahahah!", &temp3hold);
00186   say_stop("`6Hahaha!", &milder);
00187  wait(200);
00188  say_stop("You stupid rubes!  I hate you both!", 1);
00189  wait(200);
00190  say_stop("`6This has been fun, pig boy, but I have REAL adventuring to do.  See ya.", &milder);
00191  move_stop(&milder, 3, 370, 1)
00192  move_stop(&milder, 1, 210, 1)
00193   playmidi("");
00194 
00195  say_stop("`0He said pig boy...", &current_sprite);
00196  wait(400);
00197   say("`3Hahahah!", &temp3hold);
00198   say("`0Hahaha!", &current_sprite);
00199   wait(400);
00200   &s2-milder = 1;  
00201     }
00202 
00203 if (&result == 2)
00204   {
00205    wait(500);
00206    say_stop("Look... My farming days are over, ok?", 1);
00207    wait(500);
00208    say_stop("`0Ok, you really want some adventure?", &current_sprite);
00209    wait(500);
00210    say_stop("Oh yes!",1);
00211    wait(500);
00212    say_stop("`0Go plow Harper's field, farmer boy.", &current_sprite);
00213    wait(500);
00214   say("`3Hahahah!", &temp3hold);
00215   say_stop("`0Hahahah!", &current_sprite);
00216    wait(500);
00217    say_stop("How 'bout I plow your momma?",1);
00218   &s2-milder = 2;
00219   }
00220 
00221  if (&result == 3)
00222   {
00223    wait(500);
00224    say_stop("Look...",1);
00225    wait(500);
00226   say_stop("`0Save it boy, come back when you've done something important.", &current_sprite);
00227   }
00228 
00229 
00230  if (&result == 4)
00231   {
00232    wait(500);
00233   say_stop("`0Hey, it's Dink!  Great job on saving that girl!", &current_sprite);
00234    wait(500);
00235   say_stop("`3I told you he had the makings of a hero!", &temp3hold);
00236    wait(500);
00237    say_stop("Actually, didn't you both laugh at me and such?",1);
00238    wait(500);
00239   say_stop("`0No.  That was uh, two other guys...", &current_sprite);
00240    wait(500);
00241   }
00242 
00243 
00244 
00245    unfreeze(1);
00246    goto mainloop;
00247    return;
00248 goto mainloop;
00249 
00250 }
00251