Help with AP_SkillCompendium

Hello,

I'm using the plugin AP_SkillCompendium (by alistair) and I would like to eliminate what I've highlighted in the following image in red:

1GEkxxa.png


You can see below the code of the plugin.

Can anyone help me? 😅


Code:
//=============================================================================
// Alistair Plugins - Skill Compendium
// AP_SkillCompendium.js
//=============================================================================
//=============================================================================
 /*:
 * @plugindesc v1.0 (Requires AP_StateCompendium) Allows the player to view all the skills in your game.
 * @author Alistair Plugins
 *
 * @param --- General ---
 * @desc
 * @default
 *
 * @param Exclude Skills
 * @desc These Skills will not be shown at any time. Use , to seperate several numbers.
 * @default 2, 3
 *
 * @param Skill Order
 * @desc In which order shall the skills be displayed? Possibilities: id name
 * @default name
 *
 * @param Encounter Discovery
 * @desc Skills will only be revealed in the list if they have been encountered in battle first. Default: false
 * @default false
 *
 * @param State Vocabulary
 * @desc The term used for States in the compendium selection window.
 * @default States
 *
 * @param Skill Vocabulary
 * @desc The term used for Skills in the compendium selection window.
 * @default Skills
 *
 * @param Leave Vocabulary
 * @desc The term used for leaving the scene.
 * @default Leave
 *
 * @param MP Cost Vocabulary
 * @desc The term used for MP Cost.
 * @default MP Cost:
 *
 * @param TP Cost Vocabulary
 * @desc The term used for TP Cost.
 * @default TP Cost:
 *
 * @help
 * ============================================================================
 * Alistair Plugins - Skill Compendium
 * ============================================================================
 * 
 * Here's an extension to the State Compendium Plugin that will enable
 * your players to view skills in the compendium! By allowing the players
 * to do this, you can make sure that they understand more complex skills
 * or that they can read up on mechanics they may have a hard time understanding.
 *
 * ============================================================================
 * Notetags
 * ============================================================================
 * These only work for: Skills
 *
 * <sc_comment:x>
 * Replace x with the sentences you want to show the player for this particular
 * skill.
 *
 * ============================================================================
 * Update History
 * ============================================================================
 * V1.0
 * - First version
 */
//=============================================================================
// (function() {
   
    var parameters = PluginManager.parameters('AP_SkillCompendium');
    var APSC1ExcludeSkills = String(parameters['Exclude Skills']);
    var APSC1StateVocabulary = String(parameters['State Vocabulary']);
    var APSC1SkillVocabulary = String(parameters['Skill Vocabulary']);
    var APSC1LeaveVocabulary = String(parameters['Leave Vocabulary']);
    var APSC1MPCostVocabulary = String(parameters['MP Cost Vocabulary']);
    var APSC1TPCostVocabulary = String(parameters['TP Cost Vocabulary']);
    var APSC1SkillOrder = String(parameters['Skill Order']);
    var APSC1Encounter = String(parameters['Encounter Discovery']);

   
    function Scene_StateCompendium() {
        this.initialize.apply(this, arguments);
    };
   
    Scene_StateCompendium.prototype = Object.create(Scene_MenuBase.prototype);
    Scene_StateCompendium.prototype.constructor = Scene_StateCompendium;
   
    Scene_StateCompendium.prototype.initialize = function() {
        Scene_MenuBase.prototype.initialize.call(this);
    };
   
    Scene_StateCompendium.prototype.create = function() {
        Scene_MenuBase.prototype.create.call(this);
        this.createDescriptionWindow();
        this.createCommandWindow();
        this.createSelectionWindow();
    };

    Scene_StateCompendium.prototype.createSelectionWindow = function() {
        this._selectionWindow = new Window_StateHorzCommand(eval(CommandWindowX), eval(CommandWindowY) - 72);
        this._selectionWindow.setHandler('state', this.makeStateTab.bind(this));
        this._selectionWindow.setHandler('skill', this.makeSkillTab.bind(this));
        this._selectionWindow.setHandler('cancel', this.popScene.bind(this));
        this.addWindow(this._selectionWindow);
    };

    Scene_StateCompendium.prototype.createCommandWindow = function() {
    this._commandWindow = new Window_StateCommand(eval(CommandWindowX), eval(CommandWindowY));
    this._commandWindow.setHelpWindow(this._descWindow);
    this._commandWindow.setHandler('cancel', this.returnSelection.bind(this));
    this._commandWindow.deactivate();
    this.addWindow(this._commandWindow);
    };
   
    Scene_StateCompendium.prototype.createDescriptionWindow = function() {
    this._descWindow = new Window_StateDescription(eval(CommandWindowX) + 416, eval(CommandWindowY), 784, Graphics.boxHeight - (Graphics.boxHeight / 4) - 100);
    this.addWindow(this._descWindow);
    };

    Scene_StateCompendium.prototype.makeStateTab = function() {
        this._descWindow._flag = 0 // State Compendium
        this._commandWindow.refresh();
        this._commandWindow.select(0);
        this._commandWindow.activate();
    };

    Scene_StateCompendium.prototype.makeSkillTab = function() {
        this._descWindow._flag = 1 // Skill Compendium
        this._commandWindow.refresh();
        this._commandWindow.select(0);
        this._commandWindow.activate();
    };

    Scene_StateCompendium.prototype.returnSelection = function() {
        this._commandWindow.select(0);
        this._descWindow.contents.clear();
        this._commandWindow.clearCommandList();
        this._descWindow._flag = -1 // Nothing
        this._commandWindow.refresh();
        this._selectionWindow.activate();
    };

