Back to index

freedink-data  1.08.20080920
S3-CHICK.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &wherex;
00004  int &wherey;
00005 }
00006 
00007 void talk( void )
00008 {
00009 
00010 
00011 if (&gobpass == 5)
00012   {
00013    if (&mayor == 0)
00014    {
00015     say_stop("** FIXING BUG.. RESETTING GOBLIN VILLAGE **",&current_sprite);
00016    &gobpass = 0;
00017     return;
00018 
00019    }
00020   }
00021 
00022 
00023  freeze(1);
00024  freeze(&current_sprite);
00025  choice_start()
00026  "Say hi"
00027  "Ask what she does"
00028 (&mayor == 0)"Tell her about the planned assault"
00029 (&mayor == 3)"See what's happened since"
00030 (&mayor == 4)"Show her the Scroll"
00031  "Leave"
00032  choice_end()
00033   if (&result == 1)
00034   {
00035    wait(400);
00036    say_stop("Hey, how's it going?", 1);
00037    wait(250);
00038    say_stop("`9Oh hi, pretty good.", &current_sprite);
00039    wait(1000);
00040    say_stop("My name's Dink, pleasure to meet you.", 1);
00041    wait(250);
00042    say_stop("`9Hello Dink, I'm Christina." &current_sprite);
00043    wait(250);
00044    say_stop("Just having a stroll around town?", 1);
00045    wait(250);
00046    say_stop("`9I was just taking a look at the town square.", &current_sprite);
00047    wait(250);
00048    say_stop("What for?", 1);
00049    wait(250);
00050    say_stop("`9For the big parade happening soon, what else silly?", &current_sprite);
00051    wait(250);
00052    say_stop("Ahh, yes.. I've ... heard of that parade.", 1);
00053   }
00054   if (&result == 2)
00055   {
00056    wait(400);
00057    say_stop("So what do you do?", 1);
00058    wait(250);
00059    say_stop("`9Oh, I'm a painter.", &current_sprite);
00060    wait(250);
00061    say_stop("Ahh, I see.  What are you painting here?", 1);
00062    wait(250);
00063    say_stop("`9I hope to make a portrait of the parade happening soon.", &current_sprite);
00064    wait(250);
00065    say_stop("Hmm", 1);
00066   }
00067   if (&result == 3)
00068   {
00069    &wherex = sp_x(&current_sprite, -1);
00070    &wherey = sp_y(&current_sprite, -1);
00071    wait(400);
00072    say_stop("You know, I've heard some things about this parade.", 1);
00073    wait(250);
00074    say_stop("`9Yeah me too, everyone's happy as can be.", &current_sprite);
00075    wait(250);
00076    say_stop("`9The music can be heard all around the land.", &current_sprite);
00077    wait(250);
00078    say_stop("Yeah well ...", 1);
00079    wait(250);
00080    say_stop("I've heard different things...", 1);
00081    wait(250);
00082    say_stop("Like that Cast Knights are planning to come and kill everyone here.", 1);
00083    wait(250);
00084    say_stop("`9What...?", &current_sprite);
00085    wait(250);
00086    say_stop("`9You're kidding right?", &current_sprite);
00087    wait(250);
00088    say_stop("Wish I was, but I heard it myself just outside of town.", 1);
00089    wait(250);
00090    say_stop("`9We're all gonna die!", &current_sprite);
00091    wait(250);
00092    say_stop("We've gotta call off the parade.", 1);
00093    wait(250);
00094    say_stop("`9Wait no .. there's another answer.", &current_sprite);
00095    wait(250);
00096    say_stop("`9The Mayor, he knows some of the Royal guard of the land.", &current_sprite);
00097    wait(250);
00098    say_stop("`9If we can convince him, maybe we can save the parade.", &current_sprite);
00099    wait(250);
00100    say_stop("`9Follow me.", &current_sprite);
00101    &mayor = 1;
00102    //Move off screen
00103    if (&wherey < 200)
00104    {
00105     move_stop(&current_sprite, 2, 210, 1);
00106    }
00107    if (&wherey > 322)
00108    {
00109     move_stop(&current_sprite, 6, 660, 1);
00110    }
00111    if (&wherex < 500)
00112    {
00113    move_stop(&current_sprite, 6, 440, 1);
00114    }
00115    if (&wherex > 500)
00116    {
00117     move_stop(&current_sprite, 2, 250, 1);
00118    }
00119    move_stop(&current_sprite, 6, 660, 1);
00120    sp_active(&current_sprite, 0);
00121   }
00122 
00123   if (&result == 4)
00124   {
00125    int &woman;
00126    &woman = &current_sprite;
00127    //Playmidi("planning.mid");
00128    wait(400);
00129    say_stop("Had any luck talking to people?", 1);
00130    wait(250);
00131    say_stop("`9Not really, no one's been here.", &woman);
00132    wait(250);
00133    say_stop("`9It's a yearly event and everyone knows when it is,", &woman);
00134    wait(250);
00135    say_stop("`9they don't come beforehand, they just show up.", &woman);
00136    wait(250);
00137    say_stop("That could be bad.", 1);
00138    wait(250);
00139    say_stop("`9I did hear one rumor though.", &woman);
00140    wait(250);
00141    say_stop("`9A man said he was traveling near the Goblin Sanctuary and one", &woman);
00142    wait(250);
00143    say_stop("`9attacked him.  Very rare these days.", &woman);
00144    wait(250);
00145    say_stop("That could be something, I'll check it out.", 1);
00146    wait(250);
00147   }
00148 
00149 
00150   if (&result == 5)
00151   {
00152    wait(400);
00153    say_stop("Take a look at this!", 1);
00154    say_stop("The Cast's battle plan for the city.", 1);
00155    wait(250);
00156    say_stop("`9My god, look at this plan.", &current_sprite);
00157    wait(250);
00158    say_stop("`9They aren't even focusing their attack at the military", &current_sprite);
00159    wait(250);
00160    say_stop("`9they're attacking the whole populace here.", &current_sprite);
00161    wait(250);
00162    say_stop("We've got to stop them!", 1);
00163    wait(250);
00164    say_stop("`9Quick, get this information to my father ... hurry!", &current_sprite);
00165   }
00166  unfreeze(1);
00167  wait(500);
00168  unfreeze(&current_sprite);
00169 }
00170 
00171 void hit( void )
00172 {
00173  int &say;
00174  playsound(12, 22050, 0, 0, 0);
00175 
00176  &say = random(3,1);
00177  freeze(&current_sprite);
00178  if (&say == 1)
00179  {
00180   say_stop("`9Hey watch it sucka!", &current_sprite);
00181  }
00182  if (&say == 2)
00183  {
00184   say_stop("`9Help me, someone help me!", &current_sprite);
00185  }
00186  if (&say == 3)
00187  {
00188   say_stop("`9Guards, guards, tis a bloodbath!", &current_sprite);
00189  }
00190  unfreeze(&current_sprite);
00191 }