def equip(equip_type, id)
case equip_type
when 0
[...]
when 1
if id == 0 or $game_party.armor_number(id) > 0
update_auto_state($data_armors[@armor1_id], $data_armors[id])
$game_party.gain_armor(@armor1_id, 1)
@armor1_id = id
$game_party.lose_armor(id, 1)
end
actor = $game_actors[1]
case @armor1_id # database ID of armor equipped
when 2
actor.set_graphic("Armor-02", character_hue, battler_name, battler_hue)
$game_player.refresh
when 3
actor.set_graphic("Armor-03", character_hue, battler_name, battler_hue)
$game_player.refresh
when 4
[...]
else # if no armor is equipped
actor.set_graphic("Armor-01", character_hue, battler_name, battler_hue)
$game_player.refresh # this is for directly changing the armor after equipped so you won't see that change on the map
end
when 2
[...]
end
end