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

Multiboard Question

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
A board shows Players even if they aren't in the game. If any player is in the game, the board shows the player name correctly, but if there is no player in certain slot, the board still shows it with Player (number of the slot). How to make a board display Players Name that are in the game ? Or a computer of course.
 
Level 12
Joined
May 22, 2015
Messages
1,051
First, you need to know how many players are playing and who they are. Before worrying about the multiboard, you should have a check at the start of the game. Something like:
  • Events
    • Map Initialisation
  • Conditions
  • Actions
    • For each Integer A from 1 to 12 do (Multiple Actions)
      • Actions
        • If (Multiple Actions)
          • Conditions
          • Then
            • Player Group - Add Player(Integer A) to PlayingPlayers
          • Else
This is incomplete because I don't remember what the condition looks like. There is a condition that checks the status of a player and it allows you to check if they are a computer player, a regular player, or not playing. You need to add that into the if conditions.

Then you can refer to this group when you need to refer to all the players. Your multiboard should only have one column for each playing player. Loop over the player group to fill in the information for each player.
 
Status
Not open for further replies.
Top