MV YEP Row Formation and Row-based States

Hey y'all. It's me again, back at it with another problem.

What I wanted: A battlefield with 3 rows (Front, Middle, Back). Battlers in the Middle row gaining a state if an ally is in front of them (occupying the Front row). Battlers in the Back Row gaining a state when an ally is in front of them (occupying either Front or Middle row) and gaining another state if two allies in different rows are in front of them (one ally occupying the Front Row, one other ally occupying the Middle row).

What I tried to make this work: Using YEP's Row Formation, I assigned 3 rows per side of the battlefield (Front, Middle, Back). Battlers in the Front and Middle rows are given states that provide invisible auras (using YEP's Passive Aura Effects). Using the Row Formation plugin again, battlers in the Middle row are given a state with a <Custom Passive Condition> only if they are affected by the state from the Front row's aura. Battlers in the back row are given 2 states, one to check if the battler is affected by either aura, and another to check for both.

The issue: The Passive Condition are not registering, and is active regardless of what battler is in what row. I can make the entire party dynamically move to the Back row, and they'd still have both passive states for the Back row activated, even after letting turns pass by.

Code for the Middle row's buff to check if it's affected by the Front row's aura:
JavaScript:
<Custom Passive Condition>
condition=user.isStateAffected(342);
</Custom Passive Condition>

Code for the Back row's buff to check if it's affected by either the Front row or Middle row's aura:
JavaScript:
<Custom Passive Condition>
condition=user.isStateAffected(342) || user.isStateAffected(344);
</Custom Passive Condition>

Code for the Back row's buff to check if it's affected by both the Front row and Middle row's aura:
JavaScript:
<Custom Passive Condition>
condition=user.isStateAffected(342) && user.isStateAffected(344);
</Custom Passive Condition>

I guess I just need to know how to make these states work as intended. I tried putting the passive states on the Auto Passive States plugin's Global Passive parameter instead, but I got the opposite problem, and it's not activating at all.

I'd appreciate people's insight and assistance.

TIA,
Marx

PS: I dunno if this means anything, but I am using Olivia's OTB as my battle system.
I know you said you entered these states in the per-row parameter in the plugin, but I think you should simply add a check for the user's row.

Code:
condition=user.row()==2 && user.isStateAffected(342);
I know you said you entered these states in the per-row parameter in the plugin, but I think you should simply add a check for the user's row.

Code:
condition=user.row()==2 && user.isStateAffected(342);
I've tried this, but I got the same result. This is actually the first thing I tried before simplifying the code.
I've re-read your post, and I think the problem might be that you're putting these states into the rows plugin parameters. That's going to just directly apply the state when they're in the appropriate row, which I think bypasses all passive functionality - so they're active as long as they're on the actor, like all states.

Take the states out of the Row plugin parameters and just put them onto each actor with the regular <Passive State: X> notetag.
Take the states out of the Row plugin parameters and just put them onto each actor with the regular <Passive State: X> notetag.
So I did this, and I'm faced with a different issue: I assume that the state that the Passive Aura Effects notetags are treated as Passive States. As per the Auto Passive States plugin, a state that is treated as passive will not fulfill conditions that checks for certain state. As such, this cannot work as I hoped.

With this discussed and tested, I think a better way (or only way, really) of doing this is through the Buffs & States Core with the Custom Timing tags instead.
I think a better way (or only way, really) of doing this is through the Buffs & States Core with the Custom Timing tags instead.
Why not use the actual condition you describe in your premise? The whole checking for states is a workaround anyway - you want to be getting these states if there are actors in the other rows. So why not just check for that using the functions provided in the Row plugin?

Battlers in the Middle row gaining a state if an ally is in front of them (occupying the Front row).
Code:
<Custom Passive Condition>
condition=user.row()==2 && $gameParty.rowSize(1)>0;
</Custom Passive Condition>
Battlers in the Back Row gaining a state when an ally is in front of them (occupying either Front or Middle row)
Code:
<Custom Passive Condition>
condition=user.row()==3 && ($gameParty.rowSize(1)>0 || $gameParty.rowSize(2)>0);
</Custom Passive Condition>
and gaining another state if two allies in different rows are in front of them (one ally occupying the Front Row, one other ally occupying the Middle row).
Code:
<Custom Passive Condition>
condition=user.row()==3 && $gameParty.rowSize(1)>0 && $gameParty.rowSize(2)>0;
</Custom Passive Condition>
Why not use the actual condition you describe in your premise? The whole checking for states is a workaround anyway - you want to be getting these states if there are actors in the other rows. So why not just check for that using the functions provided in the Row plugin?
I have... not checked that prior to this thread. orz I was hyperfixated with this one method, I neglected other options.

It works now, thanks.

Original thread: https://forums.rpgmakerweb.com/threads/yep-row-formation-and-row-based-states.145586/