Senior Member
Join Date: Jan 2014
Posts: 262
|
I recently got a mundane robe (hides magic auras) and it keeps generating the following error message . . .
attemp to access field 'pIsOn' that does not exist for the thing 'ioGRMundRb' Location 'eval' script for Thing 'ioGRMundRb' (Eval Script '#1)' near line 2 I took a look at the actual eval script doneif (field[pIsOn].value = 0) #situational[hero.child[skStealth],"+5 competene to hide by blending into crowd",field[name].text] The error message makes me think its issue lies with the doneif (field[pIsOn].value = 0 but I can't see why this would be an issue. It occurs at pre-levels priority 4000 index 1. |
#1 |
Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 464
|
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 03:16 AM. Reason: Clarification if somebody else stumbles upon explanation |
#2 |
Senior Member
Join Date: Jan 2014
Posts: 262
|
Thanks.
This isn't mine the mundane robe is in the programming under ioGRMundRb. May have come from community resources or some other pack I downloaded as there's no source book listed for it and google doesn't find it hence why I assumed the script was correct. EDIT That fixed it thanks. Last edited by Senko; January 23rd, 2022 at 01:27 AM. |
#3 |
|
|