Stupid bonca
Hi guys, ive got yet another mysterious script thats gone sour. what? nevermind, the problem is that there is a bonca, but he only hits when you stand still, and are right on top of him, making him realy super easy to kill. helps apprecaited, and this is the part of the script that has the problem.
if(&gladfight == 2)
{
screenlock(1);
&vision = 2;
say("Lets go!", 1);
playmidi("f2.mid");
int &maria = create_sprite(460, 220, 9, 360, 1);
sp_seq(&maria, 361);
sp_frame(&maria, 1);
say("`5*MORPHIMUS!*", &maria);
wait(1000);
sp_base_walk(&maria, 600);
sp_base_attack(&maria, 590);
sp_frame(&maria, 1);
sp_seq(&maria, 501);
sp_brain(&maria, 9);
sp_speed(&maria, 1);
sp_exp(&maria, 80);
sp_script(&maria, "opponent-maria");
sp_target(&maria, 1);
sp_strength(&maria, 4);
sp_hitpoints(&maria, 24);
sp_dir(maria, 4);
}
}
Thanks again.
if(&gladfight == 2)
{
screenlock(1);
&vision = 2;
say("Lets go!", 1);
playmidi("f2.mid");
int &maria = create_sprite(460, 220, 9, 360, 1);
sp_seq(&maria, 361);
sp_frame(&maria, 1);
say("`5*MORPHIMUS!*", &maria);
wait(1000);
sp_base_walk(&maria, 600);
sp_base_attack(&maria, 590);
sp_frame(&maria, 1);
sp_seq(&maria, 501);
sp_brain(&maria, 9);
sp_speed(&maria, 1);
sp_exp(&maria, 80);
sp_script(&maria, "opponent-maria");
sp_target(&maria, 1);
sp_strength(&maria, 4);
sp_hitpoints(&maria, 24);
sp_dir(maria, 4);
}
}
Thanks again.
It's best if you do
say("`5*MORPHIMUS!*", &maria);
wait(1000);
sp_script(&maria, "opponent-maria");
and modify an existing bonca script to suit her.
edit: I'm feeling anal today, so I'll remind that you "shouldn't" have script names that are longer than 8 letters. It propably doesn't matter shoot since it only troubles when you try to convert scripts to .d, but ya, I'm feeling anal.
say("`5*MORPHIMUS!*", &maria);
wait(1000);
sp_script(&maria, "opponent-maria");
and modify an existing bonca script to suit her.
edit: I'm feeling anal today, so I'll remind that you "shouldn't" have script names that are longer than 8 letters. It propably doesn't matter shoot since it only troubles when you try to convert scripts to .d, but ya, I'm feeling anal.

ok, now what it does is just attacks instantly when dink comes near it, and attacks about 8 times each second, is there any way to have a delayed period of time beerween attacks?
cheers.
cheers.
check an existing bonca script, void attack.
and make it int &mcounter
and make it int &mcounter