• 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

Tracker Problem

AndrewD2

Well-known member
I'm bootstrapping a tracker to a magic item, but I only want it to show up on the in play tab under a specific circumstance. So I uncheck the "Show on Tracked Resources?" box and set a script that will assign User.Tracker if a specific condition is met. The catch is no matter what the tracker still shows on the tab.

Any ideas?
 
Things created on the tracker tab don't test User.Tracker - they always show. Unlike other abilities that may or may not need a tracker, if you're creating it on the Tracker tab, you know you want it to be a tracker, so there's not really a need to add another tag that confirms that.

Hide.Tracker can be assigned to hide them.
 
Ah ok, I was confused because it gives you an option to not show up. I will try the Hide.Tracker tag, thank you Mathias
 
I'll put this on the to-do list. The description for the "Show as Tracker?" option on the tracker tab doesn't match the way things actually work.
 
Use ShadowChemosh's suggestion of a helper ability with a different name. There are already too many name fields, and I already know we need yet another one for statblocks.
 
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 equipted, 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 removeing it for our charactors.

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?
 
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.
 
I have located the difference between getting it showed in the tracked Resources & Abilities. When I tick the "show in Tracked Resources List?" in the HL Editor get and extra Tag in my "tag list" where the values are Group ID: User and Tag Id: Tracker.
But when I use that option the amulet is shown in tracked Resources & Abilities all the time. I would like to be able to manipulate that option when i equip the amulet.

So the Script should help me but I don't know where to assign the "tag"

if (field[gIsEquip].value <> 0) then
assign[User.Tracker]
endif

When I compile I get this masage:

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'io_JST_w3' (Eval Script '#1') on line 2
-> Unspecified error parsing script

When I got the hero lab and ask for "Show debug Tags for "Amulet of....."

I find this line when it is shown in the "tracked Resources & Abilities"

Group Name Tag name Tag Id
User Modern Action points User.Tracker

and that line is missing when I remove the tick in "show in Tracked Resources List?" that line dissapear. What should I write in line 2?
 
Last edited:
ShadowChemosh your answer did help me on some way:

This script worked:

if (field[gIsEquip].value <> 0) then
perform assign[User.Tracker]
endif

but showed the amulet in the list when is was NOT equiped. That I fixed easy by changing the "<>" to a "=".

But then I tried to use a "charge on the amulet" (it got three every day) and then it dissapered from the list. If I then unequiped the amulet and put in on again it was back on the list and where was used a charge. But it would be nice if it stayed on the list as long it was equiped. It also disapear from the list when I rest the charge counter.

Any ideas?
 
But then I tried to use a "charge on the amulet" (it got three every day) and then it dissapered from the list. If I then unequiped the amulet and put in on again it was back on the list and where was used a charge. But it would be nice if it stayed on the list as long it was equiped. It also disapear from the list when I rest the charge counter.
Your timing is WAY too early. Change your script to like Pre-Levels/10000 instead of the default First/100.
 
Well I got it to work now.
This is the result.
~Only shows item in tracked resources when equiped.
if (field[gIsEquip].value <> 0) then
perform assign[User.Tracker]
endif

Funny thing is now I cant recreate the problem where the item disapeared from the tracked list every time I used a charge.... Guess that is the way programing works :)

But thanks for the help guys :)
 
Back
Top