• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 13
Joined
Nov 4, 2006
Messages
1,239
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