- Joined
- May 29, 2013
- Messages
- 1,566
EDIT: The ability seems to be working now.
I'm making an ability called Freezing Flood. It's based on Priestess of the Moon's Starfall. The ability has only one level and it's supposed to damage enemy buildings and slow nearby enemy ground unit's attack rate and movement speed. Since I barely have any experience in using triggers, please tell me if there is anything wrong with the triggers below (are there any leaks), and how can I improve it.
I'm making an ability called Freezing Flood. It's based on Priestess of the Moon's Starfall. The ability has only one level and it's supposed to damage enemy buildings and slow nearby enemy ground unit's attack rate and movement speed. Since I barely have any experience in using triggers, please tell me if there is anything wrong with the triggers below (are there any leaks), and how can I improve it.
-
Untitled Trigger 001
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Freezing Tide
-
-
Actions
-
Set Caster = (Triggering unit)
-
Set Owner = (Owner of Caster)
-
Set TempPoint = (Position of Caster)
-
Trigger - Turn on Untitled Trigger 002 <gen>
-
-
-
Untitled Trigger 002
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Unit - Create 1 Dummy (Caster) for Owner at TempPoint facing Default building facing degrees
-
Set DummyUnit = (Last created unit)
-
Unit - Add Frost Nova (Dummy) to DummyUnit
-
Unit - Add a 1.00 second Generic expiration timer to DummyUnit
-
Set Group = (Units within 1000.00 of TempPoint)
-
Unit Group - Pick every unit in Group and do (Actions)
-
Loop - Actions
-
Set TempUnit = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(TempUnit belongs to an enemy of Owner) Equal to True
-
(TempUnit is alive) Equal to True
-
(TempUnit is A structure) Equal to False
-
(TempUnit is A flying unit) Equal to False
-
-
Then - Actions
-
Unit - Order DummyUnit to Undead Lich - Frost Nova TempUnit
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup(udg_Group)
-
-
-
Untitled Trigger 003
-
Events
-
Unit - A unit Stops casting an ability
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Freezing Tide
-
-
Actions
-
Custom script: call RemoveLocation (udg_TempPoint)
-
Custom script: call DestroyGroup(udg_Group)
-
Trigger - Turn off Untitled Trigger 002 <gen>
-
-
-
Untitled Trigger 004
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Dying unit) Equal to Caster
-
-
Actions
-
Custom script: call RemoveLocation (udg_TempPoint)
-
Custom script: call DestroyGroup(udg_Group)
-
Trigger - Turn off Untitled Trigger 002 <gen>
-
-
Last edited: