Yanfly's Skill Cost Manager

Hello!

I am currently using Yanfly's skill cost manager as well as the script that allows customization of the types of weapons a character can use. My question that I'm having is that is there a way for me to use the "cost preform" part of the string to check if an item is equipped or not? For instance, I want a skill to be used only if a character is equipped with a specific piece of armor.
You can check the equips of the battlers... 🙂
I meant as a script check. If Actor has equipped Armor #, then the skill works. I'm not talking about assigning a skill to a piece of armor under additional options.
That was what I meant... You can check the equips of an actor by using ruby lines on that notetag part...
Do you happen to have an example I could use?
I think you'd use the custom cost requirement for this...

I don't have a specific for now... I'm not sure if you can do it in one line, if not then you could add a script first under Class_GameBattler and call that using the notetag...
It would probably be much easier if you simply give that equipment the feature of adding the skill when equipped instead of giving the skill in class/actor and trying to condition it on equipment.

If the equipment in question is a weapon you might even use the skill weapon requirement to solve this.

Not everything needs scripts to be tweaked, sometimes you just have to think outside of the box.
yeah, if the skill is only meant to work for a single equipment then that would be easier... but if the skill will work for a lot of equipment, well decide whether copy pasting features or doing a script check is faster...

but adding the feature might always be easier and faster to do anyway... 🙂

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-skill-cost-manager.16540/