MV YEP Auto Passive States

Alright, I feel really dumb having to ask about this, but HOW do the conditions in this plugin work??? I am trying to inflict a state on an actor when they equip a certain accessory. The state goes on just fine, but I can't get it to turn off. The accessory itself drains the users MP by 10% every round and inflicts the state, which gives them a buff. I want the state to go away when their MP drops below 10%, so they can't keep the buff without paying the cost.

I am pretty sure that the tag I need is <Passive Condition: MP Above 10%> and the tag I'm using for the accessory is <Passive State: 11>

Do I put both the tags on the accessory like this:

<Passive Condition: MP Above 10%>
<Passive State: 11>

Should I reverse them? Do I put the Passive Condition tag in the notes for the passive itself?

Please help me!


P.S. I have tried everything that I have suggested in this post. I don't know how to make the tags "reference" each other, if that makes sense. It seems to me like the condition and the state ought to be in the same set of <>.
If you look at that section of the instructions with the conditions, the first line specifies they are State Notetags. 😉

You could have a certain passive state coming from different places (a piece of equipment, a class, knowing a skill), and one thing can grant multiple passive states, so it wouldn't really make sense to put the condition on the thing that's granting the state.

So yes, you'd put <Passive Condition: MP Above 10%> in the note box of the passive state and it should do exactly what you want.
Thank you, that worked!
Okay, another question about this supremely (most of the time) useful plugin. I am trying to make it possible for the player to "store" MP inside of gems. I have made a "Sapphire" item and a "Sapphire (full)" item. In the notes for "Sapphire" I put

<Passive State: 47>

State 47 is just a dummy check state with this in the notes:

<Passive Condition: MP Above 24>

So, at least in my mind, if I have "Sapphire" in the inventory, it should be trying to apply State 47, and State 47 should always be there if I have at least 25 MP. I made "Sapphire" a consumable item which, when used, will run Common Event 1, as shown here:

If: Main is affected by State 47
Change MP: Main, - 25
Change Items: Sapphire (full) +1

Else
Text: None, Window, Bottom
You do not have enough MP to fill this gem!
Requires 25 MP
Change Items: Sapphire +1

End


The problem is that even though my MP is full, I'm getting the "else" option out of Common Event 1, indicating that State 47 is not applied to me. Shouldn't it always be there if I have more than 24 MP? I have 10 Sapphires in the inventory, so it's not vanishing due to lack of items.
Screenshot 2023-07-11 162648.png
<Passive State> is not an Item notetag. How would it know who to apply the state to just by having an item in your inventory? Everyone in the party?

You could put the passive state directly onto all of your actors, then do:
Code:
<Custom Passive Condition>
condition = user.mp>=25 && $gameParty.hasItem($dataItems[ID]);
</Custom Passive Condition>
where ID is the item ID of your Sapphire.
Thank you again!!!! I swear I've read the setup file for this plugin like six times, and there's always something I miss.

Original thread: https://forums.rpgmakerweb.com/threads/yep-auto-passive-states.159157/