Forgetting a skill after Combat?

Currently I have a low cost skill that when cast the user will learn another ability (Skill B).


I do not want them to keep this Skill B once a fight is over.


I'm aware I could use a common event to make them forget Skill B but this would only


work if they actually used Skill B during that fight.


I want it to also make them forget Skill B even if they didn't cast it during the fight, or else


they could just learn Skill B then not cast it on purpose to have it ready at the start of their next fight.


Is this possible without the use of a plugin? I also don't want to make an event that just clears


Skill B in my overworld after every fight as this means I'd have to put the event after every single


battle which could become frustrating after 200+ fights.
I believe yanfly's skill cost plugin allows you to turn on switches when certain skills are used and have skills appear when certain switches are turned on. What you could do is when Skill A is used it will turn on the switch and Skill B will appear. Then using Hime's End Phase Trigger plugin you'll put in the command to turn off the switch when the battle is over and Skill B will be removed.
- Make the skill that teaches the skills also turn on a Switch.


- Make a common event with autorun, that has the Swich as condition.


- Make the common event remove the skill and turn the switch off.

Original thread: https://forums.rpgmakerweb.com/threads/forgetting-a-skill-after-combat.62077/