A Plugin that make each group receive a different amount of damage from a skill?

I would like one of my enemies to have an explosion attack which instantly kills them while dealing some damage to the allies without instantly killing them.
Is there a plugin out there that does this job?
Yanfly's action sequences plus skill core (to allow hp skill costs)
Yanfly's action sequences plus skill core (to allow hp skill costs)
I'll give that a shot.
It seems that the HP Cost requires the Enemy to have that amount of HP and is not allowed to die when using it.
Update: I don't think the plugin allows enemies to use HP Cost skills.
Try this:

Spoiler: Sacrifice
<setup action>
display action
perform start
wait for movement
immortal: targets, true
</setup action>

<whole action>
action animation: targets
wait for animation
</whole action>

<target action>
action effect
wait for effect
add state 1: user
</target action>

<follow action>
clear battle log
</follow action>

<finish action>
collapse: user, force
perform finish
immortal: target, false
wait: 20
</finish action>

Then set your damage formula to something like (a.hp / 2) so the damage will be 1/2 of the remaining HP of the enemy.

There's not really a need for this to be a plugin.
Try this:

Spoiler: Sacrifice
<setup action>
display action
perform start
wait for movement
immortal: targets, true
</setup action>

<whole action>
action animation: targets
wait for animation
</whole action>

<target action>
action effect
wait for effect
add state 1: user
</target action>

<follow action>
clear battle log
</follow action>

<finish action>
perform finish
immortal: target, false
wait: 20
</finish action>

Then set your damage formula to something like (a.hp / 2) so the damage will be 1/2 of the remaining HP of the enemy.

There's not really a need for this to be a plugin.
I know that requires the Action Sequence plugin stuff, but which pack does it require?
You would need pack 1 and 2 for sure.
You would need pack 1 and 2 for sure.
When I add that to the enemy's skill, it's sprite just stays there yet I still win. I'm not using Sideview BTW.
Oh I forgot to force collapse the user. I'm on my phone but I will post the updated version later when I get home

EDIT: made a change to the sacrifice code which should force the target to collapse at the end of the sequence.
I works like I thought, thanks, now I might use those plugins again.

Original thread: https://forums.rpgmakerweb.com/threads/a-plugin-that-make-each-group-receive-a-different-amount-of-damage-from-a-skill.83022/