• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Having slight problems with teleports...

Status
Not open for further replies.
Level 2
Joined
Aug 19, 2009
Messages
14
Ok, basically I'm making an arena map which is team based.

However, i need to get every player to go into the boss arena at the same time.

How would i do this?:vw_wtf:

P.S: Ive got an area ready to trigger and such, i just need to know how to do it.

thanks for any responses
 
Level 13
Joined
Jun 1, 2008
Messages
360
the action is called

unit group - pick every unit in unit group

then you need an if-statement (at the top of the list) with boolean and player comparison.

the trigger editor offers a search field to find actions quickly, though it is already pretty organized in categories.

just look around a little, that's the best way to learn
 
Level 2
Joined
Aug 19, 2009
Messages
14
thats confused me more...i can understand the pick every unit in unit group.

i DONT get the If statements

im new, so go easy on me :)
 
Level 4
Joined
Nov 24, 2010
Messages
62
  • Actions
    • Set HeroGroup = (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Owner of (Matching unit)) controller) Equal to User)))
    • Unit Group - Pick every unit in HeroGroup and do (Actions)
      • Loop - Actions
        • Unit - Move (Picked unit) instantly to Arena
    • Custom script: call DestroyGroup(udg_HeroGroup)
If you can, should set the hero of each player into variables.
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Set Hero[(Integer A)] = (Random unit from (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((Owner of (Matching unit)) Equal to (Player((Integer A)))))))
And use variable as hero
  • Actions
    • Unit - Move Hero[1] instantly to Arena
    • Unit - Move Hero[2] instantly to Arena
    • Unit - Move Hero[3] instantly to Arena
    • Unit - Move Hero[4] instantly to Arena
  • ...
 
Status
Not open for further replies.
Top