| 09-13-2004, 03:40 PM | #1 |
player = playername bunkers = amount of bunkers controlled marines = " marines " in a multiboard which counts those |
| 09-13-2004, 08:43 PM | #2 |
What's your problem?? |
| 09-13-2004, 08:49 PM | #3 |
Okaaay. I think you want this. You need 2 triggers and 2 variables. The first should be an integer array with the size of (Number of players in your map) called var_Bunker_Num. The second should be an integer array with the size of (Number of players in your may) called var_Marine_Num. Code:
Multiboard
Events
Time - Elapsed game time is 0.50 seconds (Can't run a multi-board trigger on map init.)
Conditions
Actions
Multiboard - Create a multiboard with Number_Of_Players columns and 3 rows, titled My Multiboard
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Bunkers
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Marines
Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (Name of Player 1 (Red))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to (Name of Player 2 (Blue))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to (Name of Player 3 (Teal))Code:
Update Multiboard
Events
Unit - A unit enters (Playable map area)
Unit - A unit Finishes training a unit
Unit - A unit Dies
Conditions
Actions
For each (Integer A) from 1 to Number_Of_Players, do (Actions)
Loop - Actions
Set var_Marine_Num[(Integer A)] = 0
Set var_Bunker_Num[(Integer A)] = 0
Unit Group - Pick every unit in (Units of type Marine) and do (Actions)
Loop - Actions
Set var_Marine_Num[(Player number of (Owner of (Picked unit)))] = (var_Marine_Num[(Player number of (Owner of (Picked unit)))] + 1)
Unit Group - Pick every unit in (Units of type Marine) and do (Actions)
Loop - Actions
Set var_Bunker_Num[(Player number of (Owner of (Picked unit)))] = (var_Bunker_Num[(Player number of (Owner of (Picked unit)))] + 1)
For each (Integer A) from 1 to Number_Of_Players, do (Actions)
Loop - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Integer A) + 1) to (String(var_Bunker_Num[(Integer A)]))
Multiboard - Set the text for (Last created multiboard) item in column 3, row ((Integer A) + 1) to (String(var_Marine_Num[(Integer A)])) |
