Back to index

freedink-data  1.08.20080920
S6-G2.c
Go to the documentation of this file.
00001 void talk( void )
00002 {
00003 if (&story > 14)
00004   {
00005   say("`9Dink is alive!  Alive!", &current_sprite);
00006   return;
00007   }
00008 
00009  //guard 1
00010  say("`9You are a very brave man Sir Smallwood.", &current_sprite);
00011 }
00012 
00013 void hit( void )
00014 {
00015 int &dinky = sp_y(1, -1);
00016 //get dinks y cord
00017 
00018 if (&dinky < 280)
00019   {
00020    //dink is above them
00021    say_stop("`9Is that you up there Dink?", &current_sprite);
00022 
00023      wait(300);
00024    say_stop("`9Why are you trying to kill us?", &current_sprite);
00025    return;
00026   }
00027    say_stop("`9Don't kill us, we're on your side.", &current_sprite);
00028 
00029 
00030 }
00031