Back to index

freedink-data  1.08.20080920
S4-H2P2.c
Go to the documentation of this file.
00001 //House 2 script for the DAD person
00002 void main( void )
00003 {
00004  int &neat;
00005 }
00006 
00007 void talk( void )
00008 {
00009  if (&story > 10)
00010  {
00011   freeze(1);
00012   say_stop("`2Thank you, small one.", &current_sprite);
00013   wait(250);
00014   say_stop("Smallwood sir.", 1);
00015   wait(250);
00016   say_stop("`2Yes.", &current_sprite);
00017   unfreeze(1);
00018   return;
00019  }
00020  freeze(1);
00021  &neat = random(3, 1);
00022  if (&neat == 1)
00023  {
00024   say_stop("`2I'm too hungry to talk.", &current_sprite);
00025  }
00026  if (&neat == 2)
00027  {
00028   say_stop("`2Hello there.", &current_sprite);
00029  }
00030  if (&neat == 3)
00031  {
00032   say_stop("`2Welcome to our town.", &current_sprite);
00033  }
00034  unfreeze(1);
00035  //unfreeze(&current_sprite);
00036 }
00037 
00038 void hit( void )
00039 {
00040  if (&story > 10)
00041  {
00042   say_stop("`2First feed us, then beat us, is that how it is with you?", &current_sprite);
00043   reutrn;
00044  }
00045  say_stop("`2Strange customs you have.", &current_sprite);
00046 }