Setting up equipment checks for actors

I'm trying to set up specific skills that my actors can only use with a specific item equipped. To make an example, if the player has a ring equipped then the skill becomes available in battle, but when that ring is not equipped that skill doesn't appear.

I figured that conditional branch checks with common events could make this work, but I can't figure out a way to set this up with either the actor or item.

Is it possible to set up a conditional in that way and is there a better way of doing it either within the engine or with a plugin?
equipment and items are not the same - items are like the potions and cannot be equipped.

that said, the easiest solution with equipment is to simply give the equipment the traits to contain the skills. If that is done the actor can use the skill as long as that equipment is worn.
but that includes ignoring level - if the actor dons the equipment on level 1 he/she will be able to use the skill even then.

if you want any more conditions or restrictions on when the equipment is usable, or if you want skills to be usable on items in inventory or anything like that, then you're better off using a plugin with condition-type eval notetags, for example yanfly's item core.

doing this by common event is possible, but not easy as you have to keep both the logic structure and the lag of handling it in check. If you have to do it that way, your first question should be when you want to check for something - and as a guess, attaching a common event to an item is usually too late a check for most cases.
Using Yanfly's Skill Core, you could do it by putting this in the skill's note box:
Code:
<Custom Requirement>
   value = user.hasArmor($dataArmors[86]);
</Custom Requirement>

That would make it so that the skill is enabled if the user is wearing the armor with an ID of 86. Otherwise, the skill will be greyed out and the user will be unable to select it in the skill window. You would obviously want to change the 86 to be the actual ID of whatever armor you want this to apply to.

If you'd rather the skill not be visible at all whenever the user isn't wearing the item, then you'd use this note tag instead:
Code:
<Custom Show Eval>
   visible = user.hasArmor($dataArmors[86]);
</Custom Show Eval>
equipment and items are not the same - items are like the potions and cannot be equipped.

that said, the easiest solution with equipment is to simply give the equipment the traits to contain the skills. If that is done the actor can use the skill as long as that equipment is worn.
but that includes ignoring level - if the actor dons the equipment on level 1 he/she will be able to use the skill even then.

if you want any more conditions or restrictions on when the equipment is usable, or if you want skills to be usable on items in inventory or anything like that, then you're better off using a plugin with condition-type eval notetags, for example yanfly's item core.

doing this by common event is possible, but not easy as you have to keep both the logic structure and the lag of handling it in check. If you have to do it that way, your first question should be when you want to check for something - and as a guess, attaching a common event to an item is usually too late a check for most cases.
Thank you. I figured as much but luckily enough the game doesn't have a level system so that could help
Using Yanfly's Skill Core, you could do it by putting this in the skill's note box:
Code:
<Custom Requirement>
   value = user.hasArmor($dataArmors[86]);
</Custom Requirement>

That would make it so that the skill is enabled if the user is wearing the armor with an ID of 86. Otherwise, the skill will be greyed out and the user will be unable to select it in the skill window. You would obviously want to change the 86 to be the actual ID of whatever armor you want this to apply to.

If you'd rather the skill not be visible at all whenever the user isn't wearing the item, then you'd use this note tag instead:
Code:
<Custom Show Eval>
   visible = user.hasArmor($dataArmors[86]);
</Custom Show Eval>
Thanks a ton. Just tried it and it worked out how I needed it

Original thread: https://forums.rpgmakerweb.com/threads/setting-up-equipment-checks-for-actors.148501/