Back to index

freedink-data  1.08.20080920
S1-FMONS.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  sp_hitpoints(&current_sprite, 30);
00004  sp_base_walk(&current_sprite, 130);
00005  sp_exp(&current_sprite, 30);
00006  
00007  int &how;
00008  if (&farmer_quest == 1)
00009  {
00010         say_stop("`9You cannot defeat us Mr. Smallwood, we are too much for you.", &current_sprite);
00011         say_stop("`9Try your best but you risk your life doing so...", &current_sprite);
00012  }
00013  &how = random(3,1);
00014  if (&how == 1)
00015  {
00016   say_stop("`9RRrrr ar a rar a  arrgghhh.", &current_sprite);
00017   sp_speed(&current_sprite, 9);
00018   sp_timing(&current_sprite, 0);
00019   wait(4000);
00020   sp_speed(&current_sprite, 1);
00021   sp_timing(&current_sprite, 0);
00022  }
00023 }
00024 
00025 void talk( void )
00026 {
00027 }
00028 
00029 void hit( void )
00030 {
00031        sp_target(&current_sprite, &enemy_sprite);
00032        playsound(30, 17050, 4000, &current_sprite, 0);
00033   &how = random(2,1);
00034   if (&how == 1)
00035   {
00036          say("`9You cannot win, Smallwood.", &current_sprite);
00037   }
00038   if (&how == 2)
00039   {
00040          say("`9You cannot win, Smallwood.", &current_sprite);
00041   }
00042   sp_speed(&current_sprite, 9);
00043   sp_timing(&current_sprite, 0);
00044   wait(2000);
00045   sp_speed(&current_sprite, 1);
00046   sp_timing(&current_sprite, 33);
00047 }
00048 
00049 void die( void )
00050 {
00051        &farmer_quest = 2;
00052         &exp += 40;
00053        say("`9Damn you ... damn .. you.", &current_sprite);
00054 }
00055