Reply to Re: Amusing bug?
If you don't have an account, just leave the password field blank.
July 28th 2004, 08:51 AM

MiloBones


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(¤t_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...
void poison( void )
{
loop_here:
wait(500);
&random = random(2,1);
if (&random == 2)
{
hurt(¤t_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...