Hi. I'm trying to use this notetag with Yanfly's CTB plugin, but the debugger says target is not defined. Help...
target, enemy, b... It's not working. 5 is just a super slow action recovery time I'm using for test purposes.
And yes, I'm basically using luck along with agility and randomness to decide the delay that the action's user will receive (in a similar way to how Final Fantasy X ranks work, I mean, the action deciding the time it will take until the user's next turn instead of agility alone)
JavaScript:
<After CTB Eval>
var temp = ( Math.randomInt(400) - 100 + user.luk - target.luk ) / 3;
if (temp < -33) temp = -33;
if (temp == 0) temp = 1;
if (temp > 33) temp = 33;
var temp2 = 5 - 5 * user.agi / 600 - 5 * temp / 100;
var tempmin = 5 * 2 / 3;
var tempmax = 5 * 4 / 3;
if (temp2 < tempmin) temp2 = tempmin;
if (temp2 > tempmax) temp2 = tempmax;
speed = - (temp2);
</After CTB Eval>
target, enemy, b... It's not working. 5 is just a super slow action recovery time I'm using for test purposes.
And yes, I'm basically using luck along with agility and randomness to decide the delay that the action's user will receive (in a similar way to how Final Fantasy X ranks work, I mean, the action deciding the time it will take until the user's next turn instead of agility alone)