Is it possible to write custom skill requirements?

RPG Maker MZ allows you to make it so that not only can you set it so that certain skills require certain equipment and weapons, but so that you can also set it so that equipping certain weapons change what the default attack skill is. With these native capabilities of MZ I have renamed the default attack to, "unarmed strike," and set it so that every equippable weapon in the game so far sets a different skill as the default attack skill, so as to give the semblance of the player fighting with their bare hands whenever they don't have a weapon equipped.

I would also like to do something like what Octopath 0 does, where there are certain skills that you can't perform unless you have the corresponding weapon already equipped, I.E. sword skills can't be done if you don't have a sword in hand, bow skills won't be available if you're going full on sword-and-board, ect. This is already possible to pull off natively in MZ, but the road block I've hit is that I would like to add some unarmed skills as well. What I mean by that is I would like to add combat skills that the player can only perform/have access to when they don't have any weapons equipped.

I know a bit of java, but I've never written anything for RPG Maker before and am not quite familiar with all the lines that get called behind the scenes in MZ's engine. I read about a line called something like, "Js Enable Skill," and was wondering if there was such a line called something like, "Js Disable Skill," and if it would be possible to use something like that to write a script that would check for equipment and disable or re-enable skills based on if any weapons or certain armors (like shields) are equipped? Also is there anywhere on here would I could easily read up on some of the parameter lines that get called up behind the scenes in MZ like, "Js Enable Skill."
If you want to do it the hard way with base engine, can't you make all your weapons seal those unarmed skills LOL?

But the basic VisuStella plugins (free) have options to show/hide or enable/disable skills based on code (like what you have equipped), unless you're averse to using them.
And I think that 'JS Enable Skill' you're talking about is actually a VisuStella notetag.
I know a bit of java,
unfortunately that will not help you with the makers, because neither MV nor MZ uses java at all.
they both use javascript.

and the fitting saying is:
java is to javascript as ham is to hamster
they start with the same letters but have nothing to do with each other.
I have a plugin that does exactly this. It's unreleased, but I could polish it off for you and post it. I've only tested it in MV, but it's fairly simple, so I bet it works in MZ too (and I could test that as part of said polish).
unfortunately that will not help you with the makers, because neither MV nor MZ uses java at all.
they both use javascript.

and the fitting saying is:
java is to javascript as ham is to hamster
they start with the same letters but have nothing to do with each other.
Oh, damn, I actually didn't know that. Guess I'll have to pick up some Javascript knowhow.
I have a plugin that does exactly this. It's unreleased, but I could polish it off for you and post it. I've only tested it in MV, but it's fairly simple, so I bet it works in MZ too (and I could test that as part of said polish).
Honesty bruv that would be great! Hell, even if it hitches a bit with MZ I'm sure just being able to look at like, the syntax of how you wrote it out'll really help me get a feel for how RPG Maker works as an engine!

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-write-custom-skill-requirements.182124/