[VXA] Heal / Target Ally with lowest health after attack?

Using VXA, but everything I try to find leads to MV for this subject.

I'm trying to make a DPS skill that heals an ally with the lowest health after the damage is done. I can use yanfly's follow up script, but it can't target the ally with the lowest health. Is there any existing scripts that can allow this or if its somehow possible within the system?

Thank you very much for any help received. 😊
but it can't target the ally with the lowest health
Code:
$game_party.members.sort {|a,b| a.hp <=> b.hp}[0]
This is the code you need to get the ally with the lowest hp.
Code:
$game_party.members.sort {|a,b| a.hp <=> b.hp}[0]
This is the code you need to get the ally with the lowest hp.
How does the code work and what exactly do I do with it? Is it a formula?
How does the code work and what exactly do I do with it? Is it a formula?
I was assuming you could actually code since you mentioned this.
I can use yanfly's follow up script, but it can't target the ally with the lowest health.
And you didn't link to the particular script you mentioned here, so again, I was assuming you just need the right script call to get the actor with the lowest hp.

To actually answer your question, no, it's not a formula. it just a function to get the actor with the lowest hp. First, you need to link to the YF script you mentioned here.
I was assuming you could actually code since you mentioned this.

And you didn't link to the particular script you mentioned here, so again, I was assuming you just need the right script call to get the actor with the lowest hp.

To actually answer your question, no, it's not a formula. it just a function to get the actor with the lowest hp. First, you need to link to the YF script you mentioned here.
I apologize for not doing it in advance. https://github.com/Archeia/YEARepo/blob/master/Gameplay/Follow-Up_Skills.rb
This is the one I am currently using.

Original thread: https://forums.rpgmakerweb.com/threads/vxa-heal-target-ally-with-lowest-health-after-attack.123264/