Back to index

freedink-data  1.08.20080920
S1-LG.c
Go to the documentation of this file.
00001 void main ( void )
00002 {
00003 int &toldall;
00004 int &s1;
00005 int &s2;
00006 int &s3;
00007 int &s4;
00008  int &talkme;
00009  &talkme = 0;
00010  int &tip;
00011  &tip = random(3,1);
00012 sp_hitpoints(&current_sprite, 30);
00013  if (&tip == 1)
00014   {
00015   say("`5La la laaa La La", &current_sprite);
00016   }
00017 }
00018 
00019 void talk( void )
00020 {
00021 
00022 freeze(1);
00023 freeze(&current_sprite);
00024 say_stop("`5Hey Dink, what's up?", &current_sprite);
00025 say_stop("Hello Chealse ...", 1);
00026 wait(250);
00027 choice_start()
00028 "Flirt with her"
00029 "Ask about gossip"
00030 "Ask about Milder FlatStomp"
00031 (&old_womans_duck == 3)"Tell her you killed Ethel's duck"
00032 "Nevermind"
00033 choice_end()
00034 wait(300);
00035   if (&result == 1)
00036    {
00037     say_stop("So baby, you still single and bothered?", 1);
00038     say_stop("Cause you know I'm a real man for you.", 1);
00039     wait(250);
00040     say_stop("`5Whatever, Smallwood!!", &current_sprite);
00041    }
00042   if (&result == 2)
00043    {
00044     say_stop("So what's the latest word in town Chealse?", 1);
00045     wait(250);
00046 
00047 crapper:
00048 
00049    if (&s1 != 0)
00050 {
00051    if (&s2 != 0)
00052    {
00053    if (&s3 != 0)
00054      {
00055    if (&s4 != 0)
00056        {
00057         unfreeze(&current_sprite);
00058         unfreeze(1);
00059         say_stop("`5I can't think of anymore gossip, sorry Dink.",&current_sprite);
00060         return;
00061          }
00062       }
00063     }
00064     }
00065     if (&old_womans_duck == 3)
00066      {
00067       &tip = random(3,1);
00068       if (&tip == 1)
00069        {
00070        duck:
00071        say_stop("`5Well I hear there's been a horrible murder of Ethel's duck!", &current_sprite);
00072        say_stop("`5I don't know much now, but I'll tell you when I do.", &current_sprite);
00073        say_stop("Oh, how tragic .... uh ...", 1);
00074        wait(250);
00075        say_stop("... gotta go", 1);
00076         unfreeze(&current_sprite);
00077         unfreeze(1);
00078 
00079        return;
00080        }
00081      }
00082     if (&old_womans_duck == 5)
00083      {
00084       &tip = random(3,1);
00085       if (&tip == 1)
00086       {
00087       goto duck;
00088       }
00089      }
00090 
00091 
00092      &tip = random(4,1);
00093      Debug("Ok, tip is &tip.");
00094      if (&tip == 1)
00095       {
00096       if (&s1 == 1)
00097       goto crapper;
00098        say_stop("`5Well, I heard that the SmileSteins have quite an abusive family now.", &current_sprite);
00099        say_stop("`5Despite their father being a model farmer.", &current_sprite);
00100        wait(250);
00101        say_stop("Are you sure, that sounds pretty far fetched.", 1);
00102        wait(250);
00103        say_stop("`5Yeah, oh yeah, just the other night when I was coming back", &current_sprite);
00104        say_stop("`5from picking flowers, I heard Libby up in her room crying.", &current_sprite);
00105        wait(250);
00106        say_stop("No ... Libby?  Oh my.", 1);
00107           if (&gossip == 0)
00108           {
00109                  &gossip = 1;
00110 
00111           }
00112        &s1 = 1;
00113       }
00114      if (&tip == 2)
00115       {
00116       if (&s2 == 1)
00117       goto crapper;
00118        say_stop("`5Libby and her new boyfriend seem really happy together.", &current_sprite);
00119        wait(250);
00120        say_stop("That's the guy from PortTown isn't it?", 1);
00121        say_stop("He seems kinda bossy.", 1);
00122        wait(250);
00123        say_stop("`5Yeah, well she says she really likes him and that once", &current_sprite);
00124        say_stop("`5you get to know him he's a great guy.", &current_sprite);
00125        &s2 = 1;
00126       }
00127      if (&tip == 3)
00128       {
00129       if (&s3 == 1)
00130       goto crapper;
00131        say_stop("`5I hear that the monsters over in farmer SmileStein's field", &current_sprite);
00132        say_stop("`5are really driving him crazy.  I've even heard him say he's", &current_sprite);
00133        say_stop("`5thinking about hiring a hunter to clear them out.", &current_sprite);
00134        wait(250);
00135        say_stop("Wow", 1);
00136        wait(250);
00137        say_stop("`5Yeah, big stuff..", &current_sprite);
00138        &s3 = 1;
00139       }
00140      if (&tip == 4)
00141       {
00142       if (&s4 == 1)
00143       goto crapper;
00144        
00145        say_stop("`5Well when I went to the coast the other day I heard the Pirates", &current_sprite);
00146        say_stop("`5in PortTown are looking for some more help and that they may be", &current_sprite);
00147        say_stop("`5waging a war with the Northern Trading Company!", &current_sprite);
00148        say_stop("Wow Chealse, that's big.", 1);
00149        wait(250);
00150        say_stop("How did you hear all THAT stuff??", 1);
00151        wait(250);
00152        say_stop("`5Ok ok, my big sister Aby who lives in PortTown told me.", &current_sprite);
00153        &s4 = 1;
00154       }
00155    Debug("result is &result.");
00156    }
00157   if (&result == 3)
00158    {
00159     say_stop("What's with that big dummy Milder Flatstomp lately?", 1);
00160     wait(250);
00161     say_stop("`5Well I hear he applied to the Royal Guard.", &current_sprite);
00162     say_stop("`5But besides that he's just a big oaf, but I", &current_sprite);
00163     say_stop("`5also saw him flirting with Libby AND Lyna!", &current_sprite);
00164     wait(250);
00165     say_stop("Damn.. they must dig his uniform.  I HAVE to join!", 1);
00166    }
00167   if (&result == 4)
00168    {
00169     say_stop("Guess what, I got a secret for ya Chealse.", 1);
00170     wait(250);
00171     say_stop("`5Really?  What is it Dink?", &current_sprite);
00172     say_stop("Well....", 1);
00173     wait(500);
00174     say_stop("I WAS THE ONE WHO KILLED ETHEL'S DUCK!!!!!!!!!", 1);
00175     unfreeze(&current_sprite);
00176     say("`5Noooooooooooo", &current_sprite);
00177     sp_timing(&current_sprite, 0);
00178     sp_speed(&current_sprite, 10); 
00179    }
00180 unfreeze(1);
00181 unfreeze(&current_sprite);
00182 }
00183 
00184 void hit ( void )
00185 {
00186  playsound(12, 22050, 0, 0, 0);
00187 sp_timing(&current_sprite, 0);
00188 sp_speed(&current_sprite, 4);
00189 say("`5Hey, watch it pig farmer!!", &current_sprite);
00190 wait(3000);
00191 sp_timing(&current_sprite, 33);
00192 sp_speed(&current_sprite, 1);
00193 }
00194 
00195 void die ( void )
00196 {
00197 &little_girl = 2;
00198 say("She won't be bothering people any more.", 1);
00199 }
00200 
00201