Snippet of code to equip a specific armor

What's the script line to equip a given armor to a given character (for instance armor ID 12 to actor ID 3)?
Code:
$game_actors[your_actor].change_equip(slot_id, item)
"your_actor" is the id of your actor, "slot_id" is the slot id, "item" is the item you want to equip. It can be one of the following:
Code:
$data_armors[id]
$data_weapons[id]
depending on what kind of item you want to equip.
Thank you, the "shield" has which slot_id, 1 or 0?

EDIT:
I used the following command and it gave me an error message:
$game_actors[2].equip_item(1, $data_armors[51])

error.jpg


Both actor 2 and armor 51 were available.
Sorry, I just checked and it looks like my memory was failing me: the method is change_equip (same arguments). I will correct that in my first post as well. By the way, "shield" is slot 1, slot 0 is your weapon.
$game_actors[2].change_equip(1, $data_armors[51])

does work. Thank you very much. :ninja:👍

Original thread: https://forums.rpgmakerweb.com/threads/snippet-of-code-to-equip-a-specific-armor.111622/