Question:How not to give brown the unit

brodygs9630

TH.net Regular
Reaction score
6
I am working on a map right now,and I used the hero arena strat on making the Units at the start of the map.The problem is,I don't want EVERY player to get the Unit.I want it so that players 1-11 get an Explorer,and player 12 doesn't get the explorer.

My Hero Make Trigger:

Trigger:
  • Events
    • Time - Elapsed game time is 20.00 seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
              • ((Picked player) slot status) Equal to Is playing
            • Then - Actions
              • Unit - Create 1 Human Explorer for (Picked player) at ((Picked player) start location) facing Default building facing degrees
            • Else - Actions
              • Do nothing


This is what I'm using to spawn the Explorers,but it also gives Brown one too,but I don't want him to have an explorer.

Please Help!

PS: Help = +rep
 

AgentPaper

From the depths, I come.
Reaction score
107
:confused:

...You're either doing something way above my head, or you posted the wrong triggers there. :p
 

Exide

I am amazingly focused right now!
Reaction score
448
This should work:

Trigger:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • Player Group - Add (Player((Integer A))) to tempforce
      • Player Group - Pick every player in tempforce and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Footman for (Picked player) at ((Picked player) start location) facing Default building facing degrees
      • Custom script: call DestroyForce(udg_tempforce)


-Just change 'Footman' to 'Explorer'.


EDIT: You can also do this:

Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
      • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
    • Actions
      • Unit - Remove (Triggering unit) from the game


-Again, change 'Footman' into 'Explorer'.
 
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