Hello all,
I'm trying to store the party members ID if they are affected by a certain state but for whatever reason, this common event script is not working. This common event is called right after a battle is over. Did I miss something here?
var gameVars = 129;
for(var i = 0; $gameParty.members().length < i; i++)
{
If($gameParty.members().isStateAffected(63))
{
$gameVariables.setValue(gameVars,$gameParty.members().actorId());
}
gameVars++;
}
I'm trying to store the party members ID if they are affected by a certain state but for whatever reason, this common event script is not working. This common event is called right after a battle is over. Did I miss something here?
var gameVars = 129;
for(var i = 0; $gameParty.members().length < i; i++)
{
If($gameParty.members().isStateAffected(63))
{
$gameVariables.setValue(gameVars,$gameParty.members().actorId());
}
gameVars++;
}