Passive ability

Hello everyone,
I was wondering if, using Yanfly's Row Formation plugin, there's a way to make this passive skill: When the character is on the second row, he receives a magic attack and defence buff. I hope someone can help me 🙂
Create a state with traits for the atk and def buffs, then in the plugin parameters add that state's ID to the "row 2 states" parameter.
Alternatively, if you want this to apply to only a specific character instead of everyone, make it a passive state with a custom passive condition like this:
Code:
if (a.row() == numberOfTheRowYouWant) {
  condition = true;
} else {
  condition = false;
}
Or any similar math formula you want, like a.row() > 3, or < 2, etc.

(I forget if the front is row 1 or row 0, so you should test that to make sure.)
Alternatively, if you want this to apply to only a specific character instead of everyone, make it a passive state with a custom passive condition like this:
Code:
if (a.row() == numberOfTheRowYouWant) {
  condition = true;
} else {
  condition = false;
}
Or any similar math formula you want, like a.row() > 3, or < 2, etc.

(I forget if the front is row 1 or row 0, so you should test that to make sure.)

I'd use a <Custom Row Condition> for that and check for the user's ID, but yeah, same principle.
Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/passive-ability.124100/