View Single Post
Lord Magus
Senior Member
 
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 415

Old January 15th, 2022, 08:12 AM
Quote:
Originally Posted by Senko View Post
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.

Last edited by Lord Magus; January 21st, 2022 at 04:16 AM. Reason: Clarification if somebody else stumbles upon explanation
Lord Magus is offline   #2 Reply With Quote