- Joined
- Sep 25, 2013
- Messages
- 792
Hello, is there any better way to do what this trigger is doing and is it leakless? When i set the periodic event timer down to .15 it lags the game. Thanks for your help
!
[Edit] Just noticed i put the unit type matching Sindarin Ranger condition twice within each tempunitgroup variable lol, i changed it
[Edit] Just noticed i put the unit type matching Sindarin Ranger condition twice within each tempunitgroup variable lol, i changed it
-
Sindarin Ranger Invisibility
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-

Actions
-


Set tempUnitGroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Sindarin Ranger |c00FFFF00(Elite)|r (Elves)) and ((((Matching unit) has buff Forest (Forest Aura)) Equal to True) and ((Unit-type of (Matching unit)) Equal to Sindarin Ranger |c0
-


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



Loop - Actions
-




Unit - Add Ghost to (Picked unit)
-
-
-


Custom script: call DestroyGroup (udg_tempUnitGroup)
-


Set tempUnitGroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Sindarin Ranger |c00FFFF00(Elite)|r (Elves)) and ((((Matching unit) has buff Forest (Forest Aura)) Equal to False) and ((Unit-type of (Matching unit)) Equal to Sindarin Ranger |c
-


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



Loop - Actions
-




Unit - Remove Ghost from (Picked unit)
-
-
-


Custom script: call DestroyGroup (udg_tempUnitGroup)
-
-









