Senior Member
Join Date: Feb 2017
Posts: 119
|
I spend so much time on the In-Play tab and view it as combat central (along with Adjust and Condition and Spells). The Tracked Resources & Abilities bothers me a little bit because it is so cluttered. I really only want to see things like limited use abilities, charges for items with charges (ie Wands) and ammo. Everything else like attunement 1/day, or the occult skill unlocks, or consumable items (torches, trail rations, etc) just clutter up the screen when I'm trying to manage resources in combat.
I already had a mechanic override for ABP, so I added a couple of lines to remove the trackers from armor and weapon attunement. I just created a new mechanic to remove trackers from all of the occult skill unlocks. But the script for gear is a little bit different. Looking at an item that shows up that I don't want to (Magnetized Paper), I don't see the usual User.Tracker that shows up on feats and abilities. I thought maybe ShowInTabl.ipTracker might have been it, but my script doesn't seem to be working to remove that. Without having to edit every piece of gear, any suggestions on how to quickly do that programmatically? |
#1 |
Senior Member
Join Date: May 2015
Posts: 830
|
Also try removing component.Tracker
|
#2 |
Senior Member
Join Date: Feb 2017
Posts: 119
|
I ended up figuring it out. I believe I've accounted for most exceptions and for things that have charges. I'll post the script later when I have time.
I removed Helper.UsesQty to get rid of the tracker, but first did a check to see if stackQty = trkMax (meaning the thing doesn't have charges and is single use item). |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I would recommend looking at my adjustments for example. In this case "Equipment, Remove Tracker" would have given you all the info you needed.
Thats a link to the adjustment source on github. But yes two different tags have to be removed. 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. |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Scripts can't remove a component. Just FYI.
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. |
#5 |
Senior Member
Join Date: Feb 2017
Posts: 119
|
Lol, I've even used that adjustment to remove the tracker from daggers. Sometimes I get tied up in what I'm doing and forget to use ALL of my resources.
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Just wanted to mention as adjustments are a good way to get script examples. 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. |
|
#7 |
Senior Member
Join Date: Feb 2017
Posts: 119
|
Here's what I have. This is a mechanic that runs at Render/10000:
Code:
~ Find all equipment that doesn't have charges except armor and weapons foreach pick in hero from BaseEquip where "!component.BaseArmor & !component.BaseWep & !gType.Wand & !gType.Rod & GearVlSort.LimitedUse & Helper.UsesQty" If (eachpick.field[trkMax].value = eachpick.field[stackQty].value) Then perform eachpick.delete[Helper.UsesQty] EndIf nexteach |
#8 |
Senior Member
Join Date: Jan 2015
Posts: 463
|
It would be awesome if this was added as a checkbox in the "Configure Hero" options.
|
#9 |
Senior Member
Join Date: Feb 2017
Posts: 119
|
I did that for my group's homebrew files, but agreed that it would be great if this was a native option.
|
#10 |
|
|