Auto Passive State being applied when it shouldn't

Class: White Mage only class with Skill Type: White Magic
Skill: Auto-Regen Type: White Magic <passive state: 47>
state 47: regen

for some reason everyone that knows this skill is getting the passive state even when they r not on whitemage
i cant figure out any way to turn that off aside from troop common event doin bunch of
if actor class x; if actor know skill y;
but doin that makes it not apply to my cross class skill equip mechanic.


anyone know another way around this or am i gonna have to drop the whole "cross class can equip 2 class passive states" thing?
Please link to the Plugin that you're using to create autopassive states.
There are several different Plugins that do this, and they work differently.

Additionally, if you're using yanfly's plugins (especially the class change plugin), please post a screenshot of your plugin manager so that we can check the plugin order.
yanfly's class core, auto passive state, equip skill, skill types allow, skill tiers
Untitled.png
The reason it's applied to everyone even when they don't have it equipped is because of the way autopassive works. Once you learn the skill it is always available as long as the conditions are met.
I assume you are just trying to have an autoregen as long as the skill is equipped? If this is the case there is no need for autopassives.
Just make your autoregen skill and toss this in the notebox:
<Equip State: x> where x is your autoregen state.

The entire point of autopassives is so that it is applied automatically without any input. What you want is a passive state that can be equipped.
my equip skills mechanic is kinda different.
each class is able to use all its class skills + techs.
all classes can equip 1 guard type, 4 actions, 2 passive.
passive still needs to apply to white mage always but all other classes need to equip it
but ill see if note tag works with what i have (don't remember seeing that 1 but got all yanfly plugs)
and if it does ill do that big base troop event string to check all actors class/skill to add state to class
In that case what I would recommend is for the passives that are supposed to be auto applied to the class set up as autopassive states on that class notebox. So on whitemage you would have <Passive State: x> which would always be active on whitemage. Then other classes would still have to learn it and then equip it to gain it's effect.
thats what i have, but u have to learn it on white mage in order to unlock the equipable state.
but learning the skill is making it active after change class to something other then WHM b4 u even equip it


the <Equip State: x> + base troop event is working in battle test for every troop.
but the event doesnt run in play test even when fight the troop its built into

PS. full version of the base troop event would be huge. checking all 4 actors for X class Y skill
right now that 4x17 with more classes planed.
im no good with lunatic note tags. is there a
?
$gamedata whatever
check if actor is class x
if true add passive state y
?
<Equip State: y>

that i can add to skill note tag ?or a new state?
so it both passive for WHM and Equip passive for all other classes

where would i post for lunatic script help?
general game design?
EDIT: OK so I just tested what I suggested and it works perfectly.
Create a skill for Auto Regen and put <Equip State: x> in the notebox.
Whitemage gets <Passive State: x> in the class notebox.

Whitemage now has native auto regen. The skill Auto Regen can be learned from whitemage and equipped on any other class. Other classes do not get native Auto regen.

You can not make the skill give an auto passive or the actor will always have it available. The skill should be default except for the notebox.
i dont want white mage to have the auto regen until they learn it though

i found what i need. i just dont know the how to
State Note Tag
<Custom Battle Effect>
code
code
</Custom Battle Effect>

whats the lunatic code for "if actor is class x add state y"
yanfly's buff/state core + auto passive states
$game_actors[X].class.id
i found this. if this is in the auto <Passive State: Z>
how do i make it do a.addState(Y)

i dont know a lick about how to setup $game data things
Ah I misunderstood. Unfortunately I am not very proficient with js so this is probably the furthest I can help you.
its a new day lets reword the current issue
yanflys class change core + auto passive states + Learned skills
i have all yanfly plugins in order displayed on his site

i need <Passive State: 97>(Auto-Regen WHM) script call check Class 14(White Mage) addState: 98(Passive Regen)

without a script call the state is staying on after they change class
i need it so the (98)Passive Regen only get added if they are currently on class (14)White Mage

(until they Learn how to <Equip State:> passive tier skills from other classes)
+ Equip Skills/Allow Skill Types/skill tiers
the equip skills is merely a side mechanic outside of the normal class system

Original thread: https://forums.rpgmakerweb.com/threads/auto-passive-state-being-applied-when-it-shouldnt.88293/