- Joined
- Jul 18, 2010
- Messages
- 332
These anubis statues of mine are obviously statues in the game that will fire lasers for every 15 secs. You can destroy them which will give them a 30 sec delay instead of 15 secs. The only problem is they will infinitely use the laser without the 15 or 30 secs. Like after they use it they will use it again and again and again. Here are the triggers
I think I should just use timers for this one, I don't even know why I did it like this.
- Unit - Create 1 Anubis Statue for Neutral Hostile at riflemanpoint_Copy_3 facing 180.00 degrees
- Hashtable - Save 15 as 5 of (Key (Last created unit)) in aoehashtable
- Unit Group - Add (Last created unit) to statues
- Unit - Create 1 Anubis Statue for Neutral Hostile at riflemanpoint_Copy_2 facing 0.00 degrees
- Hashtable - Save 15 as 5 of (Key (Last created unit)) in aoehashtable
- Unit Group - Add (Last created unit) to statues
- Unit - Create 1 Anubis Statue for Neutral Hostile at riflemanpoint_Copy_8 facing 0.00 degrees
- Hashtable - Save 15 as 5 of (Key (Last created unit)) in aoehashtable
- Unit Group - Add (Last created unit) to statues
- Unit - Create 1 Anubis Statue for Neutral Hostile at riflemanpoint_Copy_9 facing 180.00 degrees
- Hashtable - Save 15 as 5 of (Key (Last created unit)) in aoehashtable
- Unit Group - Add (Last created unit) to statues
- Hashtable - Save 15 as 5 of (Key (Last created unit)) in aoehashtable
- Unit Group - Add (Last created unit) to statues
I think I should just use timers for this one, I don't even know why I did it like this.
-
seth pyramid statues
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in statues and do (Actions)
-
Loop - Actions
- Set aoetime = (Load 5 of (Key (Picked unit)) from aoehashtable)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Load 5 of (Key (Picked unit)) from aoehashtable) Greater than 0.00
-
Then - Actions
- Hashtable - Save (aoetime - 1.00) as 5 of (Key (Picked unit)) in aoehashtable
-
Else - Actions
- Hashtable - Clear all child hashtables of child (Key (Picked unit)) in aoehashtable
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Load 5 of (Key (Picked unit)) from aoehashtable) Equal to 0.00
-
Then - Actions
- Unit - Add Anubis Statue to (Picked unit)
- Unit - Order (Picked unit) to Special Rexxar - Battle Roar
- Unit Group - Remove (Picked unit) from statues
- Else - Actions
-
If - Conditions
-
Loop - Actions
-
Unit Group - Pick every unit in statues and do (Actions)
-
Events
-
aoe spell 13
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Anubis Statue
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Set aoeunit = (Triggering unit)
- Hashtable - Save Handle Ofaoeunit as 2 of (Key (Triggering unit)) in aoehashtable
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Anubis Statue
-
Then - Actions
- Set aoetime = 1.50
- Sound - Play MonsoonLightningHit <gen> at 100.00% volume, attached to (Triggering unit)
- Hashtable - Save aoetime as 1 of (Key (Triggering unit)) in aoehashtable
- Hashtable - Save Handle Of(Position of (Triggering unit)) as 3 of (Key (Triggering unit)) in aoehashtable
- Hashtable - Save Handle Of((Load 3 of (Key (Triggering unit)) in aoehashtable) offset by 150.00 towards (Facing of (Triggering unit)) degrees) as 4 of (Key (Triggering unit)) in aoehashtable
- Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Orc\FeralSpirit\feralspirittarget.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Orc\FeralSpirit\feralspirittarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Create 1 Plasma Laser for (Owner of (Triggering unit)) at (Load 4 of (Key (Triggering unit)) in aoehashtable) facing (Facing of (Triggering unit)) degrees
- Animation - Change (Last created unit)'s size to (200.00%, 200.00%, 200.00%) of its original size
- Animation - Change (Last created unit)'s vertex coloring to (100.00%, 16.50%, 16.50%) with 0.00% transparency
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Else - Actions
-
If - Conditions
-
Events
-
aoe spell Copy 13
-
Events
- Time - Every 0.18 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in aoegroup_Copy_13 and do (Actions)
-
Loop - Actions
- Set aoetime = (Load 1 of (Key (Picked unit)) from aoehashtable)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Load 1 of (Key (Picked unit)) from aoehashtable) Greater than 0.00
-
Then - Actions
- Hashtable - Save (aoetime - 0.18) as 1 of (Key (Picked unit)) in aoehashtable
-
Else - Actions
- Hashtable - Clear all child hashtables of child (Key (Picked unit)) in aoehashtable
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Load 1 of (Key (Picked unit)) from aoehashtable) Less than or equal to 0.00
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Picked unit)) Equal to Anubis Statue
-
Then - Actions
- Hashtable - Save 15 as 5 of (Key (Picked unit)) in aoehashtable
- Unit - Remove Anubis Statue from (Picked unit)
- Unit Group - Add (Picked unit) to statues
- Trigger - Turn on seth pyramid statues <gen>
- Unit - Create 1 Plasma Laser for (Owner of (Picked unit)) at (Load 4 of (Key (Picked unit)) in aoehashtable) facing (Facing of (Picked unit)) degrees
- Animation - Change (Last created unit)'s size to (600.00%, 600.00%, 600.00%) of its original size
- Animation - Change (Last created unit)'s vertex coloring to (100.00%, 16.50%, 16.50%) with 0.00% transparency
- Animation - Change (Last created unit)'s animation speed to 40.00% of its original speed
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Unit - Create 1 scream for (Owner of (Picked unit)) at (Load 3 of (Key (Picked unit)) in aoehashtable) facing (Facing of (Picked unit)) degrees
- Animation - Change (Last created unit)'s vertex coloring to (100.00%, 16.50%, 16.50%) with 0.00% transparency
- Animation - Change (Last created unit)'s size to (225.00%, 100.00%, 100.00%) of its original size
- Animation - Change (Last created unit)'s animation speed to 40.00% of its original speed
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Unit - Create 1 scream for (Owner of (Picked unit)) at (Load 3 of (Key (Picked unit)) in aoehashtable) facing (Facing of (Picked unit)) degrees
- Animation - Change (Last created unit)'s vertex coloring to (100.00%, 16.50%, 16.50%) with 0.00% transparency
- Animation - Change (Last created unit)'s size to (200.00%, 100.00%, 100.00%) of its original size
- Animation - Change (Last created unit)'s animation speed to 40.00% of its original speed
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Unit - Create 1 scream for (Owner of (Picked unit)) at (Load 3 of (Key (Picked unit)) in aoehashtable) facing (Facing of (Picked unit)) degrees
- Animation - Change (Last created unit)'s vertex coloring to (100.00%, 16.50%, 16.50%) with 0.00% transparency
- Animation - Change (Last created unit)'s size to (175.00%, 100.00%, 100.00%) of its original size
- Animation - Change (Last created unit)'s animation speed to 40.00% of its original speed
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Set aoepoint_Copy = ((Load 4 of (Key (Picked unit)) in aoehashtable) offset by 200.00 towards (Facing of (Picked unit)) degrees)
- Sound - Play LightningBolt <gen> at 100.00% volume, located at aoepoint_Copy with Z offset 0.00
- Set aoetargetgroup = (Units within 270.00 of aoepoint_Copy matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of aoeunit)) Equal to False) and ((((Matching unit) is dead)
-
Unit Group - Pick every unit in aoetargetgroup and do (Actions)
-
Loop - Actions
- Unit - Cause aoeunit to damage (Picked unit), dealing 100000.00 damage of attack type Chaos and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Slow) Equal to False
-
Then - Actions
- Unit - Create 1 Plasma Laser Dummy for (Owner of aoeunit) at aoepoint_Copy facing Default building facing degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation (udg_aoepoint_Copy)
- Custom script: call DestroyGroup(udg_aoetargetgroup)
- Set aoepoint_Copy = ((Load 4 of (Key (Picked unit)) in aoehashtable) offset by 400.00 towards (Facing of (Picked unit)) degrees)
- Sound - Play LightningBolt <gen> at 100.00% volume, located at aoepoint_Copy with Z offset 0.00
- Set aoetargetgroup = (Units within 270.00 of aoepoint_Copy matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of aoeunit)) Equal to False) and ((((Matching unit) is dead)
-
Unit Group - Pick every unit in aoetargetgroup and do (Actions)
-
Loop - Actions
- Unit - Cause aoeunit to damage (Picked unit), dealing 100000.00 damage of attack type Chaos and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Slow) Equal to False
-
Then - Actions
- Unit - Create 1 Plasma Laser Dummy for (Owner of aoeunit) at aoepoint_Copy facing Default building facing degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation (udg_aoepoint_Copy)
- Custom script: call DestroyGroup(udg_aoetargetgroup)
- Set aoepoint_Copy = ((Load 4 of (Key (Picked unit)) in aoehashtable) offset by 600.00 towards (Facing of (Picked unit)) degrees)
- Sound - Play LightningBolt <gen> at 100.00% volume, located at aoepoint_Copy with Z offset 0.00
- Set aoetargetgroup = (Units within 270.00 of aoepoint_Copy matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of aoeunit)) Equal to False) and ((((Matching unit) is dead)
-
Unit Group - Pick every unit in aoetargetgroup and do (Actions)
-
Loop - Actions
- Unit - Cause aoeunit to damage (Picked unit), dealing 100000.00 damage of attack type Chaos and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Slow) Equal to False
-
Then - Actions
- Unit - Create 1 Plasma Laser Dummy for (Owner of aoeunit) at aoepoint_Copy facing Default building facing degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation (udg_aoepoint_Copy)
- Custom script: call DestroyGroup(udg_aoetargetgroup)
- Set aoepoint_Copy = ((Load 4 of (Key (Picked unit)) in aoehashtable) offset by 800.00 towards (Facing of (Picked unit)) degrees)
- Sound - Play LightningBolt <gen> at 100.00% volume, located at aoepoint_Copy with Z offset 0.00
- Set aoetargetgroup = (Units within 270.00 of aoepoint_Copy matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of aoeunit)) Equal to False) and ((((Matching unit) is dead)
-
Unit Group - Pick every unit in aoetargetgroup and do (Actions)
-
Loop - Actions
- Unit - Cause aoeunit to damage (Picked unit), dealing 100000.00 damage of attack type Chaos and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Slow) Equal to False
-
Then - Actions
- Unit - Create 1 Plasma Laser Dummy for (Owner of aoeunit) at aoepoint_Copy facing Default building facing degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation (udg_aoepoint_Copy)
- Custom script: call DestroyGroup(udg_aoetargetgroup)
- Set aoepoint_Copy = ((Load 4 of (Key (Picked unit)) in aoehashtable) offset by 1000.00 towards (Facing of (Picked unit)) degrees)
- Sound - Play LightningBolt <gen> at 100.00% volume, located at aoepoint_Copy with Z offset 0.00
- Set aoetargetgroup = (Units within 270.00 of aoepoint_Copy matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of aoeunit)) Equal to False) and ((((Matching unit) is dead)
-
Unit Group - Pick every unit in aoetargetgroup and do (Actions)
-
Loop - Actions
- Unit - Cause aoeunit to damage (Picked unit), dealing 100000.00 damage of attack type Chaos and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Slow) Equal to False
-
Then - Actions
- Unit - Create 1 Plasma Laser Dummy for (Owner of aoeunit) at aoepoint_Copy facing Default building facing degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation (udg_aoepoint_Copy)
- Custom script: call DestroyGroup(udg_aoetargetgroup)
- Set aoepoint_Copy = ((Load 4 of (Key (Picked unit)) in aoehashtable) offset by 1200.00 towards (Facing of (Picked unit)) degrees)
- Sound - Play LightningBolt <gen> at 100.00% volume, located at aoepoint_Copy with Z offset 0.00
- Set aoetargetgroup = (Units within 270.00 of aoepoint_Copy matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of aoeunit)) Equal to False) and ((((Matching unit) is dead)
-
Unit Group - Pick every unit in aoetargetgroup and do (Actions)
-
Loop - Actions
- Unit - Cause aoeunit to damage (Picked unit), dealing 100000.00 damage of attack type Chaos and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Slow) Equal to False
-
Then - Actions
- Unit - Create 1 Plasma Laser Dummy for (Owner of aoeunit) at aoepoint_Copy facing Default building facing degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation (udg_aoepoint_Copy)
- Custom script: call DestroyGroup(udg_aoetargetgroup)
- Set aoepoint_Copy = ((Load 4 of (Key (Picked unit)) in aoehashtable) offset by 1400.00 towards (Facing of (Picked unit)) degrees)
- Sound - Play LightningBolt <gen> at 100.00% volume, located at aoepoint_Copy with Z offset 0.00
- Set aoetargetgroup = (Units within 270.00 of aoepoint_Copy matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of aoeunit)) Equal to False) and ((((Matching unit) is dead)
-
Unit Group - Pick every unit in aoetargetgroup and do (Actions)
-
Loop - Actions
- Unit - Cause aoeunit to damage (Picked unit), dealing 100000.00 damage of attack type Chaos and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Slow) Equal to False
-
Then - Actions
- Unit - Create 1 Plasma Laser Dummy for (Owner of aoeunit) at aoepoint_Copy facing Default building facing degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation (udg_aoepoint_Copy)
- Custom script: call DestroyGroup(udg_aoetargetgroup)
- Set aoepoint_Copy = ((Load 4 of (Key (Picked unit)) in aoehashtable) offset by 1600.00 towards (Facing of (Picked unit)) degrees)
- Sound - Play LightningBolt <gen> at 100.00% volume, located at aoepoint_Copy with Z offset 0.00
- Set aoetargetgroup = (Units within 270.00 of aoepoint_Copy matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of aoeunit)) Equal to False) and ((((Matching unit) is dead)
-
Unit Group - Pick every unit in aoetargetgroup and do (Actions)
-
Loop - Actions
- Unit - Cause aoeunit to damage (Picked unit), dealing 100000.00 damage of attack type Chaos and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Slow) Equal to False
-
Then - Actions
- Unit - Create 1 Plasma Laser Dummy for (Owner of aoeunit) at aoepoint_Copy facing Default building facing degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation (udg_aoepoint_Copy)
- Custom script: call DestroyGroup(udg_aoetargetgroup)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in aoegroup_Copy_13) Equal to 0
-
Then - Actions
- Trigger - Turn off (This trigger)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Unit Group - Pick every unit in aoegroup_Copy_13 and do (Actions)
-
Events