- Joined
- Nov 3, 2017
- Messages
- 114
- Reaction score
- 14
- First Language
- English
- Primarily Uses
- RMMV
I can't seem to get either of those to work. I'm checking to see if Actor 1 is in position 0:
That's what I'm trying to use, but to no effect. This is putting a number into a variable via a troop event, and I haven't had any problems using expressions like "$gameParty.battleMembers()[0].def-10" in those events once I figured them out. But this one has me stumped.
Alternatively, I could work with finding out whether a battle member has a state. That might even be a better method, but I'm having a hard time getting that to work either. Darn battleMembers.
Code:
if ($gameParty.battleMembers()[0].actorId() == 1) {99}; else {5};
if ($gameActors.actor(1) == $gameParty.battleMembers()[0]) {99}; else {5};
Alternatively, I could work with finding out whether a battle member has a state. That might even be a better method, but I'm having a hard time getting that to work either. Darn battleMembers.

