I would need a script call to add a state to all members of a party or troop.
Please let me now list the things I have tried and which have failed:
$gameTroop.members()[].addState(x);
$gameTroop.members()[n].addState(x);
$gameTroop.members()[-1].addState(x);
for (var n = 1; n <= $gameTroop.members().length; n++) {
var nme = $gameTroop.members()[n];
nme.addState(x)
}
I know it's a basic RPG maker function but for some reasons I'd need to put it in a script.
Does anyone have an idea how to do this?
Please let me now list the things I have tried and which have failed:
$gameTroop.members()[].addState(x);
$gameTroop.members()[n].addState(x);
$gameTroop.members()[-1].addState(x);
for (var n = 1; n <= $gameTroop.members().length; n++) {
var nme = $gameTroop.members()[n];
nme.addState(x)
}
I know it's a basic RPG maker function but for some reasons I'd need to put it in a script.
Does anyone have an idea how to do this?