Question About Enemy Attack Conditions

Is it possible for an enemy to use a certain attack only one time when its HP is below a certain percentage, and then never use it ever again?

The enemy will go back to using its regular attacks.
I think you can condition attacks with switches. If you make the attack turn on a switch, then condition the attack to only be available if the switch is off (or turn off the switch and make it available only when the switch is on), you should be able to achieve that. However, that would mean only one of that particular enemy could ever use the attack - which is okay if it's a boss, but not if it's a troop with several of the same enemy, or an enemy that might be encountered multiple times.
Thank you Shaz! It worked!

Original thread: https://forums.rpgmakerweb.com/threads/question-about-enemy-attack-conditions.40455/