I'm coding the Animal Aspect Tree Lizard but i'm stumbling on assigning the half speed to the value.
I've looked at the Fly adjustment for pointers and I can assign an absolute number but for some reason I can't get the value to correctly calculate.
here's my current script which throws this error message
Attempt to access field 'tSpeed' that does not exist for thing 'pAniAspTrL'
- - -
Attempt to access field 'tSpeed' that does not exist for thing 'xClimb'
I've tried modifying this script to incorporate the round statement but it crashed the program and altering the Value.40 to Value.?
If I leave it as is the Climb ability shows with a 40 speed and there are no error messages!
What am I doing wrong?
I've looked at the Fly adjustment for pointers and I can assign an absolute number but for some reason I can't get the value to correctly calculate.
here's my current script which throws this error message
Attempt to access field 'tSpeed' that does not exist for thing 'pAniAspTrL'
- - -
Attempt to access field 'tSpeed' that does not exist for thing 'xClimb'
Code:
~if we're not active, just get out now
doneif (field[pIsOn].value = 0)
~apply a climb speed of half our base speed
hero.child[xClimb].field[tSpeed].value = round(field[tSpeed].value/2,0,-1)
I've tried modifying this script to incorporate the round statement but it crashed the program and altering the Value.40 to Value.?
Code:
perform hero.child[xFly].assign[Value.40]
If I leave it as is the Climb ability shows with a 40 speed and there are no error messages!
What am I doing wrong?