Linking Weapons and Skills - how to make some skills dissappear when not equiped

Hello!

I'm going to start off with a short description of the game mechanic and why my game is presenting a problem.

First off, I'm making a sequel to a cult rpg game known as twewy or 'the world ends with you'. In twewy you fight using pins as weapons and each pin comes with its own attack and special effects. Part of what makes the game popular in it's fan-circles is the collectible aspect. There are over 300 pins in the game and they are sorted into different psycs ('earthquake', 'shockwave', 'force rounds' ..etc). You start with a certain number of pin slots open and can have up to 6 unlocked, in these slots you cannot equip 2 of the same pin and you cannot equip 2 of the same type of pin psyc.

Now in order for this system to work in RPGmakerVxAce I used Hime's skill/item/equip restrictions and Yanfly's Battle command.

I currently have it set so that each of the pins in designated as a weapon and using the restrictions from Hime I was able to fulfill the equipping rules. Then I made corresponding skills for each pin (so their special attacks can be used in battle) and set it so that the skill can only be used if the pin is equipped again using Hime's script. 

Using Yanfly's script I attempted to hide the unused skills with <command hide until usable> in the note box but they still show up in battle grayed out. This is probably bc the script is only meant to hide the skill if it doesnt meet the MP requirement not if the weapon it is linked to isn't equipped. Maybe the problem can be fixed by modifying Yanfly's battle command script?

Part of the issue is that I currently have all my skills set to skill type: special and I have changed the class page so that everyone in that class can use special skills. However even if that is the case, the skill doesnt pop up when I start the game even if the player is wearing that pin. So what I did instead is I manually gave that class all ~280 skills and I set it with the restriction that the skill cannot be used if they are not equipping that pin. This is where I run into my problem and what I hope a script may solve. When I go into the character menu > skills, I can see all ~280 all of the gray and unusable except the ones I am wearing. When I am in battle and I fight > special, again I can see all the pins, even the ones I don't have yet grey and the ones I am wearing are the only ones I can use.

What I'm hoping for as a solution is a way to remove the grey unusable skills from the menu all together, both menus. That way they will appear hidden until the pin is equipped and Ta-Da!! it will look as though the skill popped up bc you equipped a pin.

(Yanfly's script has it so the skill disappears from the battle menu if the MP requirement isn't reached. If that could be changed so that if weapon 001 is not equipped than skill 001 will not even appear in the battle menu, then also extend this concept to the user menu as well?? maybe ??)

Of course if you have another idea on how to fix this problem I'd love to hear it. Any help I can get really!

I'll add some pictures below to make a few things clear. (warning, the image below is LONG)

Spoiler
[IMG]http://snag.gy/PFo90.jpg[/IMG]
If a skill is given as a feature from a weapon (NOT from actor or class), then it will not be available if the weapon is not equipped.
Ahhh you are a live saver. 

I play tested it and that fixed the problem!

Thank you!

Yeah I was adding the skill to the class and not as a feature of the weapon so now I just have to edit... all 300 skills ... and then again 300 pins,.... ahh what a long night ahead, but worth it!

I'm glad this problem could be solved without a script. This is my first time using RPGmaker and the learning curve is steep but every little bit of advice helps.

I guess this thread can be closed now.
Next time, just report your topic to be closed.

If you're new, the link in my signature should also help with your learning curve.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/linking-weapons-and-skills-how-to-make-some-skills-dissappear-when-not-equiped.42338/