Hi there. I couldn't figure this out after a few days of research and trial and error, so I decided to bite the bullet and just ask.
I've been fiddling with the Auto Passive States (YEP) plugin, trying to see if I could somehow set it up to apply passive states to an actor when they are in a specific party position. Basically if an actor is in position 0, they get passive state A, but if they are in position 1, they get passive state B, etc.
Unfortunately, I can't quite seem to figure out a way to set it up so that only the actor that actually triggers a custom condition gets the state. As long as the condition is fulfilled, the state applies to every potential target instead. So if I set a state to trigger if an actor is in position 0, all potential actors get passive state A regardless of where they are.
I did come up with a work-around, but it's kind of cumbersome. If I allocate a passive state to only to a specific actor, and give it the following condition:
This lets me apply a specific passive state to actor (X) only if they are in a specific party position (Y). This does do what I want, but it would require me to make separate duplicate states for every actor in every position to actually implement. Not ideal.
Is there a better way to do this that I haven't figured out? It seems like there has to be, but my actual coding/Javascript ability is basically just amateur tinkering level, so I could be mistaken.
I've been fiddling with the Auto Passive States (YEP) plugin, trying to see if I could somehow set it up to apply passive states to an actor when they are in a specific party position. Basically if an actor is in position 0, they get passive state A, but if they are in position 1, they get passive state B, etc.
Unfortunately, I can't quite seem to figure out a way to set it up so that only the actor that actually triggers a custom condition gets the state. As long as the condition is fulfilled, the state applies to every potential target instead. So if I set a state to trigger if an actor is in position 0, all potential actors get passive state A regardless of where they are.
I did come up with a work-around, but it's kind of cumbersome. If I allocate a passive state to only to a specific actor, and give it the following condition:
Code:
<Custom Passive Condition>
if ($gameParty.members().indexOf($gameActors.actor(X)) == Y) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
This lets me apply a specific passive state to actor (X) only if they are in a specific party position (Y). This does do what I want, but it would require me to make separate duplicate states for every actor in every position to actually implement. Not ideal.
Is there a better way to do this that I haven't figured out? It seems like there has to be, but my actual coding/Javascript ability is basically just amateur tinkering level, so I could be mistaken.