Back to index

freedink-data  1.08.20080920
S1-NUT.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 sp_touch_damage(&current_sprite, -1);
00004 
00005 }
00006 
00007 void touch( void )
00008 {
00009 int &junk = free_items();
00010 
00011 if (&junk < 1)
00012  {
00013  say("I'm full!  I can't pick up anything else.", 1);
00014  return;
00015  }
00016 Playsound(10,22050,0,0,0);
00017 add_item("item-nut",438, 19);
00018 
00019         if (&nuttree < 1)
00020         {
00021         &nuttree = 1;
00022         &story = 3;
00023         }
00024 
00025         say("I picked up a nut!",1);
00026         sp_active(&current_sprite, 0);
00027 
00028  }