I've got a template that doubles all forms of movement and I'm trying to see if there's a better way of doing it.
my current code is:
Pre-levels 10000
which seems to work, but I foresee problems with the corner cases like something that gains a fly speed equal to your base land speed, this would double it twice, which I'm pretty sure is not the intention of the template.
Any ideas?
Thanks,
Andrew
my current code is:
Pre-levels 10000
Code:
hero.child[Speed].field[tSpeed].value *= 2
var speed as number
foreach pick in hero from Ability where "thingid.xSwim | thingid.xBurrow | thingid.xFly | thingid.xClimb"
speed = maximum(eachpick.tagvalue[Value.?],eachpick.field[abValue].value)
speed *= 2
eachpick.field[abValue].value = speed
perform eachpick.delete[Value.?]
nexteach
which seems to work, but I foresee problems with the corner cases like something that gains a fly speed equal to your base land speed, this would double it twice, which I'm pretty sure is not the intention of the template.
Any ideas?
Thanks,
Andrew