Yanfly Passive State only in battle?

Regarding the Auto Passive States plugin from Yanfly; how can I make states apply only in battle (like a HP/MP regen that doesn't restore HP/MP by walking around the map).


I'm sure it's a simple javascript line or two, but it's not my forte...


Thanks in advance!
I use this:






You can use the Initial Battle State notetag to only appear when a battle starts. 
make two states 1 and 2.


1 is passive but does not have any effect.


like Uzuki is saying, use <Custom Battle Effect> tag in the passive state to add state 2.


State2 has all the effect you want, and it only adds to the actor at the beginning of battle.
Thanks Uzuki & doranikofu! 😀


I wanted to have purely Yanfly-created plugins, but this one seems pretty good too!  And it covers other things I could want too!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-passive-state-only-in-battle.67281/