- Joined
- Oct 17, 2006
- Messages
- 151
Ever come back to your work in the future and say to yourself, wow thats a piece of crap...
I was looking over my Lay Egg ability in Bug Warz and it is indeed a piece of crap...
I think I should start completely off of scratch (with some notes of my old system) but I can't quite decide... any opinions?
I was looking over my Lay Egg ability in Bug Warz and it is indeed a piece of crap...
-
Lay Egg Spawn
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
(Unit-type of (Constructed structure)) Equal to Spider Egg
-
-
Actions
-
Set Spider_Egg_eggalive = True
-
Set Spider_Egg_egghatched = False
-
Unit - Add a 120.00 second Generic expiration timer to (Constructed structure)
-
Wait 119.00 seconds
-
Set Spider_Egg_egghatched = True
-
Wait 0.75 seconds
-
Cinematic - Ping minimap for (Player group((Owner of (Constructed structure)))) at (Position of (Constructed structure)) for 1.00 seconds, using a Flashy ping of color (50.00%, 100.00%, 50.00%)
-
Game - Display to (All players matching ((Matching player) Equal to Spider_Owner)) the text: |cff32cd32One of yo...
-
-------- Spiderlings Spawn --------
-
-------- Cycle1 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Spider_Egg_eggalive Equal to True
-
Spider_Egg_SmallerSpiderCycle Equal to 1
-
-
Then - Actions
-
-------- Spider Egg Level 1 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Spider_Egg_lvl Equal to 1
-
-
Then - Actions
-
Unit - Create 5 Spiderling for Spider_Owner at (Position of (Constructed structure)) facing (Random angle) degrees
-
Unit Group - Pick every unit in (Last created unit group) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to Spider_Egg_Spiderling1
-
Unit - Add a 180.00 second Generic expiration timer to (Picked unit)
-
-
-
Wait 179.75 seconds
-
Unit - Replace (Random unit from Spider_Egg_Spiderling1) with a Smaller Spider using The old unit's relative life and mana
-
Special Effect - Create a special effect attached to the overhead of (Last replaced unit) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Unit Group - Remove (Last replaced unit) from Spider_Egg_Spiderling1
-
Unit Group - Add (Last replaced unit) to Spider_Egg_smallerspider_1
-
Unit - Add a 300.00 second Generic expiration timer to (Last replaced unit)
-
Set Spider_Egg_SmallerSpiderCycle = 2
-
Wait 299.00 seconds
-
Unit Group - Pick every unit in Spider_Egg_smallerspider_1 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Unit - Replace (Picked unit) with a Spider using The old unit's relative life and mana
-
Unit Group - Remove (Picked unit) from Spider_Egg_smallerspider_1
-
Special Effect - Create a special effect attached to the overhead of (Last replaced unit) using Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl
-
-
Else - Actions
-
Unit Group - Remove (Picked unit) from Spider_Egg_smallerspider_1
-
-
-
-
-
-
Else - Actions
-
-
-------- Spider Egg Level 2 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Spider_Egg_lvl Equal to 2
-
-
Then - Actions
-
Unit - Create 6 Spiderling for Spider_Owner at (Position of (Constructed structure)) facing (Random angle) degrees
-
Unit Group - Pick every unit in (Last created unit group) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to Spider_Egg_Spiderling1
-
Unit - Add a 180.00 second Generic expiration timer to (Picked unit)
-
-
-
Wait 179.75 seconds
-
Unit - Replace (Random unit from Spider_Egg_Spiderling1) with a Smaller Spider using The old unit's relative life and mana
-
Special Effect - Create a special effect attached to the overhead of (Last replaced unit) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Unit Group - Remove (Last replaced unit) from Spider_Egg_Spiderling1
-
Unit Group - Add (Last replaced unit) to Spider_Egg_smallerspider_1
-
Unit - Add a 300.00 second Generic expiration timer to (Last replaced unit)
-
Unit - Replace (Random unit from Spider_Egg_Spiderling1) with a Smaller Spider using The old unit's relative life and mana
-
Special Effect - Create a special effect attached to the overhead of (Last replaced unit) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Unit Group - Remove (Last replaced unit) from Spider_Egg_Spiderling1
-
Unit Group - Add (Last replaced unit) to Spider_Egg_smallerspider_1
-
Unit - Add a 300.00 second Generic expiration timer to (Last replaced unit)
-
Set Spider_Egg_SmallerSpiderCycle = 2
-
Wait 299.00 seconds
-
Unit Group - Pick every unit in Spider_Egg_smallerspider_1 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Unit - Replace (Picked unit) with a Spider using The old unit's relative life and mana
-
Unit Group - Remove (Picked unit) from Spider_Egg_smallerspider_1
-
Special Effect - Create a special effect attached to the overhead of (Last replaced unit) using Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl
-
-
Else - Actions
-
Unit Group - Remove (Picked unit) from Spider_Egg_smallerspider_1
-
-
-
-
-
-
Else - Actions
-
-
-------- Spider Egg Level 3 --------
-
-------- Spider Egg Level 4 --------
-
-------- Spider Egg Level 5 --------
-
-------- Spider Egg Level 6 --------
-
-
Else - Actions
-
-
-------- Cycle2 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Spider_Egg_eggalive Equal to True
-
Spider_Egg_SmallerSpiderCycle Equal to 1
-
-
Then - Actions
-
-------- Spider Egg Level 1 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Spider_Egg_lvl Equal to 1
-
-
Then - Actions
-
Unit - Create 5 Spiderling for Spider_Owner at (Position of (Constructed structure)) facing (Random angle) degrees
-
Unit Group - Pick every unit in (Last created unit group) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to Spider_Egg_spiderling_2
-
Unit - Add a 180.00 second Generic expiration timer to (Picked unit)
-
-
-
Wait 179.75 seconds
-
Unit - Replace (Random unit from Spider_Egg_spiderling_2) with a Smaller Spider using The old unit's relative life and mana
-
Special Effect - Create a special effect attached to the overhead of (Last replaced unit) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Unit Group - Remove (Last replaced unit) from Spider_Egg_spiderling_2
-
Unit Group - Add (Last replaced unit) to Spider_Egg_smallerspider_2
-
Unit - Add a 300.00 second Generic expiration timer to (Last replaced unit)
-
Set Spider_Egg_SmallerSpiderCycle = 1
-
Wait 299.00 seconds
-
Unit Group - Pick every unit in Spider_Egg_smallerspider_2 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Unit - Replace (Picked unit) with a Spider using The old unit's relative life and mana
-
Unit Group - Remove (Picked unit) from Spider_Egg_smallerspider_2
-
Special Effect - Create a special effect attached to the overhead of (Last replaced unit) using Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl
-
-
Else - Actions
-
Unit Group - Remove (Picked unit) from Spider_Egg_smallerspider_2
-
-
-
-
-
-
Else - Actions
-
-
-------- Spider Egg Level 2 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Spider_Egg_lvl Equal to 1
-
-
Then - Actions
-
Unit - Create 6 Spiderling for Spider_Owner at (Position of (Constructed structure)) facing (Random angle) degrees
-
Unit Group - Pick every unit in (Last created unit group) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to Spider_Egg_spiderling_2
-
Unit - Add a 180.00 second Generic expiration timer to (Picked unit)
-
-
-
Wait 179.75 seconds
-
Unit - Replace (Random unit from Spider_Egg_spiderling_2) with a Smaller Spider using The old unit's relative life and mana
-
Special Effect - Create a special effect attached to the overhead of (Last replaced unit) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Unit Group - Remove (Last replaced unit) from Spider_Egg_spiderling_2
-
Unit Group - Add (Last replaced unit) to Spider_Egg_smallerspider_2
-
Unit - Add a 300.00 second Generic expiration timer to (Last replaced unit)
-
Set Spider_Egg_SmallerSpiderCycle = 1
-
Wait 299.00 seconds
-
Unit Group - Pick every unit in Spider_Egg_smallerspider_2 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Unit - Replace (Picked unit) with a Spider using The old unit's relative life and mana
-
Unit Group - Remove (Picked unit) from Spider_Egg_smallerspider_2
-
Special Effect - Create a special effect attached to the overhead of (Last replaced unit) using Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl
-
-
Else - Actions
-
Unit Group - Remove (Picked unit) from Spider_Egg_smallerspider_2
-
-
-
-
-
-
Else - Actions
-
-
-------- Spider Egg Level 3 --------
-
-------- Spider Egg Level 4 --------
-
-------- Spider Egg Level 5 --------
-
-------- Spider Egg Level 6 --------
-
-
Else - Actions
-
-
-