- Joined
- Aug 22, 2008
- Messages
- 911
Greetings Empire,
A request, I have.
Please make the next couple of triggers leakless and comment about them... The idea is a portal spell.
A request, I have.
Please make the next couple of triggers leakless and comment about them... The idea is a portal spell.
-
Channel Portal
-
Events
-
Unit - A unit Begins channeling an ability
-
-
Conditions
-
(Ability being cast) Equal to Summon Portal
-
-
Actions
-
Set NumberOfCastedTimes = (NumberOfCastedTimes + 1)
-
Unit - Set the custom value of (Triggering unit) to NumberOfCastedTimes
-
Unit - Make (Triggering unit) face (Facing of (Triggering unit)) over 0.00 seconds
-
Set Point = ((Position of (Triggering unit)) offset by 300.00 towards (Facing of (Triggering unit)) degrees)
-
Destructible - Create a dead Shimmering Portal at Point facing ((Facing of (Triggering unit)) + 180.00) with scale 1.00 and variation 1
-
Custom script: call RemoveLocation(udg_Point)
-
Destructible - Resurrect (Last created destructible) with (Max life of (Last created destructible)) life and Show birth animation
-
Set Portal1[(Custom value of (Triggering unit))] = (Last created destructible)
-
Set Point = (Position of Portal1[(Custom value of (Triggering unit))])
-
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Point facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_Point)
-
Unit - Add a 14.00 second Force Of Nature expiration timer to (Last created unit)
-
Set PortalDummy1[(Custom value of (Triggering unit))] = (Last created unit)
-
Set Point = (Target point of ability being cast)
-
Destructible - Create a dead Shimmering Portal at Point facing (Facing of (Triggering unit)) with scale 1.00 and variation 1
-
Custom script: call RemoveLocation(udg_Point)
-
Destructible - Resurrect (Last created destructible) with (Max life of (Last created destructible)) life and Show birth animation
-
Set Portal2[(Custom value of (Triggering unit))] = (Last created destructible)
-
Set Point = (Position of Portal2[(Custom value of (Triggering unit))])
-
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Point facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_Point)
-
Unit - Add a 14.00 second Force Of Nature expiration timer to (Last created unit)
-
Set PortalDummy2[(Custom value of (Triggering unit))] = (Last created unit)
-
Set uPos = (Position of (Triggering unit))
-
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at uPos facing (Facing of (Triggering unit)) degrees
-
Custom script: call RemoveLocation(udg_uPos)
-
Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Triggering unit)
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Wait 8.20 seconds
-
If ((Walk to Portal <gen> is on) Equal to True) then do (Trigger - Run Walk to Portal <gen> (ignoring conditions)) else do (Do nothing)
-
Trigger - Turn on Walk to Portal <gen>
-
-
-
Walk to Portal
-
Events
-
Conditions
-
Actions
-
Unit - Turn collision for (Triggering unit) Off
-
Set Point = (Position of Portal1[(Custom value of (Triggering unit))])
-
Unit - Order (Triggering unit) to Move To Point
-
Custom script: call RemoveLocation(udg_Point)
-
Unit - Remove Channel buff from (Triggering unit)
-
Wait until ((Distance between (Position of (Triggering unit)) and (Position of Portal1[(Custom value of (Triggering unit))])) Less than or equal to 50.00), checking every 0.20 seconds
-
Set Point = ((Position of Portal2[(Custom value of (Triggering unit))]) offset by 100.00 towards ((Facing of (Triggering unit)) - 180.00) degrees)
-
Unit - Move (Triggering unit) instantly to Point
-
Custom script: call RemoveLocation(udg_Point)
-
Set Point = ((Position of (Triggering unit)) offset by 350.00 towards (Facing of (Triggering unit)) degrees)
-
Unit - Order (Triggering unit) to Move To Point
-
Custom script: call RemoveLocation(udg_Point)
-
Wait 1.00 seconds
-
Unit - Turn collision for (Triggering unit) On
-
Destructible - Kill Portal1[(Custom value of (Triggering unit))]
-
Destructible - Kill Portal2[(Custom value of (Triggering unit))]
-
Wait 3.00 seconds
-
Unit - Remove PortalDummy1[(Custom value of (Triggering unit))] from the game
-
Unit - Remove PortalDummy2[(Custom value of (Triggering unit))] from the game
-
Set NumberOfCastedTimes = (NumberOfCastedTimes - 1)
-
-
Last edited: