The Dink Network

Reply to Re: 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 17th 2012, 02:42 PM
knights.gif
merder
Peasant He/Him Netherlands
The Voice in the back of your head! 
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

//pillbug brain

void main( void )
{
int &crap;
screenlock(1);
sp_brain(&current_sprite, 9);
sp_speed(&current_sprite, 2);
sp_nohit(&current_sprite, 0);
sp_exp(&current_sprite, 5);
sp_base_walk(&current_sprite, 130);
sp_base_death(&current_sprite, 140);
sp_touch_damage(&current_sprite, 3);
sp_hitpoints(&current_sprite, 10);
Sp_defense(&current_sprite, 2);
preload_seq(131);
preload_seq(133);
preload_seq(141);
preload_seq(143);

if (random(2,1) == 1)
 {
 sp_target(&current_sprite, 1);
 }
}

void hit( void )
{
sp_target(&current_sprite, &enemy_sprite);
playsound(30, 17050, 4000, &current_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(&current_sprite, -1);

  &save_y = sp_y(&current_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(&current_sprite, -1); 
  sp_hitpoints(&temp, &hp_transfer);
  sp_speed(&temp, 2)
}
void die( void )
{

if (get_sprite_with_this_brain(9, &current_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(&current_sprite);
  if (&hold != 0)
  editor_type(&hold, 6); 

&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_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 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)