Yanfly's Equip Battle Skills and Equip Skill Tiers Issue

Hello all,

I am running into an issue using the two named plugins that I cannot seem to find a solution for.

Let's say that I created 4 tiers of skills, and I restricted the 4th tier to only allow one equipped skill. If I were to create an accessory that increases the number of allowed tier 4 skills to two, I could then go to the Equip Skills screen and equip two level 4 skills, no problem.

However, when I remove the accessory from the actor, they will still have both tier 4 skills equipped. If the player were to go into the equip skills menu, they would be locked in until they correct the issue, but if they just never go back in, they get away with having a both skills equipped. This isn't a huge deal from a balance perspective, but it's less than ideal from a design perspective.

I realize that within the menu itself, you can exceed the limitation (see image below) but because of the safeguards added by Yanfly, you cannot exit the menu. So I'm not exactly sure the best way to approach a solution.

1593289845920.png


The best idea that I came up with is when equipment that affects the allowed slots is removed, it also unequips all skills. A bit of a headache for the player, maybe, but I'd rather that than breaking the game, lol. But I'm unsure of a script that can accomplish this and also run on accessory unequip.

If anyone has any solutions or suggestions, please let me know.

Thank you kindly.


Link to plugins:

Equip Battle Skills: http://www.yanfly.moe/wiki/Equip_Battle_Skills_(YEP)

Equip Skill Tiers: http://www.yanfly.moe/wiki/Equip_Skill_Tiers_(YEP)
I can't see the code of the plugins themselves since they're not free any more, but I'd probably edit the plugin to automatically remove any extra skills in the function for unequipping items.
The best idea that I came up with is when equipment that affects the allowed slots is removed, it also unequips all skills. A bit of a headache for the player, maybe, but I'd rather that than breaking the game, lol.
While I'm not quite certain how to do it, you could also have the player be sent to the skill menu whenever equipment changes the skill total so that the player must change skills if over. Another thought is using Yanfly's plugin that activates a common event when you leave the menu. That event can check (possibly?) if a character is over skill limits, and if so, does something (such as unequipping skills or a message that they need to change skills and reopens the skill menu).
@Trihan

Dang, forgot that Yanfly made that change. That will definitely make it more difficult to find help. That's the ultimate end goal. But I simply do not see a way to do that. I'll keep combing through the plugin though.

@kirbwarrior

Thanks for the suggestion. That solution is contingent upon finding a way to run a script on item unequip, which I'm unsure how to do. But I will keep searching.

Thanks again. 🙂
@Trihan

Dang, forgot that Yanfly made that change. That will definitely make it more difficult to find help. That's the ultimate end goal. But I simply do not see a way to do that. I'll keep combing through the plugin though.

@kirbwarrior

Thanks for the suggestion. That solution is contingent upon finding a way to run a script on item unequip, which I'm unsure how to do. But I will keep searching.

Thanks again. 🙂

Can you tell me how equipped skills are stored in the plugin, variable wise?

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-equip-battle-skills-and-equip-skill-tiers-issue.123364/