• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Increasing all forms of movement

AndrewD2

Well-known member
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
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
 
Back
Top