Progressive State (Help)

So I have Visustella MZ Skills and States Core and I would like to implement a Sanity system but I have an issue. The states that represent the stages of Sanity don't work as intented. SO here is how it should have been:

There are 4 Passive state A, Passive State B, Passive State C and Passive State D.
When The player's MP is About 80 to 100 he gets Passive state A that replace B, C and D.
When his MP gets from 50 to 79 he gets Passive state B that replace the Passive State A, C and D.
When his MP gets from 20 to 49 he gets Passive state C that replace the Passive State A, B and D.
When his MP gets from 1 to 19 he gets Passive state D that replace the Passive State A, B and C.
And if the player's MP gets to 0 it activates a common event.

The problem is the state don't get replace by one another when their condition is Active, they just all apply. I tried everything but nothing works. I need your help please.

Here is how the code for Passive state D:

<JS Passive Condition>

condition = user.mp >= 20;

</JS Passive Condition>



<Category: Sanity>

<Remove Other Sanity States>
why not have each state's condition be the range of values?
user.mp <20
user.mp >= 20 && user.mp < 50
user.mp >= 50 && user.mp < 80
user.mp >= 80
Thanks a lot, Robro33 it worked!!!! Now I have to find a way to make a Common Event play when the Player's MP Reaches 0
Ok I actually managed to do it it was hard but I did it. Thanks for your help Robro33 and also estriole from a totally different thread. He indirectly gave me a solution to the Common event problem. I can consider this issue solved. I hope it would help enyone else who will face the same issue.

Original thread: https://forums.rpgmakerweb.com/threads/progressive-state-help.167897/