Battle Event (If party member is at a specific %, enemy use specific skill)

How could I force an Enemy AI to use a specific skill if a party member is at a certain percentage HP in a battle event?
Best way would be to set a switch using a Troop Event (have the Troop Event activate when the actor's HP hits a certain %, and have that event turn a switch ON). Use that Switch as a condition (in the Actions box on the Enemies tab) for the AI to use that move, and set its Priority to 10 if you want to ensure the enemy always uses that move once the condition has been met. If you only want the enemy to use the skill once, have the skill run a Common Event that turns the switch OFF.
Best way would be to set a switch using a Troop Event (have the Troop Event activate when the actor's HP hits a certain %, and have that event turn a switch ON). Use that Switch as a condition (in the Actions box on the Enemies tab) for the AI to use that move, and set its Priority to 10 if you want to ensure the enemy always uses that move once the condition has been met. If you only want the enemy to use the skill once, have the skill run a Common Event that turns the switch OFF.
The way I was thinking of forcing the Enemy to use a specific skill is like an instant loss event to that character.

Original thread: https://forums.rpgmakerweb.com/threads/battle-event-if-party-member-is-at-a-specific-enemy-use-specific-skill.120858/