Back to index

freedink-data  1.08.20080920
S3-FREAK.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &force;
00004  &temp1hold = sp(33);
00005  &temp2hold = sp(34);
00006  &temp3hold = sp(35);
00007  &temp4hold = sp(36);
00008 
00009 if (get_sprite_with_this_brain(3, &current_sprite) == 0)
00010  {
00011   //no more brain 3 (ducks) on the screen.
00012     say("`9Murderer!", &current_sprite);
00013 
00014  }
00015 
00016 
00017 
00018 sp_frame_delay(&current_sprite, 30);
00019  start:
00020 
00021 if (get_sprite_with_this_brain(3, &current_sprite) == 0)
00022  {
00023   //no more brain 3 (ducks) on the screen.
00024   &force = random(4, 1);
00025   if (&force == 1)
00026   {
00027    &force = random(4, 1);
00028    if (&force == 1)
00029    {
00030     say("`9Where are you, little guys?", &current_sprite);
00031    }
00032    if (&force == 2)
00033    {
00034     say("`9My ducks!!!!!!!! ALL DEAD!!!!!!! DAMN YOU!", &current_sprite);
00035    }
00036    if (&force == 3)
00037    {
00038     say("`9GET OUT OF HERE!!!!!", &current_sprite);
00039    }
00040    if (&force == 4)
00041    {
00042     say("`9There go my chances of impressing the Mayor's daughter!!!!", &current_sprite);
00043    }
00044   }
00045  goto loser;
00046  }
00047 
00048 
00049   &force = random(4, 1);
00050   if (&force == 1)
00051   {
00052    &force = random(4, 1);
00053    if (&force == 1)
00054    {
00055     say("`9This parade is gonna rule!!!", &current_sprite);
00056    }
00057    if (&force == 2)
00058    {
00059     say("`9I love my ducks.", &current_sprite);
00060    }
00061    if (&force == 3)
00062    {
00063     say("`9Ready for our act little pals?", &current_sprite);
00064    }
00065    if (&force == 4)
00066    {
00067     say("`9Gettin' ready to rock!!", &current_sprite);
00068    }
00069   }
00070 loser:
00071   move_stop(&current_sprite, 6, 530, 1);
00072   move_stop(&current_sprite, 4, 100, 1);
00073 //wait(800);
00074   goto start;
00075 }
00076 
00077 void talk( void )
00078 {
00079 
00080 if (get_sprite_with_this_brain(3, &current_sprite) == 0)
00081  {
00082     say("`9Get lost!! You have completely destroyed my act!", &current_sprite);
00083     goto start;
00084  }
00085 
00086 
00087 
00088  freeze(1);
00089  freeze(&current_sprite);
00090  say_stop("`9What do you want man?  I gotta keep moving!", &current_sprite);
00091  choice_start()
00092 (&mayor < 6)"Ask why he's running"
00093 (&mayor < 6)"Ask about the ducks"
00094 (&mayor > 5)"Ask about the parade"
00095  "Leave"
00096  choice_end()
00097 
00098   if (&result == 1)
00099   {
00100   say_stop("Why are you running around so fast?", 1);
00101   wait(250);
00102   say_stop("`9Cause I'm excited!!", &current_sprite);
00103   wait(250);
00104   say_stop("About what?", 1);
00105   wait(250);
00106   say_stop("`9The big parade happening soon man!!", &current_sprite);
00107   wait(250);
00108   say_stop("`9It's gonna rock!!!!!!", &current_sprite);
00109   }
00110   if (&result == 2)
00111   {
00112   say_stop("What's with all the ducks?", 1);
00113   wait(250);
00114   say_stop("`9Oh, they're my pets.  We're gonna be in the parade together.", &current_sprite);
00115   wait(250);
00116   say_stop("I see ...", 1);
00117   wait(250);
00118   say_stop("`9Wanna see what we do?", &current_sprite);
00119   wait(250);
00120   say_stop("Not really.", 1);
00121   wait(250);
00122   say_stop("`9Okay, here it goes ...", &current_sprite);
00123   wait(250);
00124   say_stop("`9Ready guys?  Follow me!", &current_sprite);
00125   sp_follow(&temp1hold, &current_sprite);
00126   sp_follow(&temp2hold, &current_sprite);
00127   sp_follow(&temp3hold, &current_sprite);
00128   move_stop(&current_sprite, 4, 100, 1);
00129   move_stop(&current_sprite, 6, 530, 1);
00130   say("Hey..", 1);
00131   move_stop(&current_sprite, 4, 100, 1);
00132   move_stop(&current_sprite, 6, 300, 1);
00133   say_stop("`9Yeah?", &current_sprite);
00134   wait(250);
00135   say_stop("What's with that other one?", 1);
00136   wait(250);
00137   say_stop("`9Oh ...", &current_sprite);
00138   wait(250);
00139   say_stop("`9he has issues.", &current_sprite);
00140   unfreeze(&current_sprite);
00141   wait(1000);
00142   sp_dir(1, 2);
00143   say_stop("Oh boy ...", 1);
00144   }
00145   if (&result == 3)
00146   {
00147   say_stop("Soooo ... didn't see you at the parade.", 1);
00148   wait(250);
00149   say_stop("`9Oh .. hehe .. yeah, I uhh ... I ...", &current_sprite);
00150   wait(250);
00151   say_stop("`9one of the ducks got sick, and well .. we couldn't perform.", &current_sprite);
00152   wait(250);
00153   sp_dir(1, 2);
00154   wait(1000);
00155   sp_dir(1, 4);
00156   say_stop("I'm sure.  That's too bad, after all that practice.", 1);
00157   wait(250);
00158   say_stop("`9Well hey, don't worry ...", &current_sprite);
00159   wait(250);
00160   say_stop("`9we're practicing for next year.", &current_sprite);
00161   wait(250);
00162   say_stop("Aww man...", 1);
00163   unfreeze(&current_sprite);
00164   wait(500);
00165   sp_dir(1, 2);
00166   say_stop("Note to self:  Don't come here next year.", 1);
00167   }
00168  unfreeze(1);
00169  unfreeze(&current_sprite);
00170  goto start;
00171 }