Quote:
Originally Posted by draco963
var HD as number
HD = minimum(hero.tagcount[Hero.HitDice]) / 4
|
What is it you are trying to do here? The minimum function requires two numbers from which it will select the lowest. Perhaps you are trying to round, like this:
round(hero.tagcount[Hero.HitDice]/4,0,-1)
Quote:
herofield[tFeats] = herofield[tFeats] + HD
|
You need to add ".value" at the end, like this:
herofield[tFeats].value
Also, you can shorten that to:
Code:
herofield[tFeats].value += HD
However, you should understand that you will simply be adding the value of HD to the total number of feats gained. If you are trying to change it, then you should remove the '+' sign.
I don't know what timing is required.