Daskunk
SC2 Forum MVP - TheSkunk #386
- Reaction score
- 186
Ive never been good at making Efficient triggers, often making 6 seperate triggers that could be done in one, also Ive never fixed my leaks...
Heres my terrible attempt at fixing the leaks, but it doesnt work..
Heres my terrible attempt at fixing the leaks, but it doesnt work..
Code:
Eggs
Events
Time - Every 0.15 seconds of game time
Conditions
Actions
Set Eggssmall = (Units of type Small Egg)
Unit Group - Pick every unit in Eggssmall and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Mana Shield) Equal to False
Then - Actions
Unit - Order (Picked unit) to Neutral Naga Sea Witch - Activate Mana Shield
Else - Actions
Custom script: call DestroyGroup (udg_Eggssmall)
Set Eggssmall = (Units of type Small Egg)
Unit Group - Pick every unit in Eggssmall and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Picked unit)) Less than or equal to 1.00
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Custom script: call DestroyGroup (udg_Eggssmall)
Set EggsBREED = (Units of type Breeder Egg)
Unit Group - Pick every unit in EggsBREED and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Mana Shield) Equal to False
Then - Actions
Unit - Order (Picked unit) to Neutral Naga Sea Witch - Activate Mana Shield
Else - Actions
Custom script: call DestroyGroup (udg_EggsBREED)
Set EggsBREED = (Units of type Breeder Egg)
Unit Group - Pick every unit in EggsBREED and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Picked unit)) Less than or equal to 1.00
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Custom script: call DestroyGroup (udg_EggsBREED)
Set EggsNormal = (Units of type Normal Egg)
Unit Group - Pick every unit in EggsNormal and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Picked unit)) Less than or equal to 1.00
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Custom script: call DestroyGroup (udg_EggsNormal)
Set EggsNormal = (Units of type Normal Egg)
Unit Group - Pick every unit in EggsNormal and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Mana Shield) Equal to False
Then - Actions
Unit - Order (Picked unit) to Neutral Naga Sea Witch - Activate Mana Shield
Else - Actions
Custom script: call DestroyGroup (udg_EggsNormal)
Set EggsSlime = (Units of type Slimey Egg)
Unit Group - Pick every unit in EggsSlime and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Picked unit)) Less than or equal to 1.00
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Custom script: call DestroyGroup (udg_EggsSlime)
Set EggsSlime = (Units of type Slimey Egg)
Unit Group - Pick every unit in EggsSlime and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Mana Shield) Equal to False
Then - Actions
Unit - Order (Picked unit) to Neutral Naga Sea Witch - Activate Mana Shield
Else - Actions
Custom script: call DestroyGroup (udg_EggsSlime)
Set EggsBIG = (Units of type Big Egg)
Unit Group - Pick every unit in EggsBIG and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Picked unit)) Less than or equal to 1.00
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Custom script: call DestroyGroup (udg_EggsBIG)
Set EggsBIG = (Units of type Big Egg)
Unit Group - Pick every unit in EggsBIG and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Mana Shield) Equal to False
Then - Actions
Unit - Order (Picked unit) to Neutral Naga Sea Witch - Activate Mana Shield
Else - Actions
Custom script: call DestroyGroup (udg_EggsBIG)