View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old June 28th, 2017, 03:37 AM
Quote:
Originally Posted by draco963 View Post
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.
Sendric is online now   #6 Reply With Quote