Unlearn Skills

There seems to be no way to actually unlearn or "forget" a skill. I see scripts that allow the user to *hide* the skill and not be able to select it, but if you have any system that involves skills acting as passive boosts, then merely hiding it does not stop its effect as much as outright forgetting it does.


EDIT:  Specifically, I'm looking for a way to do this through a note tag on a skill, so if the player learns Passive 1, then they learn Passive 2, they forget Passive 1 because they've learned Passive 2.
Are you sure?


forgetskill.png


Not to mention skills learned with traits are forgotten when the object with the trait is removed. For example, If an equipment that gives a skill with a trait, the skill will be forgotten if the equipment is removed.
Ah, I made a silly mistake. What I meant to ask was for a way to do this through a note tag on a skill, so if the player learns Passive 1, then they learn Passive 2, they forget Passive 1 because they've learned Passive 2.
I don't know of any plugin that does this - but how are those skills learned? because if they're learned by events then you should be able to forget them in the same event.


And if not, there might be other ways around this - we just don't have enough info about your structure to give advice here.
I'm utilizing Yanfly's Skill Learn System script. I'm then also using Moogle X's Passive Skill script. What I've set up is, essentially, a system where the player spends "skill points" (or Job Points, if you're familiar) to invest in increasing their stats via Passive Skills. The player can "learn" passive skills which are basically just things like ATK +5 or Critical Hit Rate +2%, or what have you.


This is all fine and good and the two plugins work wonderfully. However, some stats do not behave as intended. Specifically, when it comes to SP Parameters. If I have a stat that increases PHArmacy, which is an SP Parameter, then it's all multiplicative, meaning if I wanted Pharmacy Boost I to be +10% (110% in the formula) PHA boost for the actor, and then Pharmacy Boost II to be another +10% (110% in the formula) PHA boost for the actor, then instead of the actor having a +20% boost when they have Pharmacy Boost I and Pharmacy Boost II, it ends up being 110% * 110%, which, of course, is not quite... correct.


The best solution I've found is to make it so when the player learns Pharmacy Boost II, they unlearn Pharmacy Boost I, and just make it so Pharmacy Boost II is +20% (120% in the formula). However, I cannot seem to find a reliable method of making this happen. I spoke with Yanfly and was rightfully pointed to ask of this as a more general request, as he does not have the time to try and accommodate such an inarguably niche concept.


At the end, it seemed some kind of way to have the actor forget a skill through the skill note tag box would be the most reasonable execution.


I, however, confess that the more I think about it, the more it sounds like some kind of infinite loop would go on where the actor continuously forgets the skill and ultimately bogs down the game, so if there's any kind of alternative, I'd be very open to it.
Sounds like what you want is Skill Replace. Moogle X has a plugin for that too: Moogle_X_SkillReplaceSkill.js. I haven't used it myself, but it sounds like it's just what you need. You'd need to make your Pharmacy Boost II have 120% though. I also don't know how well it'll work with Yanfly's Skill Learn System since you would no longer have one of the skills you just learned. You could probably use one of the evals to hide the previous skill once you have the new one. It's probably easier than I'm making it sound.
@Crysillion


You can, instead use this for the passive state: 





This allows you to set conditions for the passive state.


So just make the 'Pharmacology I' state to be deactivated while the actor have also the 'Pharmacology II' state.


For example, Your 'Pharmacology I' skill can be:
<passive state: X, state removed Y>


where the skill X is the 'pharmacology I' state Id and Y is the 'pharmacology II' state Id.


Alternatively, you can use the  <custom passive state: id> tag if you need a more complex condition.

Original thread: https://forums.rpgmakerweb.com/threads/unlearn-skills.57717/