Yanfly's Row Formation Question

I am currenlty using Yanfly's row formation, but I have simplified it into 2 rows, a front and a back, much like the usual final fantasy games. The state I have for the back row is -50% attack for +20% defense. My question is, if I wanted to have a character that could be in the back row without suffering that 50% attack penalty but still gaining the 20% defense, how would I go about doing that without giving the character in question the 20% defense in the front row as well?
make the auto states for the back row into two states and make the Actor have a 100% resist to the state that gives Attack down?
make the auto states for the back row into two states and make the Actor have a 100% resist to the state that gives Attack down?

I'll give that a try, thanks!
I'll give that a try, thanks!

Gave it a shot, doesn't appear to be working :S
I don't currently have access to my RPG Maker so I can't unfortunately test this, but if you split the attack penalty and the defense boost to different states, you could try adding a custom row condition to the attack penalty state:


<Custom Row Condition>
if ($gameActors.actorId() === X) {
condition = false;
} else {
condition = true;
}
</Custom Row Condition>


Replace X with the ID of the actor whom you want to avoid the attack penalty.
I don't currently have access to my RPG Maker so I can't unfortunately test this, but if you split the attack penalty and the defense boost to different states, you could try adding a custom row condition to the attack penalty state:



<Custom Row Condition>
if ($gameActors.actorId() === X) {
condition = false;
} else {
condition = true;
}
</Custom Row Condition>


Replace X with the ID of the actor whom you want to avoid the attack penalty.

I see what you're saying. I gave it a shot, but I got an error saying undefined is not a function, wh


rpg_managers.js:1722 TypeError: undefined is not a function
    at Game_Actor.eval (eval at <anonymous> (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_RowFormation.js:1119:15), <anonymous>:1:17)
    at Game_Actor.Game_BattlerBase.rowStateConditionEval (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_RowFormation.js:1119:5)
    at Game_Actor.Game_BattlerBase.meetRowStateCondition (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_RowFormation.js:1108:17)
    at Game_Actor.Game_BattlerBase.getRowStateData (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_RowFormation.js:1096:17)
    at Game_Actor.Game_BattlerBase.rowStatesRaw (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_RowFormation.js:1086:22)
    at Game_Actor.Game_BattlerBase.addRowStates (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_RowFormation.js:1066:23)
    at Game_Actor.Game_BattlerBase.states (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_RowFormation.js:1052:12)
    at Game_Actor.Game_BattlerBase.states (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_AbsorptionBarrier.js:694:52)
    at Game_Actor.Game_BattlerBase.states (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_AutoPassiveStates.js:279:52)
    at Game_Party.Game_Unit.processStateEval (file:///C:/Users/Perry/Documents/SteelStained/js/plugins/YEP_BuffsStatesCore.js:1262:28)


I'm fairly new to javascrip myself, but if I had to take a shot in the dark, I'd guess the if first line that's the equation for game actors isn't right? I'll go look around at some javascripts to see if I can't find a similar condition-- but I understand what you meant totally, thank you so very much! Should definitely work!
I gave it a try-- just had to delete the 'ID' from gameActors.actorID, and it seemed to load but unfortunately he's still getting the damage penalty... Which doesn't make any sense to me.
 


<Custom Row Condition>

if ($gameActors.actor() === 5) {

condition = false;

} else {

condition = true;

}

</Custom Row Condition>


Is what I used.
I finally had time to play with the Row Formation plugin and almost immediately realised that it doesn't probably make any sense to use $gameActors in this context. Sorry. >_>' The following notetag seemed to work at least for me, so try putting it into the state which gives the attack penalty:


<Custom Row Condition>
if (user.actorId() != X) {
condition = true;
} else {
condition = false;
}
</Custom Row Condition>


Once again, X is the ID of the actor who shouldn't get the penalty.
I finally had time to play with the Row Formation plugin and almost immediately realised that it doesn't probably make any sense to use $gameActors in this context. Sorry. >_>' The following notetag seemed to work at least for me, so try putting it into the state which gives the attack penalty:



<Custom Row Condition>
if (user.actorId() != X) {
condition = true;
} else {
condition = false;
}
</Custom Row Condition>


Once again, X is the ID of the actor who shouldn't get the penalty.

You my friend, are the best. Bless you, and thank you so much. Worked like a charm! ^_^ Words cannot express my gratitude.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-row-formation-question.60745/