[Yanfly] Auto passive States - Random State

Hi guy,

Can you help me please ?

I have a system of fear with the TP bar and I want to do this :

- If the battler has his TP between 50 and 90 % : He obtain a random state. 🤘

With these Yanfly plugins : auto-passive state and passive cases, I think there is a solution in Lunatic Mode, but my level is too bad 🤔

This code work to add one state :

Spoiler: NoteTag
<Passive Condition Cases>

TP% >= 50
TP% <= 90

</Passive Condition Cases>

Someone have an idea ?

Thanks

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-auto-passive-states-random-state.90793/