Reply to Re: help wanted: script bug
If you don't have an account, just leave the password field blank.
Yeah... ignore me. Sorry.
Anyway, I did better this time! You need to add to &duck otherwise get_next_sprite_with_this_brain is checking the same duck each time.
This works (I tested):
reduck:
wait(25);
&duck = get_next_sprite_with_this_brain(9,0,&duck);
if (sp_target(&duck,-1) == ¤t_sprite)
{
//Target feed? It's a duck!
sp_brain(&duck,3);
//say("imaduck",&duck);
}
if (&duck > 0)
{
&duck += 1;
goto reduck;
}
Anyway, I did better this time! You need to add to &duck otherwise get_next_sprite_with_this_brain is checking the same duck each time.
This works (I tested):
reduck:
wait(25);
&duck = get_next_sprite_with_this_brain(9,0,&duck);
if (sp_target(&duck,-1) == ¤t_sprite)
{
//Target feed? It's a duck!
sp_brain(&duck,3);
//say("imaduck",&duck);
}
if (&duck > 0)
{
&duck += 1;
goto reduck;
}







