The Dink Network

Reply to Re: Story scripts suck

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 3rd 2005, 09:19 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Uhm... I meant the say-line where Dink should say "Line 3"...

anyway, you might want to use this:

void hit( void )
{
say("Line 1.", 1);
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
say("Line 2.", 1);
if (&rcrap == 1)
{
//rock just got hit by a sprite with a script named dam-bomn, I'm gonna
//guess it was the bomb.
//remove rocks hardness and sprite
say("Line 4.", 1);
sp_hard(&current_sprite, 1);
say("Line 5.", 1);
draw_hard_sprite(&current_sprite);
say("Line 6.", 1);
sp_active(&current_sprite, 0);
say("Line 7.", 1);
playsound(43, 22050, 0,0,0);
say("Line 8.", 1);
//kill this item so it doesn't show up again for this player
int &hold = sp_editor_num(&current_sprite);
say("Line 9.", 1);
if (&hold != 0)
say("Line 0.", 1);
editor_type(&hold, 1);
}

My mistake entirely