RPG Maker Forums

Hi. I'm trying to use this notetag with Yanfly's CTB plugin, but the debugger says target is not defined. Help...

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)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top