- adrift Code: Select all
if(Item.WornByWho = %Player%, 5, 0)
It works somewhat in that before the player wears the item, the value would would not increase as intended. When the item is worn, the value increases - again as intended. The issue is that if the item is removed, the value would still increase because the item still identifies itself as being worn by the player.
Essentially it produces as follows...
Item.WornByWho = Player Before wearing item (good)
Player = Player While wearing item (good)
Player = Player After wearing item (Not intended)
Is there a different way I should be checking this? Or is there something about the item functions that I'm not getting? I'm trying to avoid bloating up tasks with restrictions, in hopes of having a single task with multiple actions.