MV Enable/disable skills based on passive state?

I was wondering if there is a way or if there is a plugin that would allow me to have certain spells only accessible when you are under a specific state?

Basically, in my game, each element has a spell that increases their primary stat. For example, Wind Users have Agility, which doubles their agility. When under this state, they are able to use upgraded versions of their spells. Essentially, it should replace the current spell. But for the time being, if I can at least have spells only active when under this state and deactivate when it wears off... that would do.

Just having trouble finding something. Could be the way I am phrasing it in search haha.
Use a <Custom Show Eval> or <Custom Requirement> note tag with a conditional checking whether the user has X passive state or not.

Edit: Yanfly plugins required, if that wasn't obvious.
Use a <Custom Show Eval> or <Custom Requirement> note tag with a conditional checking whether the user has X passive state or not.

Edit: Yanfly plugins required, if that wasn't obvious.
What plugin exactly?

And would you happen to know of any potential ones that completely change a spell? Like if I use FIRE, but I have a passive called BOOST on, it changes FIRE to EXPLOSION? Or something along those lines? Just curious.
I haven't used this one, but think it might be 'Auto Passive States': http://www.yanfly.moe/wiki/Auto_Pas...e states that,has auto passive state notetags.


You'll need the Battle Engine Core plugin too, but I believe they're both in the free pack.
You also need Yanfly's SkillCore plugin (to use the note tags I mentioned).
Hiya,
I was hoping I could get some help figuring out what I'm doing wrong (I know it'll probably be something easy, but please bear with me). I'm trying to figure out how to suppress the effects of a passive skill that has already been activated. The idea is that while the actor has a particular status effect it should be suppressing the effects of the passive skill. Yes I am using the yanfly plugins.
Hiya,
I was hoping I could get some help figuring out what I'm doing wrong (I know it'll probably be something easy, but please bear with me). I'm trying to figure out how to suppress the effects of a passive skill that has already been activated. The idea is that while the actor has a particular status effect it should be suppressing the effects of the passive skill. Yes I am using the yanfly plugins.
Just have the second status effect reverse the activation condition of the passive.
Just have the second status effect reverse the activation condition of the passive.
Only one problem, I'm using the JP yanfly plugin and the skill is one that is purchased through that.
Only one problem, I'm using the JP yanfly plugin and the skill is one that is purchased through that.
You could give the skill an additional passive condition of the target *not* having the state that suppresses it.
You could give the skill an additional passive condition of the target *not* having the state that suppresses it.
I sorry I have no idea how to do that.
Add

!target.isStateAffected(id of suppressing state)

To your passive condition notetag.
Add

!target.isStateAffected(id of suppressing state)

To your passive condition notetag.
This is the notetag I have currently on the skill.

<Learn Cost: 50 JP>
<Passive State: 13>

<Custom Requirement>

value = user.isStateAffected(38);

</Custom Requirement>
So you need to add a <passive condition> tag to state 13, assuming this is the one that provides the effect of the passive skill. I don't think adding it to Custom Requirement will work as that only affects whether you can actively use the skill in battle and doesn't stop the passive from applying, as far as I remember.
So you need to add a <passive condition> tag to state 13, assuming this is the one that provides the effect of the passive skill. I don't think adding it to Custom Requirement will work as that only affects whether you can actively use the skill in battle and doesn't stop the passive from applying, as far as I remember.
Ok thank you. So how would I make it check to see if the skill is in use before suppressing and not suppress it if it isn't in use?
Ok thank you. So how would I make it check to see if the skill is in use before suppressing and not suppress it if it isn't in use?
Is it something you toggle or is it always on after you buy it?
Is it something you toggle or is it always on after you buy it?
It's always on once you buy it.
It's always on once you buy it.
Why would you need to check whether it's in use then? Assuming the attached passive state is what provides the effect of it, if you add the isStateAffected as a passive condition, then it'll only be active if the user doesn't have the suppressing state, and will be if they don't. Passive conditions are constantly evaluated, you don't have to do anything else for it.
Why would you need to check whether it's in use then? Assuming the attached passive state is what provides the effect of it, if you add the isStateAffected as a passive condition, then it'll only be active if the user doesn't have the suppressing state, and will be if they don't. Passive conditions are constantly evaluated, you don't have to do anything else for it.
So below I have posted the pictures that I have showing the two states as well as the skill. I must be missing something. The idea is while the target is cursed it should be suppressing the regeneration ability if the target has it, but if the target does not then they should not be taking any additional damage. I already tested out the game to see if it would work but for whatever reason, even though the passive should be being suppressed by the cursed state it is still healing as though not being suppressed at all.

Cursed State.jpg




Regeneration State.jpg




Regeneration Skill.jpg
You shouldn't actually need to have recovery effect and regen traits on the Curse state; the passive condition making sure the user doesn't have that state should be enough to suppress the regen effect.

I made a slight mistake though, it should be <custom passive condition>, sorry. <passive condition> requires a specific format and has limited condition support.
You shouldn't actually need to have recovery effect and regen traits on the Curse state; the passive condition making sure the user doesn't have that state should be enough to suppress the regen effect.

I made a slight mistake though, it should be <custom passive condition>, sorry. <passive condition> requires a specific format and has limited condition support.
The reason for the Sp-Recovery *0 is because the cursed status effect needs to be able to do both negate any healing attempt and suppress the regen ablity.

Original thread: https://forums.rpgmakerweb.com/threads/enable-disable-skills-based-on-passive-state.144523/