Back to index

freedink-data  1.08.20080920
GET-FB.c
Go to the documentation of this file.
00001 //sack of grain
00002 
00003 void main( void )
00004 {
00005 sp_touch_damage(&current_sprite, -1);
00006 }
00007 
00008 void hit(void)
00009 {
00010 Say("I hate you, scroll of fire!", 1);
00011 }
00012 
00013 void talk(void)
00014 {
00015 Say("A lovely scroll.", 1);
00016 }
00017 
00018 
00019 void touch(void)
00020 {
00021 //dink touched this sprite
00022 Playsound(10,22050,0,0,0);
00023 sp_brain_parm(&current_sprite, 10);
00024 sp_brain(&current_sprite, 12);
00025 sp_touch_damage(&current_sprite, 0);
00026 sp_timing(&current_sprite, 0);
00027 add_magic("item-fb",422, 7);
00028 say("I now have the hellfire magic!", 1);
00029   //kill this item so it doesn't show up again for this player
00030   int &hold = sp_editor_num(&current_sprite);
00031   if (&hold != 0)
00032   editor_type(&hold, 1); 
00033 
00034 }