Help With Abilities

So here I have 2 items.

z8Cplej.png


I've made it so that these two items unlock these two abilities, respectively.

dxIAmDV.png


So, if I have Tryndamere's Sword equipped, I gain the ability "Undying Rage". If I have Grim Reaper's Scythe equipped, I gain the ability "Instant Death"

zLxP23c.png

xdeqYJI.png


One problem I have is that, even when the required item is not equipped, it still shows up in the abilities selection. The ability cannot be cast, but it just serves as a minor annoyance. Any tips?
Probably need to have a Common Event to deal with it. Or a script. The way to do it with a Common Event is just to have a Conditional Branch of "If X is equipped, learn skill Y" and then put in an Else branch of "forget skill Y". That way, the ability is missing if you don't have that particular piece of equipment equipped to the character.

A script would probably handle it more efficiently, however. Though, I can't recommend one, since I don't know which ones handle that.
Why not have the skill added by the weapon? You can add an 'add skill' trait to each weapon so that Instant Death only appears if the scythe is equipped and Undying Rage only appears with the sword.
Why not have the skill added by the weapon? You can add an 'add skill' trait to each weapon so that Instant Death only appears if the scythe is equipped and Undying Rage only appears with the sword.

Wow, I had no idea that was a feature. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-abilities.83117/