//-----------------------------------------------------------------------------
// Window_StateCommand
//
    function Window_StateCommand() {this.initialize.apply(this, arguments);}
   
    Window_StateCommand.prototype = Object.create(Window_Command.prototype);
    Window_StateCommand.prototype.constructor = Window_StateCommand;
   
    Window_StateCommand.prototype.initialize = function(x, y) {
        Window_Command.prototype.initialize.call(this, x, y);
        this.refresh();
    };
   
    Window_StateCommand.prototype.numVisibleRows = function() {
        return VisibleLines;
    };

    Window_StateCommand.prototype.windowWidth = function() {
        var width10 = 416;
        return width10;
    };


    Window_StateCommand.prototype.windowHeight = function() {
        if (MatchHeights) return SceneManager._scene._descWindow.height;
        return this.fittingHeight(this.numVisibleRows());
    }
   
    Window_StateCommand.prototype.isOkEnabled = function() {
        return false;
    };
   
    Window_StateCommand.prototype.makeCommandList = function() {
        switch (SceneManager._scene._descWindow._flag) {

            case 0: // State Compendium
            for (i = 1; i < $dataStates.length; i++) {
                var item = $dataStates[i];
                if (item.name === "") { continue; };
            var Excluded = ExcludeStates;
            Excluded.split(",").map(Number);
            if (Excluded.indexOf(item.id) === -1) {
                if (eval(APSCEncounter)) {
                    if ($gameSystem.unlockedStates().indexOf(item.id) !== -1) {
                        this.addCommand(skill.iconIndex, item.name, 'state');
                    };
                } else {
                this.addCommand(item.name, 'state');
                };
            } else { continue };
            };
           if (this._list.length === 0) { this.addCommand("---", 'empty', false) };
            if (StateOrder === "name") this._list.sort(function(a, b) {
                if (a["name"].toLowerCase() < b["name"].toLowerCase()) return -1;
                if (a["name"].toLowerCase() > b["name"].toLowerCase()) return 1;
                return 0;
            });
            break;

            case 1: // Skill Compendium
            for (i = 1; i < $dataSkills.length; i++) {
                var item = $dataSkills[i];
                if (item.name === "") { continue; };
            var Excluded = APSC1ExcludeSkills;
            Excluded.split(",").map(Number);
            if (Excluded.indexOf(item.id) === -1) {
                if (eval(APSC1Encounter)) {
                    if ($gameSystem.unlockedSkills().indexOf(item.id) !== -1) {
                        this.addCommand(item.name, 'skill');
                    };
                } else {
                this.addCommand(item.name, 'skill');
                };
            } else { continue };
            };
           if (this._list.length === 0) { this.addCommand("---", 'empty', false) };
            if (APSC1SkillOrder === "name") this._list.sort(function(a, b) {
                if (a["name"].toLowerCase() < b["name"].toLowerCase()) return -1;
                if (a["name"].toLowerCase() > b["name"].toLowerCase()) return 1;
                return 0;
            });
            break;
        };
    };
   
    Window_StateCommand.prototype.setHelpWindow = function(helpWindow) {
        this._helpWindow = helpWindow;
    };
   
    Window_StateCommand.prototype.update = function() {
        Window_Command.prototype.update.call(this);
        switch (SceneManager._scene._descWindow._flag) {
           
            case 0: // State Compendium
            var stateId = -1 || stateId;
                for (var j = 1; j < $dataStates.length; j++) {
                var state = $dataStates[j];
                    if (this.commandName(this._index) === state.name) {
                        var stateId = j;
                        break;
                    };
                };
            if (this._helpWindow) { this._helpWindow.setId(stateId) };
            break;

            case 1: // Skill Compendium
            var skillId = -1 || skillId;
                for (var j = 1; j < $dataSkills.length; j++) {
                var skill = $dataSkills[j];
                    if (this.commandName(this._index) === skill.name) {
                        var skillId = j;
                        break;
                    };
                };
            if (this._helpWindow) { this._helpWindow.setId(skillId) };
            break;
        };
    };
   
    Window_StateCommand.prototype.updateHelp = function() {
    };

//-----------------------------------------------------------------------------
// Window_StateDescription
//
    function Window_StateDescription() {this.initialize.apply(this, arguments);}
   
    Window_StateDescription.prototype = Object.create(Window_Base.prototype);
    Window_StateDescription.prototype.constructor = Window_StateDescription;
   
    Window_StateDescription.prototype.initialize = function(x, y, width, height) {
        Window_Base.prototype.initialize.call(this, x, y, width, height);
        this._flag = -1;
    };
   
    Window_StateDescription.prototype.setId = function(id) {
        var needRefresh = this._id !== id;
        this._id = id;
        if (needRefresh) { this.refresh(this._id) };
    };

    Window_StateDescription.prototype.refresh = function(id) {
        this.contents.clear();
        switch (this._flag) {
            case 0: // State Compendium
            var state = $dataStates[id];
            if (id === -1) return;
            this.drawIcon(state.iconIndex, 20, 10);
            this.drawText(state.name, 55, 10, this.width, 1);
            if (state.minTurns === state.maxTurns) {
                if (state.minTurns === 1) {
                    this.drawText(String(state.maxTurns) + " " + TurnSingular, this.width - 200, 10, this.width, 1);
                } else {
                    this.drawText(String(state.maxTurns) + " " + TurnPlural, this.width - 200, 10, this.width, 1);
                };
            } else {
            this.drawText(String(state.minTurns) + " " + To + " " + String(state.maxTurns) + " " + TurnPlural, this.width - 210, 10, this.width, 1);
            };
            this.drawTextEx(state.meta.sc_comment, 0, 70);
            break;

            case 1: // Skill Compendium
            var skill = $dataSkills[id];
            if (id === -1) return;
            this.drawIcon(skill.iconIndex, 20, 10);
            this.drawText(skill.name, 55, 10, this.width, 1);
            var text = APSC1MPCostVocabulary + " " + skill.mpCost;
            this.drawTextEx(text, 55, 10 + this.lineHeight());
            var gap = this.textWidth(text);
            text = APSC1TPCostVocabulary + " " + skill.tpCost;
            this.drawTextEx(text, 55 + gap + 24, 10 + this.lineHeight());
            this.drawTextEx(skill.meta.sc_comment, 0, 90);
            break;

        };
    };

// ----------------------------------------------------------------------------
// Window_StateHorzCommand
//

    function Window_StateHorzCommand() { this.initialize.apply(this, arguments);}

    Window_StateHorzCommand.prototype = Object.create(Window_HorzCommand.prototype);
    Window_StateHorzCommand.prototype.constructor = Window_StateHorzCommand;

    Window_StateHorzCommand.prototype.initialize = function(x, y) {
        Window_HorzCommand.prototype.initialize.call(this, x, y);
    };

    Window_StateHorzCommand.prototype.windowWidth = function() {
        var width1 = 1200;
        return width1;
    };

    Window_StateHorzCommand.prototype.maxCols = function() {
        return 3;
    };

    Window_StateHorzCommand.prototype.makeCommandList = function() {
        this.addCommand(APSC1StateVocabulary, 'state');
        this.addCommand(APSC1SkillVocabulary, 'skill');
        this.addCommand(APSC1LeaveVocabulary, 'cancel');
    };

// ----------------------------------------------------------------------------

AP_SkillCompendium_Game_Action_apply = Game_Action.prototype.apply;
Game_Action.prototype.apply = function(target) {
    if (this.isSkill()) {
        $gameSystem.unlockSkill(this.item().id);
    };
    AP_SkillCompendium_Game_Action_apply.call(this, target);
};

AP_SkillCompendium_Game_System_initialize = Game_System.prototype.initialize;
Game_System.prototype.initialize = function() {
    AP_SkillCompendium_Game_System_initialize.call(this);
    this._unlockedSkills = [];
};

Game_System.prototype.unlockedSkills = function() {
    return this._unlockedSkills;
};

Game_System.prototype.unlockSkill = function(id) {
    var id = Number(id) || 0;
    if (this._unlockedSkills.indexOf(id) === -1) this._unlockedSkills.push(id);
};

// ---
// })();
//=============================================================================
// End of Plugin
//=============================================================================

Original thread: https://forums.rpgmakerweb.com/threads/help-with-ap_skillcompendium.86646/