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
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old January 17th, 2013, 04:15 PM
Quote:
Originally Posted by Mathias View Post
ShadowChemosh, as long as you're talking about best practices, I'd suggest using -= 2, rather than += -2.
Hmm I always add a negative value rather than subtract a positive value. I can't think of it now but I swear I ran into a issue long time ago with subtracting a positive value.

So you guys would subtract a positive then? hmmmm

Also yea I forgot the period above. I did not know about the herofield is actually hero.child[totals]. That makes sense now that you say it.

So really it should be:
Code:
field[abValue].value += tagcount[fCategory.Metamagic] * 2
herofield[tHP].value += field[abValue].value

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   #11 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old January 17th, 2013, 04:16 PM
Quote:
Originally Posted by AndrewD2 View Post
I was running it at post-attributes 10000, but I've tried it in most every other phase and it only ever adds 2 HP even when having 4 other Arcana feats. Am I missing something?
What value is inside "abValue2". That can help narrow down if the issue is in the count calculation or how its getting added to the HP total.

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   #12 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old January 17th, 2013, 04:25 PM
when I debug it tells me the tagcount[fCategory.Arcana] is 1 and abValue2 is 2 but it should be tagcount = 4 and abValue 8 with what's on the character. It seems it is only counting itself.
AndrewD2 is offline   #13 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old January 17th, 2013, 04:59 PM
And in case it helps here's the feat:

Arcane Body
Your arcane power reinforces your body.

Benefit: When you take this feat, you gain 2 hit points for each arcana feat you have (including this one). Whenever you take a new arcana feat, you gain 2 more hit points.

You add 1 point to your arcane pool.
AndrewD2 is offline   #14 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old January 17th, 2013, 06:56 PM
Opps my bad. I did that script a little too quick. Your right it is only looking at itself.

Code:
~ Add to abValue first so outside things can adjust us
field[abValue].value += 1
~ add to the pool total
#trkmax[trkArcaneP] += field[abValue].value

field[abValue2].value += hero.tagcount[fCategory.Arcana] * 2
herofield[tHP].value += field[abValue2].value
I forgot to add "hero." before tagcount so it would look at the hero not itself.

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   #15 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old January 17th, 2013, 07:02 PM
THANK YOU! Works beautifully. Originally when I was working this out in my head I knew it needed to have that, looks like I forgot too. :-D
AndrewD2 is offline   #16 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 11:58 AM.


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