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!
I don't think that's possible, you'll need to cache the information beforehand in a database or use a bunch of If Then Else statements.
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Set Variable First_Ability[1] = Holy Light
Set Variable First_Ability[2] = Blizzard
Set Variable First_Ability[3] = Wind Walk
Events
Something happens
Conditions
Actions
-------- Set these two variables beforehand or whenever able --------
Set Variable U = (the unit)
Set Variable X = (the desired ability level)
For each integer (First_Loop) from 1 to 3 do (Actions)
Loop - Actions
Unit - Set level of First_Ability[First_Loop] for U to X
This trigger will loop over your Array of Abilities and set the level of the ability for the given unit. If the unit doesn't have the ability then nothing will happen. If you have some kind of ability overlap then you can add an If Then Else to help filter things.
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.