- Joined
- Mar 26, 2019
- Messages
- 55
Here is my trigger
-
Hollow Cannon Damage
-

Events
-


Time - Every 0.10 seconds of game time
-
-

Conditions
-

Actions
-


Set temp_group[0] = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Hollow Cannon Missle))
-


Unit Group - Pick every unit in temp_group[0] and do (Actions)
-



Loop - Actions
-




Set temp_point[0] = (Position of (Picked unit))
-




Set temp_group[1] = (Units within 200.00 of temp_point[0] matching (((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True))
-




Set temp_hero = Hero[(Player number of (Owner of (Picked unit)))]
-




Set temp_real = ((20.00 x (Real((Level of Hollow Cannon for temp_hero)))) + ((Real((Intelligence of temp_hero (Include bonuses)))) x (0.05 x (2.00 + (Real((Level of Hollow Cannon for temp_hero)))))))
-




Special Effect - Create a special effect at temp_point[0] using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
-




Special Effect - Destroy (Last created special effect)
-




Unit Group - Pick every unit in temp_group[1] and do (Actions)
-





Loop - Actions
-






Unit - Cause temp_hero to damage (Picked unit), dealing temp_real damage of attack type Spells and damage type Cold
-






Floating Text - Create floating text that reads (String(temp_real)) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
-






Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
-






Floating Text - Change (Last created floating text): Disable permanence
-






Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-
-
-




Custom script: call DestroyGroup(udg_temp_group[1])
-




Custom script: call RemoveLocation(udg_temp_point[1])
-




Custom script: set udg_temp_hero = null
-
-
-


Custom script: call DestroyGroup(udg_temp_group[0])
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of units in temp_group[0]) Greater than or equal to 1
-
-



Then - Actions
-



Else - Actions
-




Trigger - Turn off (This trigger)
-
-
-
-
-
Hollow Cannon
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


((Triggering unit) is A Hero) Equal to True
-


(Ability being cast) Equal to Hollow Cannon
-
-

Actions
-


Set temp_point[0] = (Position of (Triggering unit))
-


Set temp_point[1] = (Target point of ability being cast)
-


Unit - Create 1 Hollow Cannon Missle for (Owner of (Triggering unit)) at temp_point[0] facing temp_point[1]
-


Unit - Add a ((Distance between temp_point[0] and temp_point[1]) / 325.00) second Water Elemental expiration timer to (Last created unit)
-


Unit - Make (Last created unit) Explode on death
-


Trigger - Turn on Hollow Cannon Damage <gen>
-


Unit - Order (Last created unit) to Move To temp_point[1]
-


Custom script: call RemoveLocation(udg_temp_point[0])
-


Custom script: call RemoveLocation(udg_temp_point[1])
-
-
