Senior Member
Join Date: Dec 2013
Posts: 106
|
I am trying to understand how the AddReq condition tag works.
I've been trying to understand it by looking at the Lightning Reload gunslinger deed, but can't seem to get it to work. I have literally copied the Grit tracker and renamed it to my custom resource, and have copied the lightning reload gunslinger deed, substituting my custom resource tracker for the existing Grit tracker, but I get this error when I try to compile. Code:
Hero Lab was forced to stop compilation after the following errors were detected: File: Linchpin.user (line 396) - Thing 'cLinLigRel' (dynamic tag) - Tag 'Focus' not defined |
#1 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
Mind posting the file or scripts? Looks like you are missing a string like such:
perform hero.findchild[COMPONENT TAG].setfocus I was going to look up the code myself, but my main machine isn't using my larger library code atm. Thus I can not pull up the deed at this time. If I get to it before you see this I will try to post a remedy to your issue. Forum link for my content work: Pathfinder Thread Forum link for SU 5e content work: 5e Steven Universe Thread This link is for my group, but feel free to play it with: DMM 5e | "https://www.dropbox.com/s/vsd9w1eodlnwjq0/updatesDMM.xml?dl=1" Copy this link to your update manager to get updates when available. This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race. Please post comments in the provided threads above. |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
I'd look for a typo in your code, shortly after wherever you're making use of a focus - on the same line.
|
#3 |
Senior Member
Join Date: Dec 2013
Posts: 106
|
On the General tab, I went to Tracker and copied the Grit tracker, renamed it Focus and then saved and compiled.
>> This item only has 2 Tags: Group Id Usage Type Id Day Group Id User Type Id Tracker From there I went to the Class tab, then to Class Special where I then copied the Gunslinger Deed Lightning Reload, this special has 3 tags: Group Id AbilType Type Id Extra Group Id AddReq Type Id Focus Group Id AbCategory Type Id LinTech I also have the Focus special which has the following tags ((Have to do the screenshot as a link as I can't get the image code to work right)) It also has the trkFocus bootstrapped to it. Last edited by direinsomniac; October 31st, 2017 at 08:04 AM. |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
AddReq works by triggering scripts that are behind the scenes, so you cannot add new ones and expect them to magically work without writing a script to handle them, and as it says in that message, that tag is not defined, because this is a tag group that you are not allowed to define new items for (without access to the core files).
|
#5 |
Senior Member
Join Date: Dec 2013
Posts: 106
|
And I assume as an end user I don't have those kinds of access. So is there a script that I could use to perform the same function as the AddReq tag?
|
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
All AddReq does is assign Helper.SpcDisable if the conditions aren't met.
|
#7 |
Thread Tools | |
Display Modes | |
|
|