I've set up a variable so I can assign a value to the abilValue field to the abBurrow ability (which gives it a Pace value). And this is what I'm using right now at Setup/5000 (really it just needs to be before Pre-Traits/5000 which is when the abBurrow ability figures out, in its own Eval Script, what it will display as the Pace value):
If I replace the BurrowPace variable in the eachpick line to a set number, say 20, it shows up correctly on the profile under the Abilities column with:
Burrowing (20")
If I set the BurrowPace line to:
It also work. But with the way I'm trying to figure out the character's Spirit die and multiply by 5 (remember the value in the program is half the die which is why I end it with * 10 rather than *5) I only get:
Burrowing
So there must be something wrong with how I'm setting my BurrowPace variable. I've also tried BurrowPace = hero.childfound[attrSpi].field[trtFinal].value * 10, but it's the same result. I know I'm probably missing something blatantly obvious here, but I can't figure out what it is.
Code:
var BurrowPace as number
BurrowPace = hero.child[attrSpi].field[trtFinal].value * 10
foreach pick in hero where "thingid.abBurrow"
eachpick.field[abilValue].value = maximum (eachpick.field[abilValue].value,BurrowPace)
nexteach
If I replace the BurrowPace variable in the eachpick line to a set number, say 20, it shows up correctly on the profile under the Abilities column with:
Burrowing (20")
If I set the BurrowPace line to:
Code:
BurrowPace = 20
It also work. But with the way I'm trying to figure out the character's Spirit die and multiply by 5 (remember the value in the program is half the die which is why I end it with * 10 rather than *5) I only get:
Burrowing
So there must be something wrong with how I'm setting my BurrowPace variable. I've also tried BurrowPace = hero.childfound[attrSpi].field[trtFinal].value * 10, but it's the same result. I know I'm probably missing something blatantly obvious here, but I can't figure out what it is.