MV YEP_autopassivestates help

Trying to get a stack of passives for the player via Variables or switches, but it never shows up ah. So unsure of what I am doing wrong. I am using just a control variable also to increase the variable to the desired number too. As ideally I would like to control these varables natrually and possibly make them stick via events but unsure how to do that.


Actor des


<Passive Condition: Variable 169 Above 2>

<Passive State: 10>


At present I am controlling a passive via equipment, but ideally want to get it running via viarbles to stack it up a diffrent way.

1767590050427.png
Its not clear exactly what you did. This is where sharing screenshots of how youve set things up has an advantage over explaining what you did.
Actor des


<Passive Condition: Variable 169 Above 2>

<Passive State: 10>
The description is not where notetags go, and if you meant the notebox, only one of those tags function in an actor's notebox. The other would go in to the state's notebox
I placed the variable into the state but nothing ended up happening, but when i placed the passive state into the actor notebox it auctomically happened...
I placed the variable into the state but nothing ended up happening, but when i placed the passive state into the actor notebox it auctomically happened...
Yes. Its described in the help doc for the plugin. You use the passive state notetags to give battlers/gear/skills passives and then you use passive condition notetags on the states to restrict when theyre active.

only one of those tags function in an actor's notebox. The other would go in to the state's notebox
Yes. Its described in the help doc for the plugin. You use the passive state notetags to give battlers/gear/skills passives and then you use passive condition notetags on the states to restrict when theyre active.
Oh right

I feel like I'm missing some code though, when I looked through the help document it didn't help too much.

As I only have just this line of code in the state itself

<Passive Condition: Variable 169 Above 2>, so I definitely feel like I'm missing a lot of code as it never triggers right. But in the actor notes it triggers instantly but shouldn't... If that makes sense

As the state should be checking if the variable conditions are met first, then the actors passive state should be active and live.


Should it look like this instead?

But replacing the if statement with

<Custom Passive Condition>
if Variable 169 above > 2) {
condition = true;
} else {
condition= false;
}
</Custom Passive Condition>

And switches is just this right

<Passive Condition: Switch x ON> and nothing else ? It should just work straight away (can't add a greater then, equal too or less than on mobile for the above example)
<Passive Condition: Variable 169 Above 2>, so I definitely feel like I'm missing a lot of code as it never triggers right. But in the actor notes it triggers instantly but shouldn't... If that makes sense
You need to clarify what you mean by that. I get that you have the passive condition in the state notebox and the passive state tag in the actor's notebox (I think? you hadn't shown screenshots of it to be certain), but I am not sure what you mean exactly by the state (?) triggering right or instantly triggering. Being active?

As the state should be checking if the variable conditions are met first, then the actors passive state should be active and live.
So to be sure, it is not the case that the state is active when the value of variable # 169 is at 3 or greater? have you confirmed the value of the variable, and is it that the state is never active, or is it always active?

Should it look like this instead?

But replacing the if statement with
you can change the condition into a custom passive condition and control it with JS, but it'll be equivalent to what you've already tried. if you have an issue with the built in notetag, I doubt the JS notetag will function any differently.

Code:
<Custom Passive Condition>
condition = $gameVariables.value(169) > 2;
</Custom Passive Condition>


<Passive Condition: Switch x ON> and nothing else ? It should just work straight away (can't add a greater then, equal too or less than on mobile for the above example)
Switches only have two values. They're only either on or off. There's no need to make numerical comparisons with them.
to keep in mind, if you want the variable > 2, it is 3 or greater.
if you want it be 2 or more, it should be >= 2 equal or greater than 2.

it depends what you see, > 2 is also equal as >= 3 with same result.
it's what you want for your mechanic.

I mostly go >= so I can set the minimum to be true, but its different for
everyone 🙂
to keep in mind, if you want the variable > 2, it is 3 or greater.
if you want it be 2 or more, it should be >= 2 equal or greater than 2.

it depends what you see, > 2 is also equal as >= 3 with same result.
it's what you want for your mechanic.

I mostly go >= so I can set the minimum to be true, but its different for
everyone 🙂
That kinda makes sense but replying on mobile I can't do the greater than or equal too ah, but it's two at present it's += 2 for the variable check
You need to clarify what you mean by that. I get that you have the passive condition in the state notebox and the passive state tag in the actor's notebox (I think? you hadn't shown screenshots of it to be certain), but I am not sure what you mean exactly by the state (?) triggering right or instantly triggering. Being active?

Sure as per the sc : having the passive condition needing to be meet isn't working through variable still.

Alternatively, I can do it by amours, but I'd rather not go about it that way; however, it can work in the meantime...


So to be sure, it is not the case that the state is active when the value of variable # 169 is at 3 or greater? have you confirmed the value of the variable, and is it that the state is never active, or is it always active?


1767958052827.png



you can change the condition into a custom passive condition and control it with JS, but it'll be equivalent to what you've already tried. if you have an issue with the built in notetag, I doubt the JS notetag will function any differently.

