I know this was covered already http://forums.rpgmakerweb.com/index.php?/topic/41579-equip-engine-problem/?hl=%2Bequip+%2Btype#entry412099
but it doesn't quite cover the problem I'm having.
Using Fomar0153's Additional Equipment script, I tried to add addition equipment slots *gasp* . I'd link to it, but I don't entirely remember where I got it from. So I pasted the entire thing [with my additions] to the bottom. I tried to add the types "Gloves", "Pants", and "Boots", but they all end up in the wrong equipment slots. (View pictures below). How do I fix this? I somehow managed to get this to work before, but for some reason can't do it again. I think it was just pure luck that I got it to work last time... I can get the slots to be named correctly, that's the easy part. I just can't get the armors to be assigned to the right slot.
Also, is there a way I can add more Equipment Types as well? I feel that would make this easier...
The script:
=begin
Custom Equipment Slots Script
by Fomar0153
Version 1.2
----------------------
Notes
----------------------
No requirements
Allows you to customise what equipment characters can equip
e.g. add new slots or increase the number of accessories.
----------------------
Instructions
----------------------
You will need to edit the script in two locations both are near
the top of the script look for:
Slots[7] = "Spell Tomes"
return [0,0,2,3,4,4,4,7] if dual_wield?
and follow the instructions where they are.
----------------------
Changle Log
----------------------
1.0 -> 1.1 : Fixed a bug that caused a crash when equipping a weapon.
1.1 -> 1.2 : Fixed a bug with optimisation and remove all
Increased compatibility
----------------------
Known bugs
----------------------
None
=end
#--------------------------------------------------------------------------
# ? New Module Extra_Slots
#--------------------------------------------------------------------------
module Extra_Slots
Slots = []
# Edit here to add new slot types
# Slots[armour_type_id] = "name"
# I know it is named in the database but I don't believe you can access
# that name through Vocab
Slots[5] = "Gloves"
Slots[6] = "Pants"
Slots[7] = "Boots"
end
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# ? Rewrites equip_slots
#--------------------------------------------------------------------------
# Edit here to change what slots are available to your characters
# 0 - Weapon
# 1 - Shield
# 2 - Head
# 3 - Body
# 4 - Accessory
# 5+ a custom slot
def equip_slots
return [0,0,2,3,5,6,7,4]
end
end
class Window_EquipSlot < Window_Selectable
#--------------------------------------------------------------------------
# ? Rewrites slot_name
#--------------------------------------------------------------------------
def slot_name(index)
if @actor.equip_slots[index] >= 5
Extra_Slots::Slots[@actor.equip_slots[index]]
else
@actor ? Vocab::etype(@actor.equip_slots[index]) : "Test?"
end
end
end
class Scene_Equip < Scene_MenuBase
#--------------------------------------------------------------------------
# ? Aliases create_slot_window
#--------------------------------------------------------------------------
alias custom_slots_create_slot_window create_slot_window
def create_slot_window
custom_slots_create_slot_window
@slot_window.create_contents
@slot_window.refresh
end
#--------------------------------------------------------------------------
# ? Aliases on_actor_change
#--------------------------------------------------------------------------
alias custom_slots_on_actor_change on_actor_change
def on_actor_change
custom_slots_on_actor_change
@slot_window.create_contents
@slot_window.refresh
end
end
module RPG
class Armor
#--------------------------------------------------------------------------
# ? I wish I'd done this originally.
#--------------------------------------------------------------------------
def etype_id
if Extra_Slots::Slots[self.atype_id] == false
return @etype_id
else
return self.atype_id
end
end
end
end
the pictures:
http://i.imgur.com/Dx1RfNE.png
http://i.imgur.com/W27HGVf.png
http://i.imgur.com/r95QMBl.png
http://i.imgur.com/SeFxQlt.png
http://i.imgur.com/BNDsmGw.png
http://i.imgur.com/GEt09FS.png
but it doesn't quite cover the problem I'm having.
Using Fomar0153's Additional Equipment script, I tried to add addition equipment slots *gasp* . I'd link to it, but I don't entirely remember where I got it from. So I pasted the entire thing [with my additions] to the bottom. I tried to add the types "Gloves", "Pants", and "Boots", but they all end up in the wrong equipment slots. (View pictures below). How do I fix this? I somehow managed to get this to work before, but for some reason can't do it again. I think it was just pure luck that I got it to work last time... I can get the slots to be named correctly, that's the easy part. I just can't get the armors to be assigned to the right slot.
Also, is there a way I can add more Equipment Types as well? I feel that would make this easier...
The script:
=begin
Custom Equipment Slots Script
by Fomar0153
Version 1.2
----------------------
Notes
----------------------
No requirements
Allows you to customise what equipment characters can equip
e.g. add new slots or increase the number of accessories.
----------------------
Instructions
----------------------
You will need to edit the script in two locations both are near
the top of the script look for:
Slots[7] = "Spell Tomes"
return [0,0,2,3,4,4,4,7] if dual_wield?
and follow the instructions where they are.
----------------------
Changle Log
----------------------
1.0 -> 1.1 : Fixed a bug that caused a crash when equipping a weapon.
1.1 -> 1.2 : Fixed a bug with optimisation and remove all
Increased compatibility
----------------------
Known bugs
----------------------
None
=end
#--------------------------------------------------------------------------
# ? New Module Extra_Slots
#--------------------------------------------------------------------------
module Extra_Slots
Slots = []
# Edit here to add new slot types
# Slots[armour_type_id] = "name"
# I know it is named in the database but I don't believe you can access
# that name through Vocab
Slots[5] = "Gloves"
Slots[6] = "Pants"
Slots[7] = "Boots"
end
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# ? Rewrites equip_slots
#--------------------------------------------------------------------------
# Edit here to change what slots are available to your characters
# 0 - Weapon
# 1 - Shield
# 2 - Head
# 3 - Body
# 4 - Accessory
# 5+ a custom slot
def equip_slots
return [0,0,2,3,5,6,7,4]
end
end
class Window_EquipSlot < Window_Selectable
#--------------------------------------------------------------------------
# ? Rewrites slot_name
#--------------------------------------------------------------------------
def slot_name(index)
if @actor.equip_slots[index] >= 5
Extra_Slots::Slots[@actor.equip_slots[index]]
else
@actor ? Vocab::etype(@actor.equip_slots[index]) : "Test?"
end
end
end
class Scene_Equip < Scene_MenuBase
#--------------------------------------------------------------------------
# ? Aliases create_slot_window
#--------------------------------------------------------------------------
alias custom_slots_create_slot_window create_slot_window
def create_slot_window
custom_slots_create_slot_window
@slot_window.create_contents
@slot_window.refresh
end
#--------------------------------------------------------------------------
# ? Aliases on_actor_change
#--------------------------------------------------------------------------
alias custom_slots_on_actor_change on_actor_change
def on_actor_change
custom_slots_on_actor_change
@slot_window.create_contents
@slot_window.refresh
end
end
module RPG
class Armor
#--------------------------------------------------------------------------
# ? I wish I'd done this originally.
#--------------------------------------------------------------------------
def etype_id
if Extra_Slots::Slots[self.atype_id] == false
return @etype_id
else
return self.atype_id
end
end
end
end
the pictures:
http://i.imgur.com/Dx1RfNE.png
http://i.imgur.com/W27HGVf.png
http://i.imgur.com/r95QMBl.png
http://i.imgur.com/SeFxQlt.png
http://i.imgur.com/BNDsmGw.png
http://i.imgur.com/GEt09FS.png