- Joined
- May 20, 2009
- Messages
- 822
-
Summons Aura
-
Events
-
Time - Every 0.33 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer SG_Int[1]) from 1 to SG_Inx, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(SG_Unit[SG_Int[1]] has buff Summons Aura ) Equal to True
-
-
Then - Actions
-
For each (Integer CL_Int) from 1 to CorpseLordIndex, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of CorpseLord[CL_Int]) Equal to (Owner of SG_Unit[SG_Int[1]])
-
-
Then - Actions
-
Unit - Add Summons Aura Buffs to SG_Unit[SG_Int[1]]
-
Unit - Set level of Armor Bonus (Summons) for SG_Unit[SG_Int[1]] to (Level of Summons Aura for CorpseLord[CL_Int])
-
Unit - Set level of Move Speed Bonus (Summons) for SG_Unit[SG_Int[1]] to (Level of Summons Aura for CorpseLord[CL_Int])
-
Unit - Set level of Spell Damage Reduction for SG_Unit[SG_Int[1]] to (Level of Summons Aura for CorpseLord[CL_Int])
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(SG_Unit[SG_Int[1]] has buff Summons Aura ) Equal to False
-
-
Then - Actions
-
Unit - Remove Armor Bonus (Summons) from SG_Unit[SG_Int[1]]
-
Unit - Remove Move Speed Bonus (Summons) from SG_Unit[SG_Int[1]]
-
Unit - Remove Spell Damage Reduction from SG_Unit[SG_Int[1]]
-
Unit - Remove Summons Aura Buffs from SG_Unit[SG_Int[1]]
-
-
Else - Actions
-
-
-
-
-
-
-
EDIT: My problem was with my debug text. I had a text message I sent inside of the second loop which was inside of the first one. So it would send (number of summoned units*number of corpse lords) messages per summoned unit every 0.33 seconds. Just for 12 summoned units, that would be sending up to 144 messages every 0.33 seconds, or 432 every second. If it isn't obvious, that would clearly cause some lag.
Last edited: