MZ Another Duel Wield Effect

Is there a way to make another version of duel wield for another slot? By this I mean Duel Wield stays as is but there is another trait that could make slot 6 extend out by one if you have an item equipped?


I did figure out how to array slot 6 but it is always there not contingent on a trait or item.

Game_Actor.prototype.equipSlots = function() { const slots = []; for (let i = 1; i < $dataSystem.equipTypes.length; i++) { slots.push(i); } for (let k = 6; k < $dataSystem.equipTypes.length; k++) { //<-- this one I want contingent on an item. slots.push(6); } if (slots.length >= 2 && this.isDualWield()) { slots[1] = 1; } return slots; };

Is there a way to have it based on a state added by the item?
Are slot 5/6 weapons as well? Because if they're just armors couldn't you use an equip slot plugin?

For example you have:
1. Weapon
2. Weapon
3. Head
4. Chest
5. Legs
6. Accessory

And you use a plugin like this or something similar: https://nijikokun.itch.io/equip-slot-core-mz

And then when they equip a magical rare accessory it adds another accessory slot.
They are listed as armors but called accessory and a skill stone. I was hoping to handle it with states instead of slot rearranging.
@Oggy I don't have time to go testing the above plugin, but it does say you can dynamically add and remove slots during the game. Sounds like it'll do what you need.

Original thread: https://forums.rpgmakerweb.com/threads/another-duel-wield-effect.151300/