View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old July 22nd, 2017, 09:25 AM
You'll need two different "we're equipped" fields - one is a user field, and is the one actually changed by the user - grUsrEquip is the Id I would use.

The second is a derived field (keep using grIsEquip for this, to minimize the number of other scripts that need to be changed) - in an early script, just before any bootstrap conditions that are looking for whether something is equipped, that field sets its value - usually, it just equals the user field, but in various circumstances, it sets a different value.

In cases like this, where you're allowing a script to control whether an item is equipped, you should hide or disable the equip checkbox on that item - otherwise, the user will try equipping and un-equipping the item, and not see anything change.
Mathias is offline   #2 Reply With Quote