Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,243
|
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. |
#2 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,243
|
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.
|
#4 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
What about changing the name that is displayed for the tracker?
|
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,243
|
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.
|
#6 |
Junior Member
Join Date: Apr 2013
Posts: 10
|
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? |
#7 |
Senior Member
Join Date: Aug 2011
Posts: 363
|
what is the error message when compiling?
|
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
~ If not equipped then hide our tracker if (field[gIsEquip].value = 0) then perform hero.child[User].assign[Hide.Tracker] endif 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. |
|
#9 |
Junior Member
Join Date: Apr 2013
Posts: 10
|
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 by lorddtk; October 9th, 2015 at 02:12 AM. Reason: To quick to press send |
#10 |
|
|