So I need to check which weapon and armour are equipped and previously I was given this script:
$gameActors.actor(1).equips(1)[0].id === 42
But it said it can't read property "id" of null
But TBH it's not really the script I want anymore
I was to use the variable command and set the variable to the id of the armour equipped
However, because the game has hats, tops, leggings and boots how can I check for a specific hat equipped because 4 armour would be equipped at once right? so it can't set the variable to 4 different types of armour
Anyone know a script to change a variable to the ID of a specific type of armour equipped by a specific actor?
$gameActors.actor(1).equips(1)[0].id === 42
But it said it can't read property "id" of null
But TBH it's not really the script I want anymore
I was to use the variable command and set the variable to the id of the armour equipped
However, because the game has hats, tops, leggings and boots how can I check for a specific hat equipped because 4 armour would be equipped at once right? so it can't set the variable to 4 different types of armour
Anyone know a script to change a variable to the ID of a specific type of armour equipped by a specific actor?