Back to index

freedink-data  1.08.20080920
S3-MAYOR.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 }
00004 
00005 void hit( void )
00006 {
00007  say("Let me show you MY version of politics, friend!", 1);
00008 }
00009 
00010 void talk( void )
00011 {
00012  if (&mayor == 2)
00013  {
00014  freeze(1);
00015  freeze(&current_sprite);
00016  choice_start()
00017  "Say hi"
00018  "Tell him about the planned assault"
00019  "Leave"
00020  choice_end()
00021   if (&result == 1)
00022   {
00023    wait(400);
00024    say_stop("Hello Mayor, nice town you have here.", 1);
00025    wait(250);
00026    say_stop("`5Thank you fair citizen.", &current_sprite);
00027    wait(250);
00028    say_stop("Yeah, noted.", 1);
00029   }
00030   if (&result == 2)
00031   {
00032    //Playmidi("Urgent.mid");
00033    wait(400);
00034    say_stop("Mayor, I have urgent news, your town is going to be attacked!", 1);
00035    wait(250);
00036    say_stop("`5What?!?  That's preposterous, you've got to be joking!", &current_sprite);
00037    wait(250);
00038    say_stop("No, I'm dead serious!  It's the Cast Knights.", 1);
00039    wait(250);
00040    say_stop("They're planning to attack during the parade.", 1);
00041    wait(250);
00042    say_stop("`5That's crazy!!  ... so many people would be hurt.", &current_sprite);
00043    wait(250);
00044    say_stop("All the more reason for you to believe me.", 1);
00045    wait(250);
00046    say_stop("Now the girl by the fountain said you knew some Royal guards.", 1);
00047    wait(250);
00048    say_stop("`5You talked with my daughter?", &current_sprite);
00049    wait(250);
00050    say_stop("She's your daughter??  Is she single?",1);
00051    wait(250);
00052    say_stop("`5What?", &current_sprite);
00053    wait(250);
00054    say_stop("Never mind, so you have some connections right?", 1);
00055    wait(250);
00056    say_stop("`5Yes they could help.", &current_sprite);
00057    wait(250);
00058    say_stop("`5But I need proof before I can go calling them in.", &current_sprite);
00059    wait(250);
00060    say_stop("Ok, so if I get proof you'll help?", 1);
00061    wait(250);
00062    say_stop("`5Yes, without it my hands are tied.", &current_sprite);
00063    wait(250);
00064    &mayor = 3;
00065    say_stop("Allright, then I'm off.", 1);
00066   }
00067  unfreeze(1);
00068  unfreeze(&current_sprite);
00069  return;
00070  }
00071  if (&mayor == 3)
00072  {
00073  freeze(1);
00074  freeze(&current_sprite);
00075  choice_start()
00076  "Say hi"
00077  "Show him the proof"
00078  "Leave"
00079  choice_end()
00080   if (&result == 1)
00081   {
00082    wait(400);
00083    say_stop("Hello Mayor, nice town you have here.", 1);
00084    wait(250);
00085    say_stop("`5Thank you fair citizen.", &current_sprite);
00086    wait(250);
00087    say_stop("Yeah, noted.", 1);
00088   }
00089   if (&result == 2)
00090   {
00091    wait(400);
00092    say_stop("I finally got the proof we need.", 1);
00093    wait(250);
00094    //Check to see if he did
00095    say_stop("`5No you didn't you liar!", &current_sprite);
00096    wait(250);
00097    say_stop("Oops, my bad.", 1);
00098   }
00099  unfreeze(1);
00100  unfreeze(&current_sprite);
00101  }
00102  if (&mayor == 4)
00103  {
00104  freeze(1);
00105  freeze(&current_sprite);
00106  choice_start()
00107  "Say hello"
00108  "Show him the scroll with the plans"
00109  "Leave"
00110  choice_end()
00111   if (&result == 1)
00112   {
00113    wait(400);
00114    say_stop("Hello Mayor, how's it going?", 1);
00115    wait(250);
00116    say_stop("`5Pretty good fair citizen.", &current_sprite);
00117    wait(250);
00118    say_stop("Hey, that's just great.", 1);
00119   }
00120   if (&result == 2)
00121   {
00122    wait(400);
00123    say_stop("I've got your proof mayor.", 1);
00124    wait(250);
00125    say_stop("They plan to slaughter the entire city.", 1);
00126    wait(250);
00127    say_stop("`5Oh my god, this attack would destroy our defenses!", &current_sprite);
00128    wait(250);
00129    say_stop("`5I can't believe they would attack us like this.", &current_sprite);
00130    wait(250);
00131    say_stop("Now will you call the Guard?", 1);
00132    wait(250);
00133    say_stop("`5Yes, I just hope they can get here in time...", &current_sprite);
00134    &mayor = 5;
00135    wait(500);
00136    script_attach(1000);
00137    //fadeout & cutscene?
00138    fade_down();
00139    //change maps and stuff ...
00140    &player_map = 586;
00141    sp_x(1, 266);
00142    sp_y(1, 80);
00143    load_screen();
00144    draw_screen();
00145    draw_status();
00146    fade_up();
00147    kill_this_task();
00148    //Done
00149   }
00150  unfreeze(1);
00151  unfreeze(&current_sprite);
00152  }
00153 }