Leader Buff/Passive

Hello, i'm trying to do a little mechanic for my game, the Leader Buff/Passive.

Basically i have a pool of 20-30 playable characters and each have a special buff/passive that is set to the entire team when they got set as Leaders.

For example if Harold is set as Leader, he give a buff/passive +%20 def to the entire team, if i set Hayatemaru as leader, all the party get +20% atk, also Harold...ando so on, each actor will have its unique passive/buff.

How can i do that? I tried with parallel common event but is not working....do i need a script for this?
I'm not sure how you are setting who the leader is and if any of the buffs/passives do anything outside of battle, so I'm not exactly sure how to help, but here is an option.

Make all of your buffs/passives a state.

When you are setting who the leader is I would set a variable to represent who the leader is.  

All buffs/passives should be removed when changing leaders.

Check to see what the variable is and add the specific state that represents the buff/passive to every party member.
i've tried with a conditional branch using the script $gameParty.leader(); but i'm doing something wrong apparently
One way, is use http://yanfly.moe/2015/10/18/yep-15-base-troop-events/

and make this run at the start of every fight:

(See Pic)

May be another way, but this is the way I know.

Example2.png
One way, is use http://yanfly.moe/2015/10/18/yep-15-base-troop-events/

and make this run at the start of every fight:

(See Pic)

May be another way, but this is the way I know.
will try this thanks 🙂

Original thread: https://forums.rpgmakerweb.com/threads/leader-buff-passive.55023/