Back to index

freedink-data  1.08.20080920
S3-ST1P.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &call;
00004  &call = random(3,1);
00005  if (&call == 1)
00006  {
00007   freeze(&current_sprite);
00008   say_stop("`3Welcome to our book store sir.", &current_sprite);
00009   unfreeze(&current_sprite);
00010  }
00011 }
00012 
00013 void talk( void )
00014 {
00015  freeze(1);
00016  freeze(&current_sprite);
00017  say_stop("`3How may I help you today sir?", &current_sprite);
00018  choice_start()
00019  "Ask about the bookstore"
00020  "Ask about Magic"
00021  "Find out about the next town"
00022  "See what's news"
00023  "Leave"
00024  choice_end()
00025   if (&result == 1)
00026   {
00027    say_stop("So what do you got here?", 1);
00028    wait(250);
00029    say_stop("`3We carry books, what did you think?", &current_sprite);
00030    wait(250);
00031    say_stop("Mmmmm", 1);
00032    say_stop("Noted.", 1);
00033   }
00034   if (&result == 2)
00035   {
00036    say_stop("Do you have anything in here on magic?", 1);
00037    wait(250);
00038    say_stop("`3Magic?  No such thing.", &current_sprite);
00039    wait(250);
00040    say_stop("I see... thanks.", 1);
00041   }
00042   if (&result == 3)
00043   {
00044    if (&mayor >= 6)
00045    {
00046     say_stop("Did you hear anything about that other town yet?", 1);
00047     wait(250);
00048     say_stop("`3Yeah actually, a man passed through here this morning,", &current_sprite);
00049     say_stop("`3he said the bridge was back up, so I'm sure you could", &current_sprite);
00050     say_stop("`3head over there and check it out.", &current_sprite);
00051     wait(250);
00052     say_stop("Okay, thanks.", 1);
00053     unfreeze(1);
00054     wait(1000);
00055     unfreeze(&current_sprite);
00056     return;
00057    }
00058    say_stop("Could you tell me about any other cool towns?", 1);
00059    wait(250);
00060    say_stop("`3There is a neat place east of Terris.", &current_sprite);
00061    wait(250);
00062    say_stop("`3But last I heard the bridge there was out.", &current_sprite);
00063    wait(250);
00064    say_stop("`3I'll let ya know if I hear anything though.", &current_sprite);
00065   }
00066   if (&result == 4)
00067   {
00068    say_stop("So what's been going on lately round here?", 1);
00069    wait(250);
00070    if (&mayor >= 6)
00071    {
00072     say_stop("`3Well, you should know hero!  Thanks for what you did,", &current_sprite);
00073     wait(250);
00074     say_stop("`3the mayor tells me you saved us all.", &current_sprite);
00075     wait(250);
00076     say_stop("Uh, well .. the mayor exaggerates just a bit,", 1);
00077     wait(250);
00078     say_stop("but yes, it was pretty much me.", 1);
00079     wait(250);
00080     say_stop("`3You're quite the popular guy,", &current_sprite);
00081     wait(250);
00082     say_stop("`3I even heard the mayor's daughter talking about you.", &current_sprite);
00083     wait(250);
00084     say_stop("Christina, really!??!  What did she say??", 1);
00085     wait(250);
00086     say_stop("`3Oh, I wasn't really listening that closely,", &current_sprite);
00087     wait(250);
00088     say_stop("`3just heard your name once or twice.", &current_sprite);
00089     wait(250);
00090     say_stop("Man!!", 1);
00091     sp_dir(1, 2);
00092     say_stop("Damn I'm cool!", 1);
00093     unfreeze(1);
00094     unfreeze(&current_sprite);
00095     return;
00096    }
00097     say_stop("`3Not much, everything's been pretty quiet", &current_sprite);
00098     wait(250);
00099     say_stop("`3people are waiting for the parade to happen soon.", &current_sprite);
00100     wait(250);
00101     say_stop("Oh.", 1);
00102     unfreeze(1);
00103     unfreeze(&current_sprite);
00104     return;
00105 
00106 
00107   }
00108  unfreeze(1);
00109  unfreeze(&current_sprite);
00110 }
00111 
00112 void hit( void )
00113 {
00114  freeze(&current_sprite);
00115  say_stop("`3Oh my golly gosh, please don't hurt me mister...", &current_sprite);
00116  unfreeze(&current_sprite);
00117 }