Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
I'm missing something obvious but I can't figure out what it is. I'm trying to get this feat to show up correctly.
Quote:
Quote:
Thanks for any assistance. |
||
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Line three adds to abValue, and then line 7 adds to the same field. Perhaps you should use a different field, like abDuration for the first instance on line 3.
Also, why not store the second part (in line 7) in abDC? That way it will append the value to your livename automatically. |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
I didn't know there was such a thing as abDC. That's going to make entering all these feats much easier. I'll change the other field to abDuration. Thanks.
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Last thought is don't forget to use Macros when you can. A macro is any of the functions that start with #. It can really help you write shorter code. Here is an example: Final Phase 10000 Code:
~ If channel energy Pick not live get out now! doneif (hero.childlives[xChannel] <> 1) ~ Set duration equal to the number of channel dice field[abDuration].value += #value2[xChannel] ~ Set DC equal to Channel Dice + Cha + 10 field[abDC].value += 10 + #value2[xChannel] + #attrmod[aCHA] 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. Last edited by ShadowChemosh; February 26th, 2014 at 11:31 AM. |
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
Thanks for the tips Shadow! I figured I'd been doing it the hard way but still getting the job done, mostly. I think your macros and Aaron's advice will address a couple other problems I was running into but hadn't started to fix yet.
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
It doesn't show the name of the feat in the Specials list anymore. It's changing the name to the DC. I'm also don't know how to use the "Usage.?" text.
~ If channel energy Pick not live get out now! doneif (hero.childlives[xChannel] <> 1) ~ Set duration equal to the number of channel dice field[abDuration].value += #value2[xChannel] ~ Set DC equal to Channel Dice + Cha + 10 field[abDC].value += 10 + #value2[xChannel] + #attrmod[aCHA] field[livename].text = field[abDuration].value & " Rounds " & field[abDC].value |
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
field[livename].text = field[name].text & " " & field[abDuration].value & " Rounds " & field[abDC].value So again now that I am near HL again I see that its trkMax not abDuration you should be using. The idea here is once you activate the feat the gamer will want a way to track the number of rounds used. So I would check mark "Show in Tracked Resources List?". Set "Usage period?" to "/round". Image1.jpg Then use this script Post-Attributes/20000: Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) ~ Set tracker equal to the number of channel dice field[trkMax].value += #value2[xChannel] ~ Set DC equal to Channel Dice + Cha + 10 field[abDC].value += 10 + #value2[xChannel] + #attrmod[aCHA] Now then HL will append the DC and /round duration onto the feat for you. No need to set the livename and stuff yourself. If you have an ability/feat that increases the duration then all you need to do is use the tracker max macro like so: Code:
~ Increase duration by 5 rounds #trkmax[FEAT_UNIQUE_ID] += 5 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
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
That did the trick! Thanks. I need to go back and fix about 15 feats but it will be worth it in the end! Thanks for the help.
|
#8 |
|
|