Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 20th, 2017, 08:14 PM
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]
where abValue is the number of times that cGldIgPain has been taken

my question is, is this expression correct or am I missing something?
ErinRigh is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 20th, 2017, 09:19 PM
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.
ShadowChemosh is offline   #2 Reply With Quote
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old November 21st, 2017, 07:50 AM
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:
hero.childfound[someclassspecial].field[abValue].value =+ 2
That way each time you add the class special it simply adds to the dummy special, sneak attack and many special attacks use that method. It works well for purely display, situational and skills. Less well when the value is needed by other things such as attacks and saves, but can be very effective.
TobyFox2002 is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 21st, 2017, 09:09 AM
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.
ShadowChemosh is offline   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 21st, 2017, 02:35 PM
@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.
ShadowChemosh is offline   #5 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:13 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.