#--------------------------------------------------------------------------
# ● 变更装备
#--------------------------------------------------------------------------
def command_319
# 获取角色
actor = $game_actors[@parameters[0]]
# 变更角色
if actor != nil
if @parameters[1] == 0
n = $game_party.weapon_number(@parameters[2])
$game_party.gain_weapon(@parameters[2], 1) if n == 0
else
n = $game_party.armor_number(@parameters[2])
$game_party.gain_armor(@parameters[2], 1) if n == 0
end
actor.equip(@parameters[1], @parameters[2])
end
# 继续
return true
end
#--------------------------------------------------------------------------
# ● 变更装备
#--------------------------------------------------------------------------
def command_319
# 获取角色
actor = $game_actors[@parameters[0]]
# 变更角色
if actor != nil
if @parameters[1] == 0
n = $game_party.weapon_number(@parameters[2])
$game_party.gain_weapon(@parameters[2], 1) if n == 0
else
n = $game_party.armor_number(@parameters[2])
$game_party.gain_armor(@parameters[2], 1) if n == 0
end
actor.equip(@parameters[1], @parameters[2])
end
# 继续
return true
end