Help making Boss monster ability - VX ACE

I'm creating a vampire boss that kills his allies and absorbs their health.
I've never touched the combat system in RPGM VX ACE so I don't know how I would go about this.
This is what I have currently but it does not work as intended.
I want it to kill all his allies, not just one.
With these settings he will also attack, kill then revive himself using this skill.
I'm completely lost.
1651367679896.png
there are several different ways to handle this, depending on the exact rules you want to implement.
and unfortunately you didn't give enough details to start thinking on how to implement.

your first step should be to decide when the enemy is using this ability, and what will happen if his HP are full when the skill is used.
because the skill itself is a bit limited in its effects, you might have to use troop events or common events in combination with different action patterns.

can you give more details on how that ability should work?
there are several different ways to handle this, depending on the exact rules you want to implement.
and unfortunately you didn't give enough details to start thinking on how to implement.

your first step should be to decide when the enemy is using this ability, and what will happen if his HP are full when the skill is used.
because the skill itself is a bit limited in its effects, you might have to use troop events or common events in combination with different action patterns.

can you give more details on how that ability should work?
I'm wanting the player to kill the minions first so he is unable to do this but
if it does activate, I want it to kill all other enemies (not including him) and heal him for all the health he absorbed from them.
It is just going to be a skill he can use (Not super frequently but doesn't have a set state to activate, like at half health)
If he uses it at full health it will just be a funny dumb idiot move on his behalf.
this is based on if you can get enemy values in battle:

you could create a page that's called each turn. have it choose a random number, and if that number is >= what you decide (say, random number 1-15, if it's 11 or higher then...)have it add to a variable the amount of hp of each remaining monster of number a-y. have it kill all enemies from a-y, heal monster z (the boss) by that variable amount, then reset variable to 0.

you would likely want to put some kind of checks on IF there is any enemy alive except the boss.

heck, have him revive them later, and potentially do it again. or if dead set on only once, make sure there's a condition for the page, such as a particular switch being on, and shut that switch off at the end of it.
this is based on if you can get enemy values in battle:

you could create a page that's called each turn. have it choose a random number, and if that number is >= what you decide (say, random number 1-15, if it's 11 or higher then...)have it add to a variable the amount of hp of each remaining monster of number a-y. have it kill all enemies from a-y, heal monster z (the boss) by that variable amount, then reset variable to 0.

you would likely want to put some kind of checks on IF there is any enemy alive except the boss.

heck, have him revive them later, and potentially do it again. or if dead set on only once, make sure there's a condition for the page, such as a particular switch being on, and shut that switch off at the end of it.
Thank you so much! I just found that section in the troop area. I've never been one for combat so I never touched it before now!
I'll try that out!
(You figured out my plan of what I was going to have him do! Bring them back to heal again!😤)

Original thread: https://forums.rpgmakerweb.com/threads/help-making-boss-monster-ability-vx-ace.147210/