Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Then - Actions

Set Variable Celerity_CV = (Custom value of Celerity_Target)

Unit - Set Max HP of Celerity_Target to (Max HP of Celerity_Target - Celerity_MaxHP[Celerity_CV]

Set Variable Celerity_MaxHP[Celerity_CV] = (Max HP of Celerity_Target * 0.15)

Unit - Set Max HP of Celerity_Target to (Max HP of Celerity_Target + Celerity_MaxHP[Celerity_CV]

...
Set VariableSet GA_TargetMaxHP[GA_CV] = ((Max life of GA_Target) x (Level of GA_Setup_Aura for GA_Source * 0.15))
Granite Aura Setup

Events


Map initialization

Conditions

Actions


-------- The ability code for Granite Aura: --------


Set VariableSet GA_Setup_Aura = Granite Aura (Hero)


-------- --------


-------- The percentage increase for max hp (1.0 = 100%): --------


Set VariableSet GA_Setup_MaxHP = 0.15


-------- --------


-------- The Area of Effect for the Aura: --------


Set VariableSet GA_Setup_AoE = 900.00
Granite Aura Add Source

Events

Conditions

Actions


-------- How To: --------


-------- Set GA_Source = The unit with the Granite Aura ability and then do the following Action: Trigger - Run Granite Aura Add Source (ignoring conditions) --------


-------- --------


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(GA_Source is in GA_SourceGroup.) Equal to False



Then - Actions




Unit Group - Add GA_Source to GA_SourceGroup




Set VariableSet GA_SourceCount = (GA_SourceCount + 1)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






GA_SourceCount Equal to 1





Then - Actions






Trigger - Turn on Granite Aura Loop <gen>





Else - Actions



Else - Actions
Granite Aura Loop

Events


Time - Every 0.25 seconds of game time

Conditions

Actions


-------- Reset the Max HP of units affected by Granite Aura: --------


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



Loop - Actions




Set VariableSet GA_Target = (Picked unit)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(GA_Target has buff Granite Aura ) Equal to False





Then - Actions






Set VariableSet GA_CV = (Custom value of GA_Target)






-------- --------






Set VariableSet GA_TargetLifePerc = (Percentage life of GA_Target)






Unit - Set Max HP of GA_Target to ((Max HP of GA_Target) - (Integer(GA_TargetMaxHP[GA_CV])))






Unit - Set life of GA_Target to GA_TargetLifePerc%






-------- --------






Unit Group - Remove GA_Target from GA_TargetGroup.






Set VariableSet GA_IsInTargetGroup[GA_CV] = False





Else - Actions


-------- --------


-------- Loop over all of the unit's with Granite Aura and increase the Max HP of allies near them: --------


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



Loop - Actions




Set VariableSet GA_Source = (Picked unit)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(GA_Source is alive) Equal to True






(Level of GA_Setup_Aura for GA_Source) Greater than 0





Then - Actions






Set VariableSet GA_Point = (Position of GA_Source)






-------- --------






Custom script: set bj_wantDestroyGroup = true






Unit Group - Pick every unit in (Units within GA_Setup_AoE of GA_Point.) and do (Actions)







Loop - Actions








Set VariableSet GA_Target = (Picked unit)








-------- --------








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










(GA_Target is alive) Equal to True










(GA_Target belongs to an ally of (Owner of GA_Source).) Equal to True










(GA_Target is A structure) Equal to False









Then - Actions










Set VariableSet GA_CV = (Custom value of GA_Target)










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












GA_IsInTargetGroup[GA_CV] Equal to False











Then - Actions












Set VariableSet GA_TargetLifePerc = (Percentage life of GA_Target)












Set VariableSet GA_TargetMaxHP[GA_CV] = ((Max life of GA_Target) x GA_Setup_MaxHP)












Unit - Set Max HP of GA_Target to ((Max HP of GA_Target) + (Integer(GA_TargetMaxHP[GA_CV])))












Unit - Set life of GA_Target to GA_TargetLifePerc%












-------- --------












Unit Group - Add GA_Target to GA_TargetGroup












Set VariableSet GA_IsInTargetGroup[GA_CV] = True











Else - Actions









Else - Actions






-------- --------






Custom script: call RemoveLocation (udg_GA_Point)





Else - Actions






-------- The Aura source is dead or lost the ability so they shouldn't be emitting an Aura anymore: --------






Unit Group - Remove GA_Source from GA_SourceGroup.






Set VariableSet GA_SourceCount = (GA_SourceCount - 1)






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








GA_SourceCount Equal to 0







Then - Actions








Trigger - Turn off Granite Aura Loop <gen>







Else - Actions
Granite Aura DeIndex

Events


Game - UnitIndexEvent becomes Equal to 2.00

Conditions

Actions


-------- Reset these variables since this custom value may get recycled: --------


Set VariableSet GA_IsInTargetGroup[UDex] = False


Set VariableSet GA_TargetMaxHP[UDex] = 0.00
