Hello, i have an error and i dont know why.
im using Yanfly Buffs & States Core Plugin to recreate a simpler version of the paralysis effect from their page that looks something like this:
but it crashes my game right at the enemy's turn.
After many tests, i found that THIS line is the one that breaks the game:
I tried to replace that line with another call to force the user to use a "End Turn" Skill but that also didnt work:
Code:
Im not using Battle Engine Core plugin but i dont think that would affect this code
im using Yanfly Buffs & States Core Plugin to recreate a simpler version of the paralysis effect from their page that looks something like this:
Code:
<Custom Action Start Effect>
var paralyzeRate = 0.25;
if (Math.random() < paralyzeRate) {
user.startAnimation(64);
user.clearActions();
var logWindow = SceneManager._scene._logWindow;
if (state.message3) {
var msg = '<CENTER>' + user.name() + state.message3;
logWindow.addText(msg);
}
BattleManager.actionWaitForAnimation();
logWindow.push('clear');
}
</Custom Action Start Effect>
but it crashes my game right at the enemy's turn.
After many tests, i found that THIS line is the one that breaks the game:
Code:
user.clearActions();
I tried to replace that line with another call to force the user to use a "End Turn" Skill but that also didnt work:
Code:
Code:
BattleManager.queueForceAction(user, 8, -1);
Im not using Battle Engine Core plugin but i dont think that would affect this code