HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Multiboard

11-15-2006, 02:26 PM#1
TheSonOfCulture
I can't get this to work. What it is supposed to do is create a multiboard that has a label for East, and a label for West, and puts the correct players under each label.

Trigger:
Multiboard
Collapse Events
Time - Elapsed game time is 0.00 seconds
Conditions
Collapse Actions
Collapse For each (Integer A) from 1 to 12, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Collapse Then - Actions
Set TotalPlayers = (TotalPlayers + 1)
Collapse Else - Actions
Do nothing
Multiboard - Create a multiboard with 2 columns and (TotalPlayers + 2) rows, titled Archery Tactics
Collapse For each (Integer A) from 1 to (TotalPlayers + 2), do (Actions)
Collapse Loop - Actions
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 8.00% of the total screen width
Multiboard - Set the display style for (Last created multiboard) item in column 1, row (Integer A) to Show text and Hide icons
-------- East Side --------
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to East
Collapse For each (Integer A) from 1 to (Number of players in (All allies of Player 1 (Red))), do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Player(PlayerNumber)) slot status) Equal to Is playing
Collapse Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 1, row TempInt to (Name of (Player(PlayerNumber)))
Set TempInt = (TempInt + 1)
Set PlayerNumber = (PlayerNumber + 1)
Collapse Else - Actions
Do nothing
-------- West Side --------
Multiboard - Set the text for (Last created multiboard) item in column 1, row TempInt to West
Set TempInt = (TempInt + 1)
Set PlayerNumber = 7
Collapse For each (Integer A) from TempInt to (TempInt + (Number of players in (All allies of Player 7 (Green)))), do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Player(PlayerNumber)) slot status) Equal to Is playing
Collapse Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 1, row TempInt to (Name of (Player(PlayerNumber)))
Set TempInt = (TempInt + 1)
Set PlayerNumber = (PlayerNumber + 1)
Collapse Else - Actions
Do nothing
Trigger - Run StartGame <gen> (ignoring conditions)
11-16-2006, 02:59 PM#2
BertTheJasser
Go under tutorials and read it. There is even a add by me, for ganeral Multiboard sourcecode (in jass, the tut is in GUI).
11-16-2006, 03:59 PM#3
Matarael
I think you have to put a "set TotalPlayers = 0" at the start. Before all that "set TotalPlayers = TotalPlayers + 1".
11-16-2006, 05:15 PM#4
TheSonOfCulture
Quote:
Originally Posted by Matarael
I think you have to put a "set TotalPlayers = 0" at the start. Before all that "set TotalPlayers = TotalPlayers + 1".

This is set in the variable editor.
11-16-2006, 11:00 PM#5
[VDM]Amn
and what's the problem ?
post what the game does.