I'm trying to make the game keep track of the job points (I use Yanfly's job points script) of each member of my party and set up a condition that when they have a JP greater than or equal to 500 the switch turns on, but if they don't, the switch turns off. I've been trying this script call,
if ($gameParty.members()[0,1,2,3,4,5].jp >= 500) {$gameSwitches.value(1) === true} else {$gameSwitches.value(1) === false}
and the game doesn't detect any errors and I can test play just fine, but the switch isn't turning on when the members have 500 JP, so I'm thinking my switch command is wrong. I know it's not that the game can't recognize job points because I've been able to add and subtract JP from my party many times, it's just that the switch I have set to turn on with that condition will not turn on. So could anyone tell me where I might be going wrong with my script call?