Reply to Re: Splitting pillbug boss.
If you don't have an account, just leave the password field blank.
Ive finished the boss and he works and dang is he though
. so if you wanna challange him now just place this script in your game and enjoy
had to place the splitting code in its own script and not an external one(since than the original bug script stopped) but it works and hope you enjo thiss though battle(see touch damage foes can be a challenge
)
edit: had to reduce it's defense in order for the engine being able to handle him
oh well he still is a challenge and requires luck but trust me on any defense this guy can decimate you also note that the finalized version will have counter based defense so that nomatter how trained you are he is a challenge(and will go the extra mile and see if you have any swords in your pack but via a global counter so that the game works smoother and not that every individual bug doesn't have to do that math)

//pillbug brain void main( void ) { int &crap; screenlock(1); sp_brain(¤t_sprite, 9); sp_speed(¤t_sprite, 2); sp_nohit(¤t_sprite, 0); sp_exp(¤t_sprite, 5); sp_base_walk(¤t_sprite, 130); sp_base_death(¤t_sprite, 140); sp_touch_damage(¤t_sprite, 3); sp_hitpoints(¤t_sprite, 10); Sp_defense(¤t_sprite, 2); preload_seq(131); preload_seq(133); preload_seq(141); preload_seq(143); if (random(2,1) == 1) { sp_target(¤t_sprite, 1); } } void hit( void ) { sp_target(¤t_sprite, &enemy_sprite); playsound(30, 17050, 4000, ¤t_sprite, 0); //lock on to the guy who just hit us //playsound &crap = scripts_used(); if (&crap > 101) { //don't make any more bugs, there are 100 already on the screen..) return; } wait(1); &save_x = sp_x(¤t_sprite, -1); &save_y = sp_y(¤t_sprite, -1); int &temp = create_sprite(&save_x,&save_y,9,131,1); sp_dir(&temp,1); sp_script(&temp,"boss-splitbug"); int &hp_transfer = sp_hitpoints(¤t_sprite, -1); sp_hitpoints(&temp, &hp_transfer); sp_speed(&temp, 2) } 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","boss"); } }
had to place the splitting code in its own script and not an external one(since than the original bug script stopped) but it works and hope you enjo thiss though battle(see touch damage foes can be a challenge

edit: had to reduce it's defense in order for the engine being able to handle him
