I want to make it so actors start with random equipment. I'm using Yanfly's Ace Equip Engine. It has a starting gear notetag but that only works on armor and it doesn't allow for variable IDs.
I tried using a script call to add the armor to the inventory:
$game_party.gain_item($data_armors[$game_variables[14]], 1)
Then a call to equip the new actor with it:
$game_party.members[3].change_equip_by_id(1, $game_variables[14])
This works fine on certain actors, but not all of the actors are going to have the same equip slots. And if the equipment can't be equipped to the exact slot number in the call, it will simply vanish. So unless there's a call function to make the equipment automatically go to a usable slot, using a script call to change their equipment won't work either.
I tried using a script call to add the armor to the inventory:
$game_party.gain_item($data_armors[$game_variables[14]], 1)
Then a call to equip the new actor with it:
$game_party.members[3].change_equip_by_id(1, $game_variables[14])
This works fine on certain actors, but not all of the actors are going to have the same equip slots. And if the equipment can't be equipped to the exact slot number in the call, it will simply vanish. So unless there's a call function to make the equipment automatically go to a usable slot, using a script call to change their equipment won't work either.