MV [Yep Plugins] Skill Issue tbh

Basically the goal here is to:
- Use a buff(Volt Dance) to change character skills into a better version(Dash > Electric Dash, etc)
- After using one skill of the better version, reverts back to original skill(s)
- Repeat when they use Volt Dance

At the moment I'm using skills with Common Events to "Add skills", but the "removing skills" only affect outside of battle, so I want to be able to remove those skills during battle.

😠

I'm using YEP_Skillcore and Learning systems.
why use a common event at all?

A state can both add skills and seal skills by traits, so you can use that to change the available skills for the actor.

and with a state you have several integrated ways to handle timing, for example by turn ending or - which might work the best for you) have any of the boosted skills remove the state by damage formula coding

wouldn't even need a plugin for that
You can use Yanfly's BuffStatesCore and a fancy js notetag to hide the regular skills and show the upgraded versions for as long as the state affects the character. All you have to do then is remove the state after one usage.

Sadly I have no clue about how to actually write the js, so someone else may need to step in... Or you can try and use this:

Otherwise you can just seal the normal versions with the regular state functionality (tho this will only grey them out, which I always find kinda uggly.)
it depends how you set up the skill notetag, as I think you miss a tag something like:
<custom remove effect> , if you only have add skill, it doesn't have the remove part.

we need to see the skill notetag for that.
I would do primarily what @Andar and @SGHarlekin said, with one notetag just to make the UI a little more slick. I don't see any benefit to actually removing and relearning the original skill.

In RPG Maker, give your state the Trait Add Skill: Electric Dash.

Then, using Yanfly's Skill Core, give your Dash skill this notetag:
Code:
<Custom Show Eval>
visible = !user.isStateAffected(X);
</Custom Show Eval>
where X is the ID of your state (no leading zeros).

That way, the state will grant you access to Electric Dash while it's on and hide Dash from your list. No manipulation of learned skills should be necessary.

Then, on the Electric Dash skill, put:
Code:
<After Eval>
user.removeState(X);
</After Eval>
where X is, again, the ID of your state.
I would do primarily what @Andar and @SGHarlekin said, with one notetag just to make the UI a little more slick. I don't see any benefit to actually removing and relearning the original skill.

In RPG Maker, give your state the Trait Add Skill: Electric Dash.

Then, using Yanfly's Skill Core, give your Dash skill this notetag:
Code:
<Custom Show Eval>
visible = !user.isStateAffected(X);
</Custom Show Eval>
where X is the ID of your state (no leading zeros).

That way, the state will grant you access to Electric Dash while it's on and hide Dash from your list. No manipulation of learned skills should be necessary.

Then, on the Electric Dash skill, put:
Code:
<After Eval>
user.removeState(X);
</After Eval>
where X is, again, the ID of your state.
I tried what you suggested, and unfortunately the state trait "Add Skill: Electric Dash" wouldn't apply and add the skill into the skill window during battles.
Is the Skill Type set to a type that the actor has access to?
please show us a screenshot of the state then, because that trait should be effective immediatly if done correctly.

Original thread: https://forums.rpgmakerweb.com/threads/yep-plugins-skill-issue-tbh.156850/