Reply to Re: Why Can't I Quit You, DinkC?
If you don't have an account, just leave the password field blank.
I have a Bonca that regenerates 10 HP every 2 seconds (if it's at least 10 under its max) and announces this to you. Sometimes it works and sometimes it doesn't. On a screen with 3 of them, it works on 2 but not the third, and it never works on a screen with just 1. I'm kind of tempted to just shrug my shoulders at this one, since it's just a regular enemy and not a boss, but here's another puzzle for everybody.
Code:
Code:
void main( void ) { sp_brain(¤t_sprite, 9); sp_speed(¤t_sprite, 3); sp_distance(¤t_sprite, 50); sp_range(¤t_sprite, 30); sp_exp(¤t_sprite, 400); sp_base_walk(¤t_sprite, 600); sp_base_death(¤t_sprite, 550); sp_base_attack(¤t_sprite, 590); sp_defense(¤t_sprite, 5); sp_strength(¤t_sprite, 28); sp_touch_damage(¤t_sprite, 15); sp_hitpoints(¤t_sprite, 175); //preload_seqs are here in the real script, blah regen() } void regen { int &heal //recover 10 health every 2 seconds heal: wait(2000) &heal = sp_hitpoints(¤t_sprite, -1) if (&heal <= 165) { &heal += 10 sp_hitpoints(¤t_sprite, &heal) say("`0+10 HP! HP: &heal", ¤t_sprite) } goto heal } //rest of script is ordinary bonca stuff