Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Hello again fellow Hiveians. I am trying to make a tauren hero that can learn an ability that gives him a slight health and mana regeneration bonus when he is moving. Could someone help me out with this one? Thanks
First thing that comes to my mind.
When Learned store the current position of the unit to a variable.
Turn on a trigger:
Use a trigger that runs every 0.25 seconds.
Set the current position of the unit to a variable.
Set a variable(global, like "abv") to false
Check the distance between the previous location and the current.
If the distance is more than 0 and if abv equal to false do something(give it item abilities) and set abv to true
If the distance is 0 and abv=true than remove those skills and set abv=false.
Then store the current position in the first variable.
If globals are used this will not be MUI.
If arrays with indexes of Player numbers are used it will be PUI.
If a timer(instead of a trigger) is used and an attachment system is used then it can be MUI.
He said hero.
Oh, I have to adjust that a bit.
And even if it is for units, than just a simple increase of the interval between executions is required to like 1 second.
Won't make a big difference.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.