MV YEP_EquipBattleSkills Hides New Skill Learned

Hello all,

My game is using the Yanfly plugin YEP_EquipBattleSkills wherein your character can only bring x number of skills to a fight, rather than having access to their entire list. The nature of this game is such that your party members will learn tons of skills over the course of their adventuring career, and so I'd love to have this plugin so that I can limit the time it takes to pick a skill in battle. I've been greatly enjoying this plugin.

However, as I've got further and tested my game more, I've realized that when the maximum number of skills are equipped (in my game, this is 8) for a given actor, when they level up and would receive a skill, the normal message that says "FableGamer hit level 10! Double Attack learned!" is missing the second line: the "Double Attack learned!" part never shows up. The skill does appear in that character's skill list, though. It's just that the message doesn't show up about it.

I found a thread that had an identical issue years ago, but they received no answer (they replicate my issue perfectly, if linking their post is okay). I am using the most up-to-date version I could find, and my plugins are ordered per Yanfly's list, so that should not be the issue. If anyone has any insight into why this might be happening, or has had a similar issue, please let me know.
Tossing a (now timely) bump on this post, as it's been 24 hours.
Tossing a (now timely) bump on this post, as it's been 24 hours.
1733897442386.png


Also, my test game doesn't have the problem. I installed Equip Battle Skills and still see the obtain skill message when my actor levels up.
My bad on the timing there, I had misremembered the requisite duration between bumps.

I was able to develop a fix, actually. The problem arose only when I had a character who'd equipped the maximum number of skills as determined in the plugin parameters. Presently, it is working for me, but I haven't exactly stress tested it.

JavaScript:
//=============================================================================
// FableEquipSkillFix.js
//=============================================================================

/*:
 * @plugindesc Fixes the bug with YEP_EquipBattleSkills that prevents showing the "Obtain Skill" text on the levelup screen if you have the maximum number of skills equipped.
 * @author fablegamer

 * @help
 *
 * Simply plug and play.
 *
 * Terms of Use
 *
 * Please use this plugin however you wish. Credit is absolutely not
 * required but would be appreciated.
 *
 */

Game_Actor.prototype.learnSkill = function(skillId) {
    var hasLearnedSkill = this.isLearnedSkillRaw(skillId);
    Yanfly.EBS.Game_Actor_learnSkill.call(this, skillId);
    this._cachedEquippableBattleSkills = undefined;
    this.removeHiddenEquippedSkill(skillId);
    if (!hasLearnedSkill) {
      this._setMaxBattleSkills = this._battleSkills.length + 1; // This is the custom line
      var slotId = this._battleSkills.indexOf(0);
      if (slotId !== -1) this.equipSkill(skillId, slotId);
    }
};
you could simply add that line to the plugin where required, so not really a new plugin for just 1 line 🙂
if it's truly a bug/glitch on it, it could be an oversight 🙂

I don't use those plugin, but if ATT_Turan can confirm it, it would be on his "fix thread" as well,
if it's not already there.
you could simply add that line to the plugin where required, so not really a new plugin for just 1 line 🙂
if it's truly a bug/glitch on it, it could be an oversight 🙂

I don't use those plugin, but if ATT_Turan can confirm it, it would be on his "fix thread" as well,
if it's not already there.
Didn't see it in Turan's fixes, so this is a new one. Just figured I'd make it as accessible as possible as a plugin

Original thread: https://forums.rpgmakerweb.com/threads/yep_equipbattleskills-hides-new-skill-learned.173798/