Enemy ultimate attack

I wanted for the enemy have a special ultimate attack like the heroes have, but an attack that can only be used once (if i put to he use it in 10% hp he will end up using on every turn), is there a way to make he do it:
1 in a timer (like after 3 turns)
2 after attacking heroes an ammount of time (like if he had own TP)
3 when his HP reach an % but only be used 1 time
4 if possible to he have an TP bar and it increasses on attack/turn it could be better too, as well as he having a skill to increasse own gauge
1. This is literally in the troops page options.
2. Add a variable counter to its attacks to keep track of its number of attacks performed.
3. This is literally in the troops page options, put Span set to Battle.
4. There are plugins that add visible gauges to enemies. Could show an MP bar on him, and have his skills charge a number of MP, then have him perform the ultimate attack when it's at full MP.
An easier way is to set it to occur on a certain turn no matter what. I do that by setting the attack to occur say on turn 6 in the attack sequence, and set it as turn 6 + 0 * X with frequency 10. Then as long as nothing else is set to 10 9 or 8 it will always occur unless the enemy can't do the skill for some reason.

And if you want it to repeat, change the number on X. For instance 6 + 6 * X will have the attack repeat every 6th turn.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-ultimate-attack.110654/