Code:
<Custom Passive Condition>
condition = $gameVariables.value(169) > 2;
</Custom Passive Condition>
actor has this in notebox :

<Passive State: 21>
Removing the condition on the state makes it trigger instantly with no issues. Though it's something I don't want live.



I also used this to test out variables:

<Custom Passive Condition>

condition = $gameVariables.value(169) > 1;

</Custom Passive Condition> but again the state isn't showing up...


1767958421699.png







state is there with passive condtion with control varible being test state +=2


Switches only have two values. They're only either on or off. There's no need to make numerical comparisons with them.



<Passive Condition: Switch 225 ON> tried this also but nothing occured at all..
Removing the condition on the state makes it trigger instantly with no issues. Though it's something I don't want live.

I also used this to test out variables:

<Custom Passive Condition>

condition = $gameVariables.value(169) > 1;

</Custom Passive Condition> but again the state isn't showing up...
youre still missing a step

So to be sure, it is not the case that the state is active when the value of variable # 169 is at 3 or greater? have you confirmed the value of the variable?
if the state is active when its unconditional and then isnt when its given a condition, then your condition is false. have you checked its value ingame when youre testing for your state to make sure it isnt being changed somewhere else like an event or plugin?
youre still missing a step
Oh what step am I still missing then ahh
if the state is active when its unconditional and then isnt when its given a condition, then your condition is false. have you checked its value ingame when youre testing for your state to make sure it isnt being changed somewhere else like an event or plugin?


For the value I have an event that makes the variable go up to 2 ...but that's it, same for when I tested a switch version to be on but it didn't trigger the state..

As it was a basic switch to be on, and put in the notes to check for the switch to be on.
Oh what step am I still missing then ahh
The step I was referring to was the question that was left unanswered.

I saw in your event screenshot in the first post that you're incrementing the variable by 2, but what I asked for was confirmation that the value is still 2 (or more) afterwards. As already said, it's possible that the value of that variable could have changed by some other event or plugin after you've increased it, so I wanted to be sure that it's still a number greater or equal to 2 by the time you're ready to use it for the passive.

Also, provide a screenshot(s) of your plugin manager so that I can see your plugin load order. It's possible that its not correct.
Plugin manager loadout is the following for YEP-related things
The event to add the variable is attached also

<Passive Condition: Variable 169 Above 1>


nothing else event-wise or plugin command is being used to modify the variable count except the one event., and still not showing up.. No error messages are being displayed either, so no clashes there...


1768197369746.png
1768197400581.png
your yanfly plugins arent in the correct order. theyre known to produce all kinds of bugs when not organized correctly. rearrange them into the same order they appear in on yanfly's website, save your project, and test again
Does it have to be a perfect order ? as this is fixed up assuming yes ? I rerannged the plugins from scratch but nothing...just had isssues witth the tileset instead...

1768202288618.png


1768200618952.png
Does it have to be a perfect order
rearrange them into the same order they appear in on yanfly's website.

as this is fixed up assuming yes?
no. i havent looked at your complete order, but i know offhand that class change and subclass are two of the first plugins to be loaded, and auto passive states is one of the last ones relative to your list.
rearrange them into the same order they appear in on yanfly's website.


no. i havent looked at your complete order, but i know offhand that class change and subclass are two of the first plugins to be loaded, and auto passiv
1768202384575.png
e states is one of the last ones relative to your list.
1768202411443.png

1768202450982.png

Rest are ocram plugins in order

Adjusted again for missing plugins on current project but yeah issue still persits, but makes me wonder if I just removed it but I doubt it at this point. As I copied and pasted the plugin from the current project into my test project (same project just used for testing plugins out)

I guess worst case things will run better now, will test with a blank project too
View attachment 357457
View attachment 357458
Rest are ocram plugins in order

Adjusted again for missing plugins on current project but yeah issue still persits, but makes me wonder if I just removed it but I doubt it at this point. As I copied and pasted the plugin from the current project into my test project (same project just used for testing plugins out)

I guess worst case things will run better now, will test with a blank project too
I even used the test project but still no results at all..I am lost now

Just super basic plugins being used...turning oc ram on and off makes 0 diffrence naturally...


1768209578253.png
I even used the test project but still no results at all..I am lost now
start from the beginning. in your test project, remove every plugin, only keep the passive plugin, save the project, and test. if it doesnt work, at that point, show a screenshot of your actor's database entry, the state, and the parameters for the passive plugin

also, if you havent been doing your tests on new save files, you should have. i hadnt mentioned that before
start from the beginning. in your test project, remove every plugin, only keep the passive plugin, save the project, and test. if it doesnt work, at that point, show a screenshot of your actor's database entry, the state, and the parameters for the passive plugin

also, if you havent been doing your tests on new save files, you should have. i hadnt mentioned that before
Oh yeah I'll do that tomorrow/the day after but I've always known for years, always do a new save to test setting changes via new game

Original thread: https://forums.rpgmakerweb.com/threads/yep_autopassivestates-help.181780/