Hi all!
I have a weapon that can't be worn over gloves, so I'd like to prevent wielding it if the actor has gloves on.
I feel like I'm close -- I have a plugin that permits me to run common events on wield, and they work perfectly. So I'm using the following to check if gloves are worn:
I know this works from testing elsewhere, and the [5] is correct to the gloves slot.
But once I check for that in a Conditional Branch, well, that's where I'm stuck. The hacky thing to do would be to force an unequip of the weapon if the gloves check comes back positive. But that's a very wonky solution since we will hear the equip and unequip sounds, and besides, I'm not sure how to script the unequip at the moment.
I feel like there must be a solution to this that simply prevents the wield in the first place if this slot of equipment is populated.
Any thoughts or nudges would be super appreciated as always, you folks are the best
I have a weapon that can't be worn over gloves, so I'd like to prevent wielding it if the actor has gloves on.
I feel like I'm close -- I have a plugin that permits me to run common events on wield, and they work perfectly. So I'm using the following to check if gloves are worn:
Code:
!!$gameActors.actor(1).equips()[5]
I know this works from testing elsewhere, and the [5] is correct to the gloves slot.
But once I check for that in a Conditional Branch, well, that's where I'm stuck. The hacky thing to do would be to force an unequip of the weapon if the gloves check comes back positive. But that's a very wonky solution since we will hear the equip and unequip sounds, and besides, I'm not sure how to script the unequip at the moment.
I feel like there must be a solution to this that simply prevents the wield in the first place if this slot of equipment is populated.
Any thoughts or nudges would be super appreciated as always, you folks are the best
