MZ Pasive states condition

Hi everyone.

I'm using the SkillsStateCore plugin from visustella for rpg maker mz, and I'm unable to make a passive skill of some kind. I'd like to set a condition that the passive skill is activated when the user has, for example, 20% health. I know it can be done but I'm unable to figure out how, even after reading the manual. Can anyone help me?
Need to post the link to the plugin and show use screen shots of your set up.

Can't see what the issue is if we can't see it.
I've already said what the add-on is. The only thing I've found in the manual about the conditions for activating passive skills is the image attached.

Captura2.PNG
I've already said what the add-on is
You said it, but the rules require you to link to the website of the plugin to easier check it for those who want to help you.

and we need to see what you have tried to do (your state screenshot), not a copy of the instructions what you have to do to get it to work correctly.
A link:
I would guess something like this:

<JS Passive Condition> condition = user.hpRate() <= 0.2; // true iff HP is at 20% or less </JS Passive Condition>
Avoid putting any traits affecting max HP on this passive state, otherwise that could trigger an infinite loop...or, more likely, VisuStella's safety checks.
I've already said what the add-on is. The only thing I've found in the manual about the conditions for activating passive skills is the image attached.

2 things.
As stated, it's forum rules.
also, people ain't going to go searching the internet for the plugin and are more likely to help you if you link the plugin themselves so they can see if there is any documentation, or anything on the plugin page that may help you.

And if you do have a problem, show us the set up, like screen shots of your note boxes, or the code itself, etc.
As with most code it simply could be a error in wording.

this way, more people are able to help you.

I hope Caethyril has solved your problem though.
A link:
I would guess something like this:

<JS Passive Condition>
condition = user.hpRate() <= 0.2; // true iff HP is at 20% or less
</JS Passive Condition>

Avoid putting any traits affecting max HP on this passive state, otherwise that could trigger an infinite loop...or, more likely, VisuStella's safety checks.
This works exactly as I wanted, thank you very much!
The only thing is that I'm having trouble putting it in reverse. That is, setting the condition to be, for example, having 80% health or more activates the state.
The only thing is that I'm having trouble putting it in reverse. That is, setting the condition to be, for example, having 80% health or more activates the state.
You can swap the <= (less than or equal) for a >= (greater than or equal), i.e.

<JS Passive Condition> condition = user.hpRate() >= 0.8; // true iff HP is at 80% or more </JS Passive Condition>

Original thread: https://forums.rpgmakerweb.com/threads/pasive-states-condition.172543/