The Dink Network

Reply to Splitting pillbug boss.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 11th 2012, 03:55 AM
knights.gif
merder
Peasant He/Him Netherlands
The Voice in the back of your head! 
as you probably read i have an idea for a pillbug that splits up as a boss. however fooling around with the premade pillbug scripts didn't get me that much farther. so i'll pos the cooked up script sofar(only minor edits)

//pillbug brain

void main( void )
{
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,99999);
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
}
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");

}
}


now my idea was if possible i want after he's hit and damaged i want him(and his partners after made) to split up in 2 and those partners sharing the HP which is left over from the initial hitted bug. this also is why though has insane defense it's exp given is so low as that is for each individual part and since he splits there will be many of those parts to give that exp which would still result in tons of exp.

I decided not to remove the respawn code because i want the boss to be rebattleable(and since it has insane defenses he'll always stay as challenging as he is and might consider using counter based touch damage instaid of the preset touch damage as the test script is.

and as you can probably see i will give bosses a separate drop table and he is only allowed to do so if he and his split partners are dead just haven't decided what to put in there yet though but will be better than any reward plain old foes can give.

dunno if it is possible to do with a single script but i do know the concept is possible(thanks to those splitting blob enemies that are present in some mods) but i don't like the idea of needing a script per HP taken off and if it can be done in 1 script it is much more efficient.

I did manage to add it so he did split but only with his HP at max resulting in an endless stream of insane defense having pillbugs is not how i want the battle to be so i removed the piece of coding instaid of commenting it out.

Edot: Dunno why but for some reason the Code tags keep replacing "&current_sprite" with "¤t_sprite"