I'll have a look at Yanfly's Target Core. It should be possible with the <Custom Target Eval> lunatic mode notetag, just have to figure out the right way to do it.
This works for targeting the ally with the lowest HP:
<Custom Target Eval>
var lowestMember = allies.aliveMembers()[0];
var lowestHP = lowestMember.hp;
for (var i = 1; i < allies.aliveMembers().length; ++i) {
var member = allies.aliveMembers();
if (member.hp < lowestHP) {
lowestHP = member.hp;
lowestMember = member;
}
}
targets.push(lowestMember);
</Custom Target Eval>
I'm not sure how to apply the concept to multiple allies, though. Maybe someone with more experience in Javascript can help.
A (rather dirty) workaround could be the following:
Create one skill "Heal lowest" with the above notetag.
Create another skill "Heal lowest twice" (or whatever name you want). This will be the skill the actor uses. No notetag required for this one.
Create a common event that uses the "Force Action" command twice with the "Heal lowest" skill.
Have the "Heal lowest twice" skill call the common event.
Hope that helps a bit
