Grant character stat increase based on characters in battle party.

I'm trying to make a passive state
That checks if certain characters are in the battle party, and if so, each one adds 5% to a specific character's stats.

So if 2 specific characters are in the battle party, he gains a 10% buff to all stats. 5 characters would give him 25%.

The problem is, I know I can use yanfly's base parameters plugin, but I do not know which tags to use to make the lunatic mode code work.

I can easily do this for one state, but The battle system I use begins to lag if a character has too many passives.
I have over 20 characters in my game, so giving this character many, many passives, is not an option.

Original thread: https://forums.rpgmakerweb.com/threads/grant-character-stat-increase-based-on-characters-in-battle-party.90650/