I'm trying to code this:-
Speed: Because a broken soul is in constant agony, each of its speeds is slower by 10 feet than the corresponding speed of the base creature (minimum 5 feet).
This code
adjusts the base speed by -10 which is correct.
But this code
the above script compiles but it doesn't alter the fly speed of a test creature, I've tried removing the maximum declaration, replacing minimum declaration using the -= statement to subtract 10 and adjusting the phase and priority.
I've also looked at the Speed other adjustments relentless zombie templates and other things that supposedly adjust movement types
Tried this code to no avail
What is wrong with the code, why doesn't it adjust the flight speed?
Thanks in advance !
Speed: Because a broken soul is in constant agony, each of its speeds is slower by 10 feet than the corresponding speed of the base creature (minimum 5 feet).
This code
Code:
Final Phase 9900
hero.child[Speed].field[tSpeedMod].value -= 10
But this code
Code:
Final Phase 14000
~ Set our fly speed
var speed as number
speed = hero.child[Speed].field[tSpeed].value
hero.child[xFly].field[abValue].value = maximum(hero.child[xFly].field[abValue].value, speed - 10)
I've also looked at the Speed other adjustments relentless zombie templates and other things that supposedly adjust movement types
Tried this code to no avail
Code:
hero.child[xFly].field[abValue].value -= 10
What is wrong with the code, why doesn't it adjust the flight speed?
Thanks in advance !
Last edited: