(I am using Yanfly's Ace Equip Engine)
In my project, I'd like to be able to hide the "armor" equipment slot in the equip menu but still retain the equipped armor. (Editing base slots just removes their functionality entirely) Basically, I want the armor slot to be hidden in the equip menu but still exist behind the scenes.
Is there a way to accomplish this? Either by scripting it so that it "ignores" the armor slot when drawing the window or by drawing each slot individually?
Thank you in advance! : D
Hiding specific equip slots
● ARCHIVED · READ-ONLY
-
-
One question:
Do you want to hide it completely, or should there be cases where the player can still access it?
If you simply want to hide the original body slot, you can do that by removing the line from display and equipping - but then the player can only have the armor assigned as starting gear in the database (or if the equip manager has a script command, you might use that in eventing to change the body armor, but that won't allow the player to change it).
If you want any case where the player can access the item for any actor and any reason, it'll be more complex to do compared to a general removing from display and equip screens. -
Yes, completely so that the armor can only be changed via eventing or other non-menu means. I'd also like it to still be visible in the status menu. : )One question:
Do you want to hide it completely, or should there be cases where the player can still access it?
If you simply want to hide the original body slot, you can do that by removing the line from display and equipping - but then the player can only have the armor assigned as starting gear in the database (or if the equip manager has a script command, you might use that in eventing to change the body armor, but that won't allow the player to change it).
If you want any case where the player can access the item for any actor and any reason, it'll be more complex to do compared to a general removing from display and equip screens. -
I think you want to skip equip_slot 3 correct? Try this:
That should do it. This should be placed right below Ace Equip Engine for maximum compatibility.Spoilerclass Window_EquipSlot < Window_Selectable # CHANGE THIS ID TO THE SLOT TO HIDE BodyArmorIndex = 3 #################################### def item_rect(index) index -= 1 if index > BodyArmorIndex super(index) end def index=(index) n = @index < index ? 1 : -1 index += n if index == BodyArmorIndex super(index) end def draw_all_items item_max.times {|i| next if i == BodyArmorIndex; draw_item(i) } endend -
Oh, that's fantastic! Thank you so much! <3
-
No problem :) If you have anything else pertaining to this scriptlet in the future, just PM me and we'll sort it out.