Here is my setup so far. I have a common event that memorizes the location of the player and which slot in the formation a given party member is. (I made this common event long ago and it has many uses)
I can use those variables for a number of things, but for this topic, I am using them for the counter-heal.
The test battle seems to work fine, but there are some problems. First, here is what I have in the troop event:
And finally, here is what I have in the Counterheal common event:
The variable "Tim Reactiveheal" is just to acknowledge that he has reactive healing unlocked and currently at level 1 (you can improve it with talent points and such). That part works perfectly. He won't reactively heal if he hasn't unlocked reactive healing.
Now... the healer heals the correct character, but ignores the battle event condition ("Emerald is at 70% HP or less"), healing obsessively even at the start of battle and on everyone's turn. It doesn't matter if I have the condition set to "Battle", "Turn" or "Moment"
I do have a couple of battle scripts;
-YanPac Battle HUD (but it is just Pacman having taken the hud part of Yanfly's Ace Battle System, so I don't see how that would effect it?)
-Level Up System by Imyooni. He custom made this script for me. It shows a level-up screen with a randomly chosen quote, sound, and a graphic shown. Again, not sure how that would effect a battle event condition.
Any suggestions on how to make this work appreciated.
EDIT: I found a solution to the problem. I have a state called "got hit" that all enemy attacks will apply to their target. It lasts 1 round, and the common event checks for if the character has that state. Seems to work and the healer only reactively heals ONCE per character per round. While this still means he is able to heal up to 3 times in a single round, I did purposefully make the reactive heal very weak.
That said, I am still very interested in gstv87's idea on how to minimize copy-pasting and such?