Mass teleport with no target

Siwao9

New Member
Reaction score
0
Hi all, this used to work with single Unit (Picked unit was Hero manipulating item) but now that I try the same thing with Unit Group it doesnt work:

------------------------------------------------------------------------------------------------------------------------------------------------------------------

MT
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to MT
Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
Wait 1.00 seconds
Sound - Play MassTeleportTarget <gen>
Special Effect - Destroy (Last created special effect)
Unit - Move (Picked unit) instantly to (Random point in Region 001 <gen>)
Camera - Apply Camera 011 <gen> for Player 1 (Red) over 0.00 seconds
Wait 1.00 seconds
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
Sound - Play MassTeleportTarget <gen>
Wait 2.00 seconds
Special Effect - Destroy (Last created special effect)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------

my map only contains 3 (Player 1) Units so it can't be that...where's the mistake?

Thanx in advance!


=)
 

Grags_1977

Ultra Cool Member
Reaction score
32
My guess is the wait. Waits allways screw up loops.


Also, please use wc3 tags when pasting triggers. It's much much easier for us to read and help you. Because of this the triggers you have posted it's very hard to see where the loop ends.

Example:
[.wc3]
Paste your trigger here
[./wc3]

Remove the .



EDIT: If you edit your first post with a reposted trigger, I can possibly help you more. But again, if the wait is inside the unit group loop then that's probably where your problem is.
 

Siwao9

New Member
Reaction score
0
Ok that was it, thanx a bunch Grags!

It's just that now it doesn't look like Mass Teleport with special effects at all it's just instant move...oh well I'll try something else.

not sure where to put the [/wc3] thing tho, I just use "copy as text" and paste with mouse from Trigger Editor to here....it looks normal in preview post.

=)
 

Grags_1977

Ultra Cool Member
Reaction score
32
[.wc3]
Your whole trigger
[./wc3]



Example Trigger

[.wc3]
Trigger:
  • Trigger
    • Events
      • Some Cool Event
    • Conditions
      • Some Cool Condition
    • Actions
      • Some Cool Action
[./wc3]


And you're welcome for the help :)
 

keychup

Active Member
Reaction score
34
make the item have a channel ability.

have the following as triggers;

event: a unit finishes casting an ability
conditions: specify the ability being cast
actions: move the desired units. no need to wait. by having the item channel the ability, and having the trigger not run until the unit finishes casting the ability is enough waiting.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top