I have a basic mechanic I want to try making, where the boss charges up something powerful, then you hit them with an ability that stuns, it interrupts their charging and then they skip said ability and move on to the next phase. But if you don't stun them in time, the boss uses the ability and oneshots you. I like using Yanfly ATB, so I'm thinking I'll need to use Yanfly's Battle AI Core to do this, and make the stun ability an ATB interrupt but also apply a stun state, that if the state is active it turns a switch on, and if the switch is on then the boss doesn't use the ability.
Is there a more obvious way that I'm not aware of?
Just add a state that adds stun. As long as stun has something in it that says cannot move, the enemy will not get that turn, and will skip the turn in the attack pattern.
Now, since you are on an ATB system you'll have to set it up so that the stun lasts long enough, which may require some playing around.
Are you asking how to make an charge attack mechanic also?
Well the forum description was "How do I and How to", it seemed like this applied much more to the basic RMMV enemy turn conditions than specifically "ATB plugin support" so that's why I thought that was the correct forum. Are you saying if I don't use ATB then it will work the way I have it set up?
It should, as it works that way for me. So it does have to be a plug-in that is causing the issue. But to clarify is it Long Cast you want to interrupt? Also you may wish to post a screenshot of your stun skill as well.