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:
Code for the Back row's buff to check if it's affected by either the Front row or Middle row's aura:
Code for the Back row's buff to check if it's affected by both the Front row and Middle row's aura:
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.
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.