• 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

Trying to suppess bootstraps of a wonderous item

jkthomsen9

Well-known member
I have created an item that gives you swim speed of 30'. Bootstrap xSwim Value 30. I want to suppress this if the item is not equiped. I tryed the script

if (field[gIsEquip].value = 0) then
result = assign[Helper.Suppress]
endif

in pre levels user 5000


but I get an error. Whay am I missing
 
I have no idea what that suppress tag does. It may be some obsolete code from early on in the life of the d20 files.

Don't assign a Value tag to swim when you bootstrap it.

Here's the script to assign that value if it's equipped:

Code:
if (field[gIsEquip].value <> 0) then
  perform hero.childfound[xSwim].assign[Value.30]
  endif

Swim is already set up to hide itself unless it has a Value tag (or abValue field).
 
Back
Top