MV Yanfly Equip Battle Skills Disable (Pokemon)

Is it possible for an enemy to disable one of an actor’s skills for a few turns a la Pokemon’s Disable move?

I’m using Yanfly’s Equip Battle Skills and I think using actor.battleSkillsRaw() or actor.battleSkills() (I don’t fully understand the difference) to see what skills the target actor has equipped and then sealing a random one is what I need to do? I can’t find any eval for directly sealing a skill either.

I searched around and I don’t see anywhere that anyone has duplicated the Disable move.
Seal Skill is a trait, which means you can apply a state to disable one or more skills or skill types
Seal Skill is a trait, which means you can apply a state to disable one or more skills or skill types
So, if you can equip 4 skills in battle and each one has a different skill type, how would you go about making a state to specifically seal only 1 of those equipped skills?

If I make it seal 1 skill type, it potentially seals all of the player’s currently equipped skills if they only have one type of skill type equipped, which could be funny to do, but I’m trying to emulate the Disable move and only put one random equipped skill specific to that target actor out of commission for a few turns. (I think Disable actually disables the last used move, but more or less the same idea).
how would you go about making a state to specifically seal only 1 of those equipped skills?
depends.

if the total number of skills is higher or a character has a complex mix of skills, you'll still need to read out that skill list by script access as you assumed - my answer above was only targeted at your second half:

I can’t find any eval for directly sealing a skill either.



If the number of skills is reasonable, I would move the randomness from the skill determination toward the state determination by randomizing which state is applied without checking what skills are present, but that will not work for complex skill lists.
It's always more helpful (and is detailed in the guidelines for several of the subforums here) that you describe in detail what you're trying to do, rather than just saying "like this other game."

Not everyone here has played Pokémon, and not everyone who has will be familiar with the Disable move.

I am guessing from your post that you want to inflict a state that seals just one of the target's equipped skills without knowing ahead of time what they might be.

You'll want to look up a dynamic traits plugin - I believe both Shaz and Galv have them.

You'd use that in conjunction with Yanfly Buffs & States notetags to change the state's trait as it's being applied to seal one of the skills currently on the target.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-equip-battle-skills-disable-pokemon.160246/