The Dink Network

Reply to Re: Amusing bug?

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:
 
 
July 28th 2004, 08:51 AM
anon.gif
MiloBones
Ghost They/Them
 
In a poison() proc, called from another script via is_script_attached and run_script_by_number. The proc looks something like this:

void poison( void )
{
loop_here:
wait(500);
&random = random(2,1);
if (&random == 2)
{
hurt(&current_sprite, 5);
goto loop_here;
}
}

It'll probably work if I make it return at the end, but there are two things which are weird about this.

1. It only ran emake when hurt was actually called. If &random was 1 the first time through, it did nothing.

2. It JUST ran emake. No corspe...