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

dumb variable question

Status
Not open for further replies.
Level 2
Joined
Jun 2, 2008
Messages
7
Is there a variable that picks 8 players ... or all players so all the players do the the same thing in 1 action

first boss arena
  • Events
    • Unit - A unit enters Region 006 <gen>
    • Conditions
    • Actions
      • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across Region 006 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 8 (Pink) emitting Visibility across Region 006 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 7 (Green) emitting Visibility across Region 006 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 6 (Orange) emitting Visibility across Region 006 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 5 (Yellow) emitting Visibility across Region 006 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 4 (Purple) emitting Visibility across Region 006 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 3 (Teal) emitting Visibility across Region 006 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 2 (Blue) emitting Visibility across Region 006 <gen>
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
do you have more then 8 players in your map (computer players do not count), if not you can use the "pick every player in <all players> and do actions" action, you can find it at playergroup

  • Events
    • Unit - A unit enters Region 006
  • Conditions
  • Actions
    • Playergroup - pick every player in all players and do Actions
      • Loop - Actions
        • Visibility - create an initially Enabled visibility modifier for picked player emitting Visibility across Region 006
 
Level 8
Joined
Nov 29, 2007
Messages
371
You don't mean variable, you mean function.
I will edit this post to make it more useful after dinner.
EDIT: I've finished dinner [it was delicious, thanks for asking.]. Variables are just values, you don't use them to pick anything. You could however set a unitgroup variable to the required 8 players at initialization and then call it whenever you need it.
If you didn't understand what I just said I suggest you use the search feature of this forum in association with the strings below:
  • variable
  • tutorial
Draz
 
Last edited:
Status
Not open for further replies.
Top