Thread: Tracker Problem
View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old October 8th, 2015, 10:29 AM
Quote:
Originally Posted by lorddtk View Post
I have used the last couple of day solve the same problem with an amulet I have created. But I only want it to be show in in-play track when it is equipped, because we play quite long campaigns and over time we get at lot of stuff, and it would be nice to hide some of it without removing it for our characters.

I have writed this scipt:

if (field[gIsEquip].value = 0) then
hero.child[User].add[Hide.Tracker]
endif

in the eval script erea, but I wont compile. Can anyone help me out?

I am new to this part of HL and have difficulties to find out the syntax and get an overview. Is it possible to get the scripting areas to show you the options of choice while you type, like in the CC+ programming tools?
So the "Thing ID" of your tracker is "User"? That seems really strange id but if that is true then you need "perform" the option of "assigning" or "deleting" tags.

Code:
~ If not equipped then hide our tracker
if (field[gIsEquip].value = 0) then
   perform hero.child[User].assign[Hide.Tracker]
endif
If "User" is not the Unique ID of your tracker Thing then replace "User" with that Unique ID.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #9 Reply With Quote