Hiding Yep's Equip Battle skill command in battle.

● ARCHIVED · READ-ONLY
Started by GuanyuMaker 5 posts View original ↗
  1. Hello everyone!

    I'm using YEP's "Equip Battle Skills" and its extensions and the intention is to use it only for passive skills, the active ones will be in skill types allowed to be listed outside that command pool by the extension script allowed types. It means that i will never have any skill listed on the battle command added by that script , so i want to get rid of the command showing in my battle scene. Any smart way doing that? I've tried and failed badly edititng the script.
  2. Can you edit your post to add a link(s) to the plugin(s)?
    Also can you add a screenshot of which command you want to get rid of?

    A lot of people would be able to help you (myself included) but just not familiar with every plugin.
  3. Sure! here goes:

    YEP' Equip Battle Skills: http://yanfly.moe/2016/04/08/yep-90-equip-battle-skills-rpg-maker-mv/

    As far as how I understand the plugin, it creates skills slots where you can equip some learned skills. In battle scene it uses a litte trick by creating a command that lists all equipped skills there and hides the built in skill types commands. The plugin also provides passive effects by just equipping a given skill. Using that feature i've created some passive skills that can be equipped when learned that are the main reason of using the plug-in.

    Because I want my active skills to be avaliable without the need of equipping it Im using another yanfly script called allowed types. This script allows listed skill types to be used without the need of being equipped by the mechanincs provided by YEP's Equip Battle Skills.

    Allowed Types: http://yanfly.moe/2016/06/05/yep-106-equip-battle-skills-allowed-types-rpg-maker-mv/

    In practical means everything works fine, however the Equip Battle Skills script creates a command in battle scene to group up all equiped skills. The issues is that all my equipable skills are passive ones so that command wont be useful as it wont list any usable skill, only passive ones.

    Dont know if the screenshot would be useful, also it uses the system terms for skills:
  4. This should do it:
    Using a text editor, paste this code and save as a file with a .js extension. You can name it whatever you'd like, but probably something that helps you remember what it is doing.

    Code:
    Window_ActorCommand.prototype.addSkillCommands = function() {
       if (DataManager.isBattleTest()) {
          Yanfly.EBS.Window_ActorCommand_addSkillCommands.call(this);
       }
    };

    Install this between YEP_EquipBattleSkills and YEP_X_EBSAllowedTypes.
    In other words, after YEP_EquipBattleSkills and before YEP_X_EBSAllowedTypes.
  5. What a nice and simple solution!
    Looking at your code it seems like I was in the right direction but doing the wrong thing. It worked! Thanks for your help, time and patience!