- Joined
- Jun 10, 2013
- Messages
- 473
I've tried to make a critical strike aura and although it works perfectly it lags like hell thus i'm sure it leaks like crazy to.... is their any way to make this leakless or unlaggy?
-
Variables
-
Events
-
Unit - A unit enters (Playable map area)
-
Conditions
-
Actions
-
If ((Unit-type of (Entering unit)) Equal to Blood Ranger (Range Support)) then do (Unit Group - Pick every unit in (Units of type Blood Ranger (Range Support)) and do (Set MasterRangerHero = (Picked unit))) else do (Do nothing)
-
-
Precision Aura
-
Events
-
Time - Every 0.50 seconds of game time
-
Conditions
-
Actions
-
Set tempGroup1 = (Units in (Playable map area))
-
Unit Group - Pick every unit in tempGroup1 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Presicion Aura for MasterRangerHero) Equal to 1
-
((Picked unit) has buff Precision Aura L1) Equal to True
-
Then - Actions
-
Unit - Add Presicion Aura Spell Book L1 to (Picked unit)
-
Player - Disable Presicion Aura Spell Book L1 for (Owner of (Picked unit))
-
Else - Actions
-
Unit Group - Pick every unit in tempGroup1 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Presicion Aura for MasterRangerHero) Equal to 2
-
((Picked unit) has buff Precision Aura L2) Equal to True
-
Then - Actions
-
Unit - Add Presicion Aura Spell Book L2 to (Picked unit)
-
Player - Disable Presicion Aura Spell Book L2 for (Owner of (Picked unit))
-
Else - Actions
-
Unit Group - Pick every unit in tempGroup1 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Presicion Aura for MasterRangerHero) Equal to 3
-
((Picked unit) has buff Precision Aura L3) Equal to True
-
Then - Actions
-
Unit - Add Presicion Aura Spell Book L3 to (Picked unit)
-
Player - Disable Presicion Aura Spell Book L3 for (Owner of (Picked unit))
-
Else - Actions
-
Custom script: call DestroyGroup (udg_tempGroup1)
-
-
Precision Aura Remove
-
Events
-
Time - Every 0.10 seconds of game time
-
Conditions
-
Actions
-
Set tempGroup1 = (Units in (Playable map area))
-
Unit Group - Pick every unit in tempGroup1 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Precision Aura L1) Equal to False
-
Then - Actions
-
Unit - Remove Presicion Aura Spell Book L1 from (Picked unit)
-
Else - Actions
-
Unit Group - Pick every unit in tempGroup1 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Precision Aura L2) Equal to False
-
Then - Actions
-
Unit - Remove Presicion Aura Spell Book L2 from (Picked unit)
-
Else - Actions
-
Unit Group - Pick every unit in tempGroup1 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Precision Aura L3) Equal to False
-
Then - Actions
-
Unit - Remove Presicion Aura Spell Book L3 from (Picked unit)
-
Else - Actions
-
Custom script: call DestroyGroup (udg_tempGroup1)
-