- Joined
- Aug 22, 2008
- Messages
- 911
Would anyone kindly help me to make this MUI and leakless? I will gladly accept and +rep any helper.
I will answer in this thread to any questions about the spell:
Idea: The idea of this spell is to teleport a unit through a portal it channels, where the target of the teleportation is to the target of the spell. The spell cancels whenever the unit is attacked or issued another order, but that's not the problem.
Dummy units: I use three dummy units in this spell: two for vision (one for each spell) and one for giving the casting unit a "Channel" buff (the one with the expiration timer). Again, the others I want to be able to kill when unit is attacked or issued an order.
29/1/09: Updated trigger due to neavea's and Nicokick's comments, added map.
2/2/09: Updated trigger, map. (Made dummy unit array)
BTW, my map here has some other spells.. Ignore them or pm me if you want to give feedback. Thanks!
-
Portal
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
- (Ability being cast) Equal to Summon Portal
-
Actions
- Unit - Make (Triggering unit) face (Facing of (Triggering unit)) over 0.00 seconds
- Destructible - Create a dead Shimmering Portal at ((Position of (Triggering unit)) offset by 300.00 towards (Facing of (Triggering unit)) degrees) facing ((Facing of (Triggering unit)) + 180.00) with scale 1.00 and variation 1
- Destructible - Resurrect (Last created destructible) with (Max life of (Last created destructible)) life and Show birth animation
- Set Portal1[0] = (Last created destructible)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of Portal1[0]) facing Default building facing degrees
- Set PortalDummy1[0] = (Last created unit)
- Region - Center Portal1 <gen> on ((Position of Portal1[0]) offset by 100.00 towards (Facing of (Triggering unit)) degrees)
- Destructible - Create a dead Shimmering Portal at (Target point of ability being cast) facing (Facing of (Triggering unit)) with scale 1.00 and variation 1
- Destructible - Resurrect (Last created destructible) with (Max life of (Last created destructible)) life and Show birth animation
- Set Portal2[0] = (Last created destructible)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of Portal2[0]) facing Default building facing degrees
- Set PortalDummy2[0] = (Last created unit)
- Region - Center Portal2 <gen> on ((Position of Portal2[0]) offset by 50.00 towards ((Facing of (Triggering unit)) + 180.00) degrees)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
- 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
- Unit - Turn collision for (Triggering unit) Off
- Unit - Order (Triggering unit) to Move To (Center of Portal1 <gen>)
- Wait until ((Distance between (Position of (Triggering unit)) and (Position of Portal1[0])) Less than or equal to 50.00), checking every 0.20 seconds
- Unit - Move (Triggering unit) instantly to (Center of Portal2 <gen>)
- Unit - Order (Triggering unit) to Move To ((Position of Portal2[0]) offset by 150.00 towards (Facing of (Triggering unit)) degrees)
- Wait 1.00 seconds
- Unit - Turn collision for (Triggering unit) On
- Destructible - Kill Portal1[0]
- Destructible - Kill Portal2[0]
- Wait 2.00 seconds
- Unit - Remove PortalDummy1[0] from the game
- Unit - Remove PortalDummy2[0] from the game
-
Events
Idea: The idea of this spell is to teleport a unit through a portal it channels, where the target of the teleportation is to the target of the spell. The spell cancels whenever the unit is attacked or issued another order, but that's not the problem.
Dummy units: I use three dummy units in this spell: two for vision (one for each spell) and one for giving the casting unit a "Channel" buff (the one with the expiration timer). Again, the others I want to be able to kill when unit is attacked or issued an order.
29/1/09: Updated trigger due to neavea's and Nicokick's comments, added map.
2/2/09: Updated trigger, map. (Made dummy unit array)
BTW, my map here has some other spells.. Ignore them or pm me if you want to give feedback. Thanks!
Attachments
Last edited: