By default, when a "Cannot Move" state is applied, the battler 's TPB gauge will be reset. Any way to keep the gauge maintained?
TPB charging problem when a "Cannot Move" state applied
RPG Maker MZ SupportI tried to adjust "rmmz_object.js" but the gauge will still be reset when the state is removed after a turn.
Someone can correct me if I am wrong on this, but I am pretty sure while it is not visually shown the TPB ATB bar is actually still filling up and emptying while you are afflicted with a state, so it knows when the afflicted character has had enough turns for it to end.
And since a state ticks down a turn when it becomes the actors turn again, the ATB bar will actually be reset by default since at that point it is beginning a new turn in battle for that character.
What you're asking for can probably be done with a wee bit of work, but what I can visualize for making it work would be a bit on the sloppy side without taking more time to stare at the code.
Edit: humor me and see if your code edits work if an item is used to remove the stun state since that would not be at the inflicted characters turn end. I am wondering if it still resets to 0 or will continue from where it was frozen.
And since a state ticks down a turn when it becomes the actors turn again, the ATB bar will actually be reset by default since at that point it is beginning a new turn in battle for that character.
What you're asking for can probably be done with a wee bit of work, but what I can visualize for making it work would be a bit on the sloppy side without taking more time to stare at the code.
Edit: humor me and see if your code edits work if an item is used to remove the stun state since that would not be at the inflicted characters turn end. I am wondering if it still resets to 0 or will continue from where it was frozen.
Original thread: https://forums.rpgmakerweb.com/threads/tpb-charging-problem-when-a-cannot-move-state-applied.150128/