Creating a skill that requires a weapon to use

Hello everybody,
I would like to create some skills that require a certain type of weapon to be used in combat. I know that this sort of system is implemented in RPG Maker MV, but is it also possible to create something similar in RPG Maker XP?
Thanks for your time
You would need a script.

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-skill-that-requires-a-weapon-to-use.94114/