1 script command to remove it from the party, coming up!
CODE
#==============================================================================
# ** XP: NR's Lose Equipment Script
#------------------------------------------------------------------------------
# History:
# Date Created: 4/July/2012
# Created for: Redd
# @> http://www.rpgrevolution.com/forums/index.php?showtopic=56973
#
# Description:
# Have a event run the scripted command:
# $game_party.actors[123].lose_equip(0)
# to have the 123rd member of the party enequip their weapon (
# 0 => Weapon
# 1 => Shield
# 2 => Head
# 3 => Body
# 4 => Accessory
# ), and to have that weapon removed from the party.
#
#==============================================================================
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
# Edited to lose their equipment.
#==============================================================================
class Game_Actor
#--------------------------------------------------------------------------
# * Lose Equipment
# equip_type : type of equipment
#--------------------------------------------------------------------------
def lose_equip(equip_type)
when 0 # Weapon
# Backup the id
last_weapon_id = @weapon_id
# Unequip
equip(equip_type, 0)
# Remove from the party
$game_party.lose_weapon(last_weapon_id, 1)
return
when 1, 2, 3, 4 # Shield, Head, Body, Accessory
# Backup the id
last_equipment_id = eval("@armor#{equip_type}_id")
# Unequip
equip(equip_type, 0)
# Remove from the party
$game_party.lose_armor(last_equipment_id, 1)
else
# If its invalid, raise an alert
raise("#{equip_type} is not a valid equipment type ID")
end
end
end
#==============================================================================
# ** End of Script
#==============================================================================