Hi, I'm making a very weird move that under normal circumstances, gives all enemies Confuse and Silence (so "all enemies" scope, and in the effects box it adds confuse and silence 100%), and gives the user state 54. However, if actor 3 is in the battle, the user instead gets state 55, and actor 3 gets state 13.
I know that this formula would involve like an if statement with a.add_state(54) and a.add_state(55), but I don't know where to go from there.
What if actor 3 isn't an active party member participating in the battle? It should only recognize him as "in the party" if he is participating in the battle, even if he is part of the party. Wouldn't a conditional branch not be able to check that when doing "if Actor is in party"? Or am I wrong about that? On the overworld at least, when there are more than 4 party members and there are non-active ones, conditional branches checking for actors being in the party come up with them being in the party even if they're not active.
Then I think the check would be
if $game_party.battle_members.include?($game_actor[3])
It worked! I tested with actor 3 in the party, without actor 3 in the party, and actor 3 in the party but not in battle, and it worked as intended. Thank you!