[SOLVED] Set level limit for spell that have many levels
Tooltips:
Of course this is 31 levels of "storm bolt"
here are my triggers:
Tooltips:
Stun and deal 50 (+souls) damage to the target. Limit 5/10/15/20 souls.
Everytime an enemy unit dies around you, get 1 soul (each soul +10 stun damage and 0.2s stun)
Of course this is 31 levels of "storm bolt"
here are my triggers:
-
Soul Blast Learn
-

Events
-


Unit - A unit Learns a skill
-
-

Conditions
-


(Learned Hero Skill) Equal to (==) Soul Blast
-
-

Actions
-


Set SoulBlast_User = (Learning Hero)
-


Set SoulBlastStun = 1
-


Unit - Add Soul Blast [Stun] to (Learning Hero)
-


Trigger - Turn off (This trigger)
-


Trigger - Turn on Soul Blast Limit <gen>
-
-
-
Soul Blast Limit
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


((Dying unit) is A structure) Not equal to (!=) True
-


((Dying unit) belongs to an enemy of (Owner of SoulBlast_User)) Equal to (==) True
-
-

Actions
-


Set SoulBlast_Die = (Position of (Dying unit))
-



Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-




If - Conditions
-





SoulBlastStun Less than (<) (1 + (5 x (Level of Soul Blast for SoulBlast_User)))
-
-




Then - Actions
-





Set AAGroup = (Units within 600.00 of SoulBlast_Die matching ((Matching unit) Equal to (==) SoulBlast_User))
-





Unit Group - Pick every unit in AAGroup and do (Actions)
-






Loop - Actions
-







Set SoulBlastStun = (SoulBlastStun + 1)
-







Unit - Set level of Soul Blast [Stun] for SoulBlast_User to SoulBlastStun
-
-
-
-




Else - Actions
-
-
-


Custom script: call DestroyGroup( udg_AAGroup )
-


Custom script: call RemoveLocation(udg_SoulBlast_Die)
-
-
-
Soul Blast After Cast
-

Events
-


Unit - A unit Finishes casting an ability
-
-

Conditions
-


(Ability being cast) Equal to (==) Soul Blast [Stun]
-
-

Actions
-


Set SoulBlastStun = ((SoulBlastStun / 2) + 1)
-


Unit - Set level of Soul Blast [Stun] for SoulBlast_User to SoulBlastStun
-
-
Last edited:


