Back to index

freedink-data  1.08.20080920
S1-CAVE.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int ⊥
00004  &bot = random(7,1);
00005  if (&bot == 1)
00006  
00007  {
00008   say_stop("Smells damp in here.", 1);
00009  }
00010  if (&bot == 2)
00011  
00012  {
00013   say_stop("I don't like this one bit...", 1);
00014  }
00015 
00016 if (&wizard_see > 2)
00017 {
00018 set_callback_random("noise", 5000, 10000);
00019 }
00020 }
00021 
00022 void noise( void )
00023 {
00024 if (&wizard_see > 2)
00025   {
00026   //killed monster already, why would it roar?
00027   return;
00028   }
00029 
00030 playsound(32, 11000, 4000, 0, 0);
00031 wait(4000);
00032 &bot = random(4,1);
00033 if (&bot == 1)
00034 say_stop("Can we leave now? <shiver>", 1);
00035 if (&bot == 2)
00036 say_stop("I'm scared.", 1);
00037 if (&bot == 3)
00038 say_stop("Why, that's a funny noise.", 1);
00039 
00040 if (&bot == 4)
00041 say_stop("This cave sucks, let's leave...", 1);
00042 
00043 }