Adding Equipment Slots

Hello, I was following what Fomar has told us so far but I'm unable to change my equipment type to one of my custom equipments, when i click on the drop box to pick what i want to set my armor as it just shows, shield, head, body, accessory. none of which are my customs, this is what the code looks like.

module Extra_Slots

 

  Slots = []

 

  Slots[5] = "Armwear"

  Slots[6] = "Legwear"

  Slots[7] = "Footwear"

 

 def equip_slots

    return [0,0,2,3,5,6,7,4,4] if dual_wield?

    return [0,1,2,3,5,6,7,4,4]

  end

end

 the rest of the code is set as default,

to summarize i can only equip armour to the preprogrammed slots. note I'm also new to the program, only had it for a week.
Consider using a script that provides custom equip slots without you having to change the code such as yanfly's Ace Equip Engine http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/ace-equip-engine/


There is more to equips than just having slots.
@Tsukihime I tried that script doesn't work for me. I keep getting error reports, when i go to start a playtest i get this error

Script 'Extra_slots' line 318: NoMethodError occurred.

undefined method '[]' for nil:NilClass

so unless you know how to fix this  error and any that may follow it I will stick with Fomar's script, i just need to learn how to set it so the player can equip "gloves" as hand armour rather than accessory, or any of the rest.
There is nothing on line 318 of yanfly's script.
JamesCalibur don't necro-post nor hijack someone else's topic. Please create your own.

Original thread: https://forums.rpgmakerweb.com/threads/adding-equipment-slots.253/