Thread: Flight
View Single Post
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 11th, 2016, 06:01 PM
Quote:
Originally Posted by Irondrake View Post
Here's what I have. It compiles fine (no errors), and it's based off the code for adjust speed, however it doesn't seem to add anything..

doneif (tagis[Helper.Disable] <> 0)
doneif (field[abilActive].value = 0)
hero.child[xFly].field[Bonus].value = 60
Thanks for putting out what you are trying and telling us what is happening. That is an important bit of information not everyone does.

First, when you post code, you should post what phase and priority you are running it at. Second, the Bonus field isn't the right field for this. Try adding to abValue field instead. Third, be careful with setting things = to a static number. It overwrites anything which comes before, so if something else would give a higher value it will be lowered to 60. It's almost always better to add to a field value, or to do a maximum so that the highest value is preserved.
Aaron is offline   #4 Reply With Quote