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!
Well, what do you need it for? Why not setting the arrayed real as following:
Real[1] = 10
Real[2] = 34
Real[3] = 47
...
and have your actions with an increasing Integer, e.g.
Set Integer = (Integer) + 1
Unit - Make (Unit) face Real[Integer] over 0.1 seconds
This is an example, tell me what do you need it for.
Basically I need a multiboard that keeps track of all cooldowns, As a spell is cast the cooldown for that spell is added to the multiboard. I need to insure that the cooldowns are in order of lowest cooldown time remaining at the top and longest time at the bottom. So can someone make this system for me?
This organizes a real array from smallest to largest:
SortRealArray
Events
Player - Player 1 (Red) types a chat message containing sort as An exact match
Conditions
Actions
For each (Integer B) from 0 to 4, do (Actions)
Loop - Actions
For each (Integer A) from 0 to 4, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RealArraySort[(Integer A)] Greater than RealArraySort[((Integer A) + 1)]
Then - Actions
Set RealTemp = RealArraySort[((Integer A) + 1)]
Set RealArraySort[((Integer A) + 1)] = RealArraySort[(Integer A)]
Set RealArraySort[(Integer A)] = RealTemp
Else - Actions
My array size is 6, indexes from 0 to 5. So set the FOR loops to go from 0 to YourArraySize-1. If you want to sort 12 real numbers, then set them to 11.
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.