MZ More Equipament

Hello everyone.

I wanted to know if I can make the characters equip several armors of one type. For example in my game there are only two types of equipment, a weapon and relics. (Relics replace armor, amulets etc.)
So I want the characters to be able to equip the same type of equipment (relic) multiple times. That is to say, that equips for example 5 objects of the same equipment. I use rpg maker mz.
Yes, you can.

For MV, you can do this with YEP_EquipCore plugin.
For MZ, you can do this with VisuStella Items and Equip Core plugin
👋 This will need a plugin, so:

I've moved this thread to JS Plugin Requests (from MZ Support). Thank you.

In case you want to avoid big plugins like VisuStella (e.g. compatibility concerns), here's some code for a small plugin that only duplicates the equip slots:
Edit - here's an updated, slightly more efficient version:
Spoiler: plugin code v2
JavaScript:
/*:
 * @target MZ
 * @plugindesc Allow more than 1 slot per equip type.
 * @help Blank equip type names count as previous non-blank equip type.
 * E.g. "Weapon", "Shield", "Ring", "", "Amulet" - defines 2 ring slots.
 *
 * Free to use and/or modify for any project, no credit required.
 */
// M06) Blank equip type names count as previous non-blank equip type.
void (() => {
'use strict';

    // E.g. "Weapon", "Shield", "Ring", "", "Amulet" - defines 2 ring slots.

    /** Array of root values for each equip type ID. */
    const types = [];

    /** Initialises {@linkcode types}. */
    const initDupeTypes = function() {
        const E = $dataSystem.equipTypes;
        const L = E.length;
        let root = types[0] = 1;
        for (let n = 1; ++n < L;)
            types[n - 1] = E[n] ? root = n : root;
    };

    /**
     * Maps given equip type ID to its root type ID.
     * @param {number} eTypeId input equip type ID
     * @returns {number} "real" equip type ID.
     */
    const dupeSlot = function(eTypeId) {
        return types[eTypeId - 1];
    };

    // Initialise dupe types on game boot.
    void (alias => {
        Scene_Boot.prototype.start = function() {
            initDupeTypes();
            alias.apply(this, arguments);
        };
    })(Scene_Boot.prototype.start);

    // Map equip slots to their root type ID as appropriate.
    void (alias => {
        Game_Actor.prototype.equipSlots = function() {
            return alias.apply(this, arguments).map(n => dupeSlot(n));
        };
    })(Game_Actor.prototype.equipSlots);

})();
To use it, copy the code into a text editor (e.g. Notepad), then Save As:
  • File Type: All Files (so it doesn't automatically add a .txt extension);
  • Filename: whateverYouLike.js (i.e. manually save it with a .js extension).
Then import it as a plugin~

Original thread: https://forums.rpgmakerweb.com/threads/more-equipament.157487/