- Joined
- Jun 3, 2016
- Messages
- 45
- Reaction score
- 5
- First Language
- English
- Primarily Uses
- N/A
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); }
}
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); }
}

