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

Random player -> allways red!!?

Status
Not open for further replies.
Level 4
Joined
Apr 26, 2011
Messages
65
  • Unit - Create 1 Murloc for (Random player from (All players)) at (Random point in (Playable map area)) facing (Random angle)
can you tell me why it creates unit allways for red player????
 
Level 4
Joined
Apr 26, 2011
Messages
65
So i made "create visibility over playable map area" for player 1-12
then "create 1 unit for random player..."
BUT UNITS ARE STILL ONLY RED :vw_death:
 
Level 17
Joined
Jan 21, 2010
Messages
2,111
@millocz: did the player enabled just the player 1 red?
If in the force (all player, see the scenario -> player force, or something like that, afk from the pc) is only player 1 red, then even you scramble the player force to own a unit, it will be always the player 1's unit
 
Level 4
Joined
Apr 26, 2011
Messages
65
NO GUYS... i solved it pretty cleverly ;)

read everything carefully

1) i did nothing in Scenario > Player Properties
2) this is trigger that add all players to "all players" ... i absolutely dont know why but it works AND: it has nothing to do with visibility.
  • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Center of (Playable map area)) to a radius of 99999.00
  • Player Group - Add Player 1 (Red) to (All players)
  • Player Group - Add Player 2 (Blue) to (All players)
  • Player Group - Add Player 3 (Teal) to (All players)
  • Player Group - Add Player 4 (Purple) to (All players)
  • Player Group - Add Player 5 (Yellow) to (All players)
  • Player Group - Add Player 6 (Orange) to (All players)
  • Player Group - Add Player 7 (Green) to (All players)
  • Player Group - Add Player 8 (Pink) to (All players)
  • Player Group - Add Player 9 (Gray) to (All players)
  • Player Group - Add Player 10 (Light Blue) to (All players)
  • Player Group - Add Player 11 (Dark Green) to (All players)
  • Player Group - Add Player 12 (Brown) to (All players)
3) and then simply create random creep for random player
  • Events
    • Time - Every 0.40 seconds of game time
  • Conditions
  • Actions
    • Create 1 (Random level -1 creep unit-type) for (Random player from (All players)) at (Random point in (Playable map area)) facing (Random angle) degrees
 
Status
Not open for further replies.
Top