Senior Member
Join Date: Oct 2016
Posts: 621
|
Just looking at a line of code
Code:
~ Count the number of times manually added field[abValue].value = field[abValue].value + hero.tagcount[HasAbility.cGldIgPain] my question is, is this expression correct or am I missing something? |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Nothing logically wrong with that math. Other than "HasAbility" tags are not placed until really late in Final or Render phase even. Its not very useful for doing much with the tag.
You would need to use Ability.cGldIgPain tag instead. But that goes on to the hero as soon as the Pick becomes live and does not care about being enabled or disabled or any other logic. 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. |
#2 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
I've had that problem before, its annoying.
Generally, I create a dummy special then that counts the number of times I've taken a class custom. And then you can use the class custom to remotely change the abValue of the dummy special. Quote:
|
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
If you really need to be counting something its most likely better to just place a custom tag on the hero yourself. That way your ability Things can easily set the tag when its valid or not. Tag counting is very efficient and can be used in ALL logic where a Pick's value is limited.
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
|
@TobyFox2002 I was re-thinking about this and your most likely correct in that using another Pick's field value would be easier than tags when starting out. Good idea!
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 |
|
|