The Dink Network

Reply to Re: Another fail!

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 3rd 2010, 06:45 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Fireball (scroll) script:
//sack of grain

void main( void )
{
sp_touch_damage(&current_sprite, -1);
}

void touch(void)
{
//dink touched this sprite
Playsound(10,22050,0,0,0);
sp_brain_parm(&current_sprite, 10);
sp_brain(&current_sprite, 12);
sp_touch_damage(&current_sprite, 0);
sp_timing(&current_sprite, 0);
add_magic("item-fb",437, 1);
say("I got the Fireball spell", 1);
  //kill this item so it doesn't show up again for this player
  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
  editor_type(&hold, 1); 

}


The Fireball magic script is copied from the original game since I can't even open .d files.

(ITEM-FB.d)