Back to index

freedink-data  1.08.20080920
S4-MDOOR.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &what;
00004  &temp1hold = sp(7);
00005 }
00006 
00007 void touch( void )
00008 {
00009  if (&story > 10)
00010  {
00011   move_stop(1, 2, 175,1 );
00012   sp_dir(1, 6);
00013   say("`3Thank you for saving us Dink!", &temp1hold);
00014   return;
00015  }
00016  &what = random(6, 1);
00017  freeze(1);
00018  move_stop(1, 2, 175,1 );
00019  sp_dir(1, 6);
00020  if (&what == 1)
00021  {
00022   say("`3It's locked.", &temp1hold);
00023  }
00024  if (&what == 2)
00025  {
00026   say("`3Go away.", &temp1hold);
00027  }
00028  if (&what == 3)
00029  {
00030   say("`3I hate you.", &temp1hold);
00031  }
00032  if (&what == 4)
00033  {
00034   say("`3Noooooooo!!", &temp1hold);
00035  }
00036  if (&what == 5)
00037  {
00038   say("`3You can't get in.", &temp1hold);
00039  }
00040  if (&what == 6)
00041  {
00042   say("`3Leave me alone.", &temp1hold);
00043  }
00044  unfreeze(1); 
00045 }