a weird question about Fomar0153's Skills replace skills script...

The script is here.

Okay so I was wondering something and here is the scenario:

Bob gets to level 10 and learns "bash". Then at level 14 Bob learns "Super Bash" and because of Fomar's Script that replaces Bash as a skill. That's how it's supposed to work, right?

Well, what if Bob only learned "bash" through an in-game event? Would he be able to learn "super bash" at level 14? Would it replace bash?

And then, what if Bob is level 15 when the story event teaches him bash, would he still be able to learn super bash with the script and have it replace bash?
Why dont you test it?
Good idea.

I just tested it, in the first scenario I learned the skill through an event and then I learned the one to replace it without trouble.

In the second scenario, I got to the point where I learned the replacement skill by levelling. Then I whent and got the skill from the event and that skill never showed up, having been replaced already by the one learned.

All in all I learned something today. 

Sorry for the dumb question that I answered myself, I guess.

Original thread: https://forums.rpgmakerweb.com/threads/a-weird-question-about-fomar0153s-skills-replace-skills-script.44367/