Reply to sp_target
If you don't have an account, just leave the password field blank.
I noticed that this command (present in many monsterscripts) is automaticly executed, whether you have it in your script or not:
sp_target(¤t_sprite,&enemy_sprite);
Now the problem is that I let Dink fight alongside with a friend, so for the friend's script I want:
if (&enemy_sprite != 1)
{
sp_target(¤t_sprite,&enemy_sprite);
}
That doesn't work because of what I just said, I could fix it by do this:
if (&enemy_sprite == 1)
{
sp_target(¤t_sprite,1000);
}
but that's a pretty ugly fix, the only other thing I can think of is setting the target to be an random enemy. Or does any of you know a better fix?
sp_target(¤t_sprite,&enemy_sprite);
Now the problem is that I let Dink fight alongside with a friend, so for the friend's script I want:
if (&enemy_sprite != 1)
{
sp_target(¤t_sprite,&enemy_sprite);
}
That doesn't work because of what I just said, I could fix it by do this:
if (&enemy_sprite == 1)
{
sp_target(¤t_sprite,1000);
}
but that's a pretty ugly fix, the only other thing I can think of is setting the target to be an random enemy. Or does any of you know a better fix?