Back to index

freedink-data  1.08.20080920
RPOTION.c
Go to the documentation of this file.
00001 //this script is for the red potion
00002 
00003 void main( )
00004 {
00005 sp_touch_damage(&current_sprite, -1);
00006 sp_seq(&current_sprite, 56);
00007 sp_brain(&current_sprite, 6);
00008 
00009 }
00010 
00011 void touch( void )
00012 {
00013   int &hold = sp_editor_num(&current_sprite);
00014   if (&hold != 0)
00015     {
00016      //this was placed by the editor, lets make it not come back
00017      editor_type(&hold, 1); 
00018      //kill food forever
00019     }
00020 
00021 &strength += 1;
00022 Playsound(10,22050,0,0,0);
00023 //shrink to this percent then die
00024 sp_brain_parm(&current_sprite, 5);
00025 sp_brain(&current_sprite, 12);
00026 sp_touch_damage(&current_sprite, 0);
00027 sp_timing(&current_sprite, 0);
00028 }