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, 12:36 AM
duckdie.gif
BeheadedDuck
Peasant He/Him Australia
So lazy... So incredibly lazy... 
I did this:

void hit( void )
{
say("Line 1.", 1);
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
say("Line 2.", 1);
if (&rcrap == 1)
say("Line 3.", 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);
}

Broke when I bombed it or hit it with my fist, both resulting in the last thing Dink says is "Line 9." Any suggestions?