When equipping characters there is always the empty option at the very bottom of your equipments that allows you to equip "nothing" to that slot. Instead of this selection being just an invisible blank box does anyone know of a way to make it read "None"? I would love this since I use the script that changes the character appearance based on their equipment, and having nothing equipped is an option and necessary at times in my game. I feel it would be more intuitive for the player to find "None" in their inventory vs just moving the cursor to a space that doesn't visually exist.
Making an empty equipment slot read "None"
RPG Maker VXAce SupportTry this in a new slot:
I haven't tested this.
Code:
class Window_EquipItem < Window_ItemList
#--------------------------------------------------------------------------
# * Draw Item
#--------------------------------------------------------------------------
def draw_item(index)
item = @data[index]
rect = item_rect(index)
rect.width -= 4
if item
draw_item_name(item, rect.x, rect.y, enable?(item))
draw_item_number(rect, item)
else
change_color(normal_color, enabled)
draw_text(rect.x + 24, rect.y, 172, line_height, 'None')
end
end
end
I haven't tested this.
That didn't quite work out, I received the following error
Script None line 13: NameError occurred.
undefined local variable or method 'enabled' for
#<Window_EquipItem:0x21362e34>
I changed line 13 to
change_color(normal_color)
and then it worked perfectly!
Thanks for the script, this can be closed now.
@dubiousdeeds When you want a thread closed, please Report your opening post and ask for it to be closed. Mods may not see an individual post but will see a Report.
Thanks.
Thread closed IgnoreMe
Thanks.
Thread closed IgnoreMe
Original thread: https://forums.rpgmakerweb.com/threads/making-an-empty-equipment-slot-read-none.91845/