View Single Post
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633

Old November 23rd, 2020, 01:15 PM
Quote:
Originally Posted by Senko View Post
Stupid password difficulties.

Good idea thanks, I hadn't thought of that.

The scripts there do nothing in the template but I'll play around and see if I can figure out why.


~ If we are using the wounds and vigor variant we need to adjust for that
if (hero.tagis[source.UCWound] <> 0) then
~ our bonus is our hit dice
field[abValue].value += herofield[tHitDice].value
else
~ our bonus is our hit dice or 3, whichever is higher
field[abValue].value += maximum(herofield[tHitDice].value, 3)
endif


and


~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

~ If we are using the wounds and vigor variant we need to adjust for that
if (hero.tagis[source.UCWound] <> 0) then
~ add that bonus to our wounds total
container.child[Wounds].field[wndFeat].value += field[abValue].value
else
~ add that bonus to our hit points
container.child[Totals].field[tBonusHP].value += field[abValue].value
endif
You should be looking at Priority and Timing as well, not just the script. Everything in Hero Lab has a Phase and Priority, if you don't time the script right it won't do anything. Also, the else part of that first if then is not needed if you just want to add a number of hit points equal to HD.

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #5 Reply With Quote