Equip Item using Script Call?

Hi! I just wondered if it was possible to equip an item using a script call?

If so, how?
change the text dialog background:

$game_message.background = 1 #0 = default blue, 1 = dim, 2 = transparent
Equip weapon

$game_actors[1].change_equip(0,$data_weapons[1])the 0 value in the above code snippet can have the following values:

0 = weapon

1 = shield

2 = headgear

3 = body-gear (armor)

4 = accessory

Transfer player

$game_player.reserve_transfer(map_id, x, y, $game_player.direction)
 This is what you are looking for. If you read this post http://forums.rpgmakerweb.com/index.php?/topic/6248-script-call-equivalent-of-events/

it's full of all sorts of script calls for use inside events.
Code:
  #--------------------------------------------------------------------------  # * Change Equipment (Specify with ID)  #     slot_id:  Equipment slot ID  #     item_id:  Weapons/armor ID  #--------------------------------------------------------------------------  def change_equip_by_id(slot_id, item_id)    if equip_slots[slot_id] == 0      change_equip(slot_id, $data_weapons[item_id])    else      change_equip(slot_id, $data_armors[item_id])    end  end
So to change actor 5's weapon to weapon 8, you'd use:
Code:
$game_actors[5].change_equip_by_id(0, 8)
since the weapon is slot 0.
I believe the item you are trying to equip must be in the party inventory when you do it. So like, if you are trying to give your actor a NEW item and have them equip it right away, first have the party gain the item, then have the actor equip it.

Original thread: https://forums.rpgmakerweb.com/threads/equip-item-using-script-call.15937/