Purple Bonca??
Hmmm. it seems that the purple bonca script isn't really working as the purple bonca cannot hit me with it's attack it seems... They can only hurt you with their touch damage? Howcome? Here is the script:
//Bonca..medium strength
void main( void )
{
int &mcounter;
sp_brain(¤t_sprite, 9);
sp_speed(¤t_sprite, 1);
sp_nohit(¤t_sprite, 0);
sp_distance(¤t_sprite, 50);
sp_timing(¤t_sprite, 0);
sp_exp(¤t_sprite, 25);
sp_base_walk(¤t_sprite, 610);
sp_base_death(¤t_sprite, 550);
sp_base_attack(¤t_sprite, 620);
sp_defense(¤t_sprite, 3);
sp_strength(¤t_sprite, 8);
sp_touch_damage(¤t_sprite, 5);
sp_hitpoints(¤t_sprite, 30);
preload_seq(611);
preload_seq(613);
preload_seq(617);
preload_seq(619);
preload_seq(621);
preload_seq(623);
preload_seq(627);
preload_seq(629);
preload_seq(542);
preload_seq(544);
preload_seq(546);
preload_seq(548);
}
void hit( void )
{
playsound(29, 22050,0,¤t_sprite, 0);
sp_target(¤t_sprite, &enemy_sprite);
//lock on to the guy who just hit us
//playsound
}
void die( void )
{
if (get_sprite_with_this_brain(9, ¤t_sprite) == 0)
{
//no more brain 9 monsters here, lets unlock the screen
screenlock(0);
playsound(43, 22050,0,0,0);
}
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
external("emake","medium");
}
void attack( void )
{
playsound(31, 22050,0,¤t_sprite, 0);
&mcounter = random(4000,0);
sp_attack_wait(¤t_sprite, &mcounter);
}
Regards, Sjoerdje
//Bonca..medium strength
void main( void )
{
int &mcounter;
sp_brain(¤t_sprite, 9);
sp_speed(¤t_sprite, 1);
sp_nohit(¤t_sprite, 0);
sp_distance(¤t_sprite, 50);
sp_timing(¤t_sprite, 0);
sp_exp(¤t_sprite, 25);
sp_base_walk(¤t_sprite, 610);
sp_base_death(¤t_sprite, 550);
sp_base_attack(¤t_sprite, 620);
sp_defense(¤t_sprite, 3);
sp_strength(¤t_sprite, 8);
sp_touch_damage(¤t_sprite, 5);
sp_hitpoints(¤t_sprite, 30);
preload_seq(611);
preload_seq(613);
preload_seq(617);
preload_seq(619);
preload_seq(621);
preload_seq(623);
preload_seq(627);
preload_seq(629);
preload_seq(542);
preload_seq(544);
preload_seq(546);
preload_seq(548);
}
void hit( void )
{
playsound(29, 22050,0,¤t_sprite, 0);
sp_target(¤t_sprite, &enemy_sprite);
//lock on to the guy who just hit us
//playsound
}
void die( void )
{
if (get_sprite_with_this_brain(9, ¤t_sprite) == 0)
{
//no more brain 9 monsters here, lets unlock the screen
screenlock(0);
playsound(43, 22050,0,0,0);
}
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
external("emake","medium");
}
void attack( void )
{
playsound(31, 22050,0,¤t_sprite, 0);
&mcounter = random(4000,0);
sp_attack_wait(¤t_sprite, &mcounter);
}
Regards, Sjoerdje
Have you changed the .INI at all? Because an attack frame needs a certain command to make it "hit".
For example...
set_frame_special 102 3 1
set_frame_special 104 3 1
set_frame_special 106 3 1
set_frame_special 108 3 1
This may not be the problem at all. I didn't read the script you posted in any detail. It looks like your missing sp_range though...
For example...
set_frame_special 102 3 1
set_frame_special 104 3 1
set_frame_special 106 3 1
set_frame_special 108 3 1
This may not be the problem at all. I didn't read the script you posted in any detail. It looks like your missing sp_range though...
Yes, You are right. Bonca in the original dink can't hit. Sabre is right: you need to add set_frame_special to dink.ini and sp_range to bonca script.
Ah, didn't know that bonca's couldn't hit in dink? Because my other bonca's CAN hit, only this purple one can't...
Me, Sabre, helping with a scripting problem? What the hell is going on?! The world has gone mad!