• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Anyone able to see what's wrong with this script?

Senko

Well-known member
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.
 
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:
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:
Back
Top