RPG Maker Forums

I created this small script to run at the start of each battle to randomize what row(yanfly row_formations) the battler will be in depending on the class but the isClass function is throwing me a null error. I'm not really sure what the issue is. I was wondering if someone could help me understand the isClass function and the $dataClasses var.

Thanks in advance!
for (var i = 1; i < $gameParty.battleMembers().length; i++) {

var actor = $gameActors.actor(this._params);

var n = this._params[3];

if(actor.isClass($dataClasses[11])) {

var rndRow = Math.randomInt(4)+3;

actor.setRow(rndRow); }

}

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top