The Dink Network

Stupid bonca

April 30th 2005, 08:16 PM
pig.gif
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.
May 1st 2005, 07:34 AM
spike.gif
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.
May 1st 2005, 05:07 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
sp_range(&current_sprite,50);
sp_distance(&current_sprite,50);
May 2nd 2005, 08:47 AM
pig.gif
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.
May 2nd 2005, 10:21 AM
spike.gif
check an existing bonca script, void attack.
and make it int &mcounter
May 2nd 2005, 07:28 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
In fact... if this person is changing into a bonca, just sp_script(&current_sprite,"en-bonc").
(or whichever bonca you want ).