Is there a script to record Actor's Equiped items

Something along the lines of:

$game_temp.Actor ID_Equipmentslot Name_weapon/Armor ID

would be nice, so I can set variables for X equipment a Actor has equiped, there wouldn't be a script formula to that effect, would there be?
To store the ID of one of the equipped weapons/armor you'd want to use something along the lines of the following:

if $game_actors[1].equips[0] != nil $game_variables[1] = $games_actors[1].equips[0].idendThis can also be used to fetch the name or description of the equipment, just replace .id with .name etc.Replace the actors number as appropriate and the equips are ordered as follows:

0: Weapon

1: Shield

2: Head

3: Body

4: Accessory

If you want to store everything the actor has equipped it would be a simple matter of using a loop.

Hope this helps.
To store the ID of one of the equipped weapons/armor you'd want to use something along the lines of the following:

if $game_actors[1].equips[0] != nil $game_variables[1] = $games_actors[1].equips[0].idendThis can also be used to fetch the name or description of the equipment, just replace .id with .name etc.Replace the actors number as appropriate and the equips are ordered as follows:

0: Weapon

1: Shield

2: Head

3: Body

4: Accessory

If you want to store everything the actor has equipped it would be a simple matter of using a loop.

Hope this helps.

Wasn't originally what I was looking for, but considering I just realized the editor doesn't let you add.or change items/equipment completely based on a variable(evidently in the editor, It's strictly for keeping track of how much of a specific item is "in" inventory/doing calcs based on such) so I am gonna need to script the whole feature revolving around such events from scratch, this is what I'm gonna need, thanks.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-script-to-record-actors-equiped-items.25195/