The Dink Network

Reply to Re: I Need help with a script...

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:
 
 
September 16th 2005, 01:48 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Or even better, attach it to some object on the screen, put it in the main proc, right after sp_nodraw(&current_sprite, 1); This makes it invisible. Type 2 in the editor won't work. For some strange reasons Type 2 sprites won't run scripts...
Then place the following code after it has done its job:

int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
{
editor_type(&hold, 3);
}
sp_brain(&current_sprite, 5);
sp_notouch(&current_sprite, 1);
sp_nohit(&current_sprite, 1);
sp_hard(&current_sprite, 1);
draw_hard_sprite(&current_sprite);
sp_active(&current_sprite, 0);
kill_this_task();

It's copied from some barrel script or something, but slightly modified. It makes the sprite disappear from the map forever, so it executes the code when you enter the screen and destroys itself, so it can never execute again.