Hi folks,
I have two equipment slots in my game with the same name (ring), which both accept the same armor type (ring).
I have an item that, on death, if equipped, will break. I need to somehow check both these "ring" slots (slots 8 and 9) for this item, and if it is equipped, unequip it so I can use "change armor" to remove one from the player inventory.
The problem is that, with the usual event commands, all I seem to be able to do is check whether the player has it equipped at all, but then when it comes to removing it, I can't check which of the two ring slots it is equipped to so I can remove it. The closest I seem to be able to do is set the equipped item in both ring slots to "none", but I can't determine which of the two has the ring equipped and just remove that one.
Is there some kind of script call that will let me check if a specific slot ID has a specific equipment ID equipped? That, or any alternative method for unequipping a specific armor from one of multiple potential slots.
Something like:
Thanks!
I have two equipment slots in my game with the same name (ring), which both accept the same armor type (ring).
I have an item that, on death, if equipped, will break. I need to somehow check both these "ring" slots (slots 8 and 9) for this item, and if it is equipped, unequip it so I can use "change armor" to remove one from the player inventory.
The problem is that, with the usual event commands, all I seem to be able to do is check whether the player has it equipped at all, but then when it comes to removing it, I can't check which of the two ring slots it is equipped to so I can remove it. The closest I seem to be able to do is set the equipped item in both ring slots to "none", but I can't determine which of the two has the ring equipped and just remove that one.
Is there some kind of script call that will let me check if a specific slot ID has a specific equipment ID equipped? That, or any alternative method for unequipping a specific armor from one of multiple potential slots.
Something like:
Code:
if slot 8 = $dataWeapons[1] {
$gameActors.actor(1).changeEquip(8, $dataArmors[0]);
} else
if slot 9 = $dataWeapons[1] {
$gameActors.actor(1).changeEquip(9, $dataArmors[0]);
}
Thanks!