How to make skill "Equip [insert weapon type here]"

In yanfly's plugin tutorial here:


https://www.youtube.com/watch?v=kV3ngBfOmcc


I saw that there is this "Equip [Insert weapon type here]" skill. How do I make one using yanfly's scripts? Can I have demo project too? I have tried using yanfly's equip requirement plugin and setting a specific weapon equip requirement as


skill: x


but, while it forbids you from equipping weapon when you don't have the related skill, it will still allow you to equip that weapon as long as you already learned it, even without equipping the particular skill. I tried using passive state, but then realize, that equip req. plugin seem doesn't support passive state requirement. So anyone can help?
To replicate the "Equip [weapon type]" skill all you need is the Equip Battle Skills plugin from yanfly and prepare a few things:


(Let's use for this example the Equip Katana skill).


1. You need the specific type of weapon you want to be able to equip with the skill. You can add weapon types in the "Types" tab in the main program. Increase the maximun number if neccesary and add "Katana" on the list.


2. You also need a state that will allow you to equip Katanas. Create a new state, click on Attributes, go to the "Equip" tab; next, while "Equip weapon" checkbutton is selected, choose "Katana" from all the options in the dropdown menu.


3. And finally the skill, create a new skill like any other, name it "Equip katanas", in the notebox you must add the notetag  "<Equip State: x>", where x is the ID of the state you just created.


An that's it. When you equip the skill, you will be able to equip katanas, when you don't have it equipped, you won't be able to equip katana type weapons anymore. Also, when you remove the skill while having a katana equipped, it will be unequipped automatically.


Cheers  😀  
Didn't realize there is this tab. I guess I didn't know much about the editor itself. Thanks a lot, it works. 😀

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-skill-equip-insert-weapon-type-here.70650/