Quote:
Originally Posted by Senko
doneif (field[pIsOn].value = 0)
|
I'm guessing you lifted your script from an adjustment, because the field pIsOn is mostly used to validate if an adjustment is checked or not.
For a magic item that needs to be equipped to be usable, you would use
doneif (field[gIsEquip].value = 0)
This expression ends the script (thus making it do nothing) if the item is not equipped.