Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
The title says it all, I'm attempting to add hit points to a hero using a script the calculation is
Add hit points equal to Hit Dice multiplied by the attribute modifier. I can't find the correct identifier for Hit Dice, I've tried rHitDice, tHitDice and numerous other combinations but I keep getting non existent thing errors. Please help someone I'm losing the rest of my hair! |
#1 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
What you might do is do a tagcount of Hero.HitDice. This will give you the number of hit dice the character has.
|
#2 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
I've managed to get the script working.
Code:
~ Add our Charisma modifier times our Hit Dice to our Hit Point total. container.child[Totals].field[tHP].value = container.child[Totals].field[tHitDice].value * hero.child[aCHA].field[aModBonus].value + container.child[Totals].field[tHP].value |
#3 |
|
|