Hey, thanks for the fast reply. Before you replied, i tested the b.clear_patb() and it worked better, cancelling the action slot if the atb was fullfilled. But we have a set back, if i want to, for example, reduce just 20, 30, 45% the atb amount of the battler, how can i achieve that?
another question: i'm a very beginner with javascript and code at all, this plugin calls work in other enviroments like the notetags of YEP action sequence packs, for example? The Math.random() as far i know, just return 0 or 1, right? So, when i add the condition ' < 0.9 ' id does make a difference compared to your original code sugestion ' < 0.5 ' ?
last question: when in the charge or cooldown state, the actual battler atb is 0 ?