Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Anyone able to see what's wrong with this script? (http://forums.wolflair.com/showthread.php?t=66680)

Senko January 14th, 2022 07:46 PM

Anyone able to see what's wrong with this script?
 
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.

Lord Magus January 15th, 2022 07:12 AM

Quote:

Originally Posted by Senko (Post 297970)
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.

Senko January 21st, 2022 01:12 AM

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.


All times are GMT -8. The time now is 02:36 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.