Enemy Battlers that act as Allies???

Hey everyone! I have no idea if this is possible, and if so, how it would be accomplished, which is why I am asking here, lol!

I would like to have an area of my game in which the player encounters both friendly and non-friendly enemies in random encounters. Not like the FFIX mechanic of having a single friendly enemy appear from time to time, but one where both friendly and non-friendly enemies would appear in the same battle. The friendly enemy would aid the party in some way, either by drawing attacks toward itself, healing the party, or attacking the other enemies directly. The friendly enemies could be attacked if you chose, which would make them either disappear, or turn hostile, but the battle could be won by only defeating the non-friendly enemies.

Does that make sense?

I would appreciate any thoughts or ideas about how this could be accomplished!
This depends on how you want to do this.
You can simple have an enmey that has heal, that is directed toward the enmies instead of allies. You can use Yanfly Battle AI Core, to give conditions that target the member of the party with the lowest hp or with a certain state, and then have the friendfy cast it on all the enmies.
You can use Hime Scope Change Rules Plugin, and make states that reverse the direction of skills (this is how confuse works in my game) ie enemy skills hit allies while ally skills hit enemies.
Good suggestion! I’ll have to give that a try! Any ideas on how to make it so you can win the battle without having to defeat the “friendly” enemies?
You can set a state for these enemies.If all the enemies alive are in this state.The battle was won
THANK YOU SO MUCH! Works great 😀DD

Original thread: https://forums.rpgmakerweb.com/threads/enemy-battlers-that-act-as-allies.90584/