• 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.

Game starts when everyone chooses a unit trigger

Status
Not open for further replies.
Level 4
Joined
Aug 3, 2008
Messages
58
I need help on a trigger. Ok.. Theres an area surrounded by boundary where you choose your unit. Then after you choose the unit, you get it and it gets moved to a region. That unit can move but cant leave the region. The problem is how do I make it so that once after all the players choose their unit they will be able to leave the region. thanks in advance n_n
 
Level 3
Joined
Jul 6, 2005
Messages
51
If the region where you chose a hero containts i.e a Whisp, make it so that when there are 0 Whisps left, they can move. :)

There are other ways to do it, but this is the one i can come up with atm (so sleeepy)
edit: something like this... might leak if multiple units leaves at once.
  • Release Hero
    • Events
      • Unit - A unit leaves Closed Region <gen>
    • Conditions
      • Whisp_Count Greater than 0
    • Actions
      • Unit - Order (Leaving unit) to Move To (Random point in Closed Region <gen>)
 
Level 4
Joined
Aug 3, 2008
Messages
58
thats not what i really meant but that whisp count gave me many trigger ideas to solve my problem thanks =D
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
store all heroes in a variable named Hero
like Player 1 chooses hero
Hero[1] becomes hero of player 1

  • Events
    • Unit - Unit sells unit
  • Conditions
  • Actions
    • Set Hero[Player number of (owner of buying unit)] = Sold Unit
    • For Each integer from 1 to <number of players>
      • Loop - Actions
        • If then else multiple actions
          • Conditions
            • if Hero[integer A] is equal to no unit
          • Then - Actions
            • Skip remaining actions
          • Else - Actions
    • OMFG - Remove the boundaries
And give random heroes to ones who doesnt select in X seconds so players wont wait until a power cut
 
Status
Not open for further replies.
Top