Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Eval Scripts (http://forums.wolflair.com/showthread.php?t=14078)

LordValerius October 1st, 2011 06:00 AM

Eval Scripts
 
Hello all...
Having a small issue that I am sure I am just missing something...

Creating a Magic Item in the editor and it will be applying a +1 Luck bonus to all saves.

I have that part down and the bonus applies correctly, however, I have the item set to only apply the bonus when worn, not carried, so I have Available when Equipped? checked and Powers always Available? unchecked but it still seems to apply the bonuses as soon as the item hits the inventory, and remains active when checked to equip the item. Not really a big deal but I am kind of anal like that. Is it a setting I've missed? Is it a timing issue? (Not real good with those yet...)

Any help would be gratefully appreciated.

Thanks!

Val

Kendall-DM October 1st, 2011 06:23 AM

Put this at the top of your script and it will solve the problem.

doneif (field[gIsEquip].value = 0)

Scripts are not part of the powers are available only when equipped, only bootstrapped things and charges. For scripts, you have to include code to achieve that.

LordValerius October 1st, 2011 07:31 AM

Thanks!
 
Thank you very much for the code and the instruction!

Val


All times are GMT -8. The time now is 05:21 AM.

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