[Spell] set level of ability without its name

Status
Not open for further replies.
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.
 
Status
Not open for further replies.
Back
Top