- Joined
- Sep 25, 2013
- Messages
- 717
I've been working on my map for a while now and its nearly done, but I honestly am not the best triggerer. I created several new triggers and compiled the into this one trigger because i though merging them would help reduce lag. Is there a better way to do this and are there leaks? Thanks for your time!
-
Time Related Abilities
-
Events
-
Time - Every 3.00 seconds of game time
-
-
Conditions
-
Actions
-
Set tempUnitGroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Beorning |c00FFFF00(Elite)|r (Elves)) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in tempUnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Night (Night Aura)) Equal to True
-
-
Then - Actions
-
Unit - Set mana of (Picked unit) to 100.00%
-
Unit - Order (Picked unit) to Night Elf Druid Of The Claw - Bear Form
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup (udg_tempUnitGroup)
-
Set tempUnitGroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Beorning |c00FFFF00(Elite)|r (Bear Form)(Elves)) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in tempUnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Night (Night Aura)) Equal to False
-
-
Then - Actions
-
Unit - Set mana of (Picked unit) to 100.00%
-
Unit - Order (Picked unit) to Night Elf Druid Of The Claw - Night Elf Form
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup (udg_tempUnitGroup)
-
Set tempUnitGroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Ithilien Ranger |c00FFFF00(Elite)|r (Gondor)) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in tempUnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Night (Night Aura)) Equal to True
-
-
Then - Actions
-
Unit - Add Permanent Invisibility (Ithilien Ranger) to (Picked unit)
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup (udg_tempUnitGroup)
-
Set tempUnitGroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Ithilien Ranger |c00FFFF00(Elite)|r (Gondor)) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in tempUnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Night (Night Aura)) Equal to False
-
-
Then - Actions
-
Unit - Remove Permanent Invisibility (Ithilien Ranger) from (Picked unit)
-
-
Else - Actions
-
-
-
-
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) is alive) Equal to True)))
-
Unit Group - Pick every unit in tempUnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Forest (Forest Aura)) Equal to True
-
-
Then - Actions
-
Unit - Add Ghost to (Picked unit)
-
-
Else - Actions
-
Unit - Remove Ghost from (Picked unit)
-
-
-
-
-
Custom script: call DestroyGroup (udg_tempUnitGroup)
-
Set tempUnitGroup = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Siege Tower (All)(Immobile)))
-
Unit Group - Pick every unit in tempUnitGroup and do (Actions)
-
Loop - Actions
-
Set tempPoint = (Position of (Picked unit))
-
Unit - Order (Picked unit) to Unload All At (tempPoint offset by 500.00 towards (Facing of (Picked unit)) degrees)
-
-
-
Custom script: call RemoveLocation(udg_tempPoint)
-
Custom script: call DestroyGroup (udg_tempUnitGroup)
-
Set tempUnitGroup = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Postern Gate (All)))
-
Unit Group - Pick every unit in tempUnitGroup and do (Actions)
-
Loop - Actions
-
Set tempPoint = (Position of (Picked unit))
-
Unit - Order (Picked unit) to Unload All At (tempPoint offset by 500.00 towards 270.00 degrees)
-
-
-
Custom script: call RemoveLocation(udg_tempPoint)
-
Custom script: call DestroyGroup (udg_tempUnitGroup)
-
-