MV [YEP] Row Formation and How to Check if Battler is on a Specific Row

As title says.

I'm planning to have skills and passive states in my game tied to be usable/active based on what row they are currently in. My problem is that I don't know how to set the condition for that in Lunatic Mode. The Script Calls provided in Row Formation does not appear to work in <Custom Passive Condition> (when I was focusing on states), and looking at the code itself got me equally confused.

I'd appreciate if this can be made possible: Row formation is a great part in my battle system, making players fight and manage the buffs and debuffs from specific rows, and effects from enemies that would relocate them in that formation.

TIA.
If you want everyone (including enemies) to have a state while in a row, you can just use the plugin manager. YEP_RowFormation has parameter settings for each row number, including one for listing states to be applied to battlers in the row.

If you need only actors, or specific actors to have a state while in a row, first add a notetag to each actor listing all the states they might potentially have. Example: <Passive State: 13, 14, 15>
Next add notetags to each state specifying which row an actor must be in for the state to be active. Example:
<Custom Passive Condition>
if (user.row() == 1) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
I cannot use the plugin manager for this as; 1) I want it to be that is attached to the class/enemy; and 2) because it's attached to the class instead, having that battler moved from the row they need to be causes it to be disabled.
<Custom Passive Condition>
if (user.row() == 1) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
I tried this, and this works for me, so I am grateful for it!

Original thread: https://forums.rpgmakerweb.com/threads/yep-row-formation-and-how-to-check-if-battler-is-on-a-specific-row.144556/