|
Senior Member
Join Date: Jan 2014
Posts: 262
|
I'm trying to create the mighty template and it adds
A mighty creature gains +10 bonus hit points per Hit Die (minimum +50) Amongst other things. I've tried hunting for something that adds HP per hit die to adapt but I haven't found any so I'm wondering does anyone know the fomula to do this off the top of their head please? Otherwise I'll just keep hunting, thanks in advance for any help. |
#1 |
Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 464
|
Off the top of my head, I'd have a look at scripts on the Toughness feat (which adds 1 hp/lvl, min 3). Not near HL to see whether it's indeed helpful.
|
#2 |
Senior Member
Join Date: Jan 2014
Posts: 262
|
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 |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Quote:
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. |
|
#4 |
Senior Member
Join Date: Sep 2013
Location: Vancouver, Canada.
Posts: 813
|
There's an adjustment, it's either part of hero lab entirely or part of the Community Package.
You can add X hit points per level with it. That does exactly what you're looking for, so I'd look at that. |
#5 |
Senior Member
Join Date: Jan 2014
Posts: 262
|
Quote:
Quote:
Good to get confirmation on the or else part I thought I could just cut the first half of that but until I got it adding the hp that was just being left alone to keep it as close to the toughness feat. |
||
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Phase and Priority are essential, they determine the timing on when the script runs. Keep in mind this script is adding the bonus directly to the class levels not the overall hp.
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. |
#7 |
Senior Member
Join Date: Jan 2014
Posts: 262
|
Interesting though I don't see how it would affect anything here. A direct copy script, phase, priority. Add template, add levels no HP, add template, add levels, add toughness feat, get bonus hp.
|
#8 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Senko, that code from post #2 in this thread is what you put in an eval script on the template itself? Or was this on an ability bootstrapped from the template? Because that shouldn't have even compiled if it was on the template - the abValue field does not exist on the "Template" compset, the way it does on the "Feat" compset.
You'll need to use a variable instead - replace all references to abValue with the variable. Code:
var hitpointstoadd as number hitpointstoadd += herofield[tHitDice].value Also, in the second section of that template, Helper.FtDisable is a test that is only relevant to feats. |
#9 |
Senior Member
Join Date: Jan 2014
Posts: 262
|
Ok in order . . .
1) It was in the eval script on the template itself. It not compiling would explain why it didn't add hp I thought I had an invalid identifier in there good to know I was on the right track even if it would probably have taken me a lot longer to track it down. 2) Thanks for the correct variable I'll play around with it when I have some more time. I'm obviously still entering it wrong as its not changing anything. 3) I'll enable that debugger. 4) So I take it . . . ~ 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 can be deleted in its entirety? Thanks for the help. |
#10 |
|
|