Would it be possible to make task restrictions based on any object with a given property? For example I have a property "Worn on" that applies to wearable objects that allows the player to choose a static item from a list that is a body part. Then I have several objects with the "Worn on" property set to the body part "head". What I would like to do is have a restriction that a player isn’t wearing any object with "Worn on" property set to the body part "head". This way when a player tries to wear an item I can check to make sure that an item isn’t all ready worn in that slot.
Alternatively you may want to consider enabling restrictions based on group membership. IE player is carrying an object that's a member of group 'light source' or wearing an object that's a member of group 'helmet'