I got a question, i got a multiboard that show the difficulty..
The Difficulty is set on how many playeres there is in the map..
i dont know if this the wrong way to do it, but heres the trigger so far.
Quote:
Start Set Diffculity And Multiboard
Events
Conditions
Actions
Set START_PLAYERS_INGAME = 0
Set DIFFICULTY = 100
Multiboard - Create a multiboard with 2 columns and 2 rows, titled |c00ffcc00Info|r
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 8.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 8.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 8.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row 2 to 8.00% of the total screen width
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to war3mapImported\Multi.BLP
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to war3mapImported\Multiboard.BLP
Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to war3mapImported\Multiboard.BLP
Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to war3mapImported\Multiboard.BLP
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |c00ffcc00Players|r
Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to |c00ffcc00Difficult...
Multiboard - Show (Last created multiboard)
Multiboard - Maximize (Last created multiboard)
Wait 2.00 seconds
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Player Group - Add (Picked player) to PLAYER_GROUP
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in PLAYER_GROUP) Equal to 1
Then - Actions
Set START_PLAYERS_INGAME = 1
Set DIFFICULTY = (DIFFICULTY + 25)
Player - Set Player 12 (Brown) handicap to (Real(DIFFICULTY))%
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|c00ffcc00 + (|c00ffcc00 + ((String(START_PLAYERS_INGAME)) + |r)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in PLAYER_GROUP) Equal to 2
Then - Actions
Set START_PLAYERS_INGAME = 2
Set DIFFICULTY = (DIFFICULTY + 50)
Player - Set Player 12 (Brown) handicap to (Real(DIFFICULTY))%
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|c00ffcc00 + (|c00ffcc00 + ((String(START_PLAYERS_INGAME)) + |r)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in PLAYER_GROUP) Equal to 3
Then - Actions
Set START_PLAYERS_INGAME = 3
Set DIFFICULTY = (DIFFICULTY + 75)
Player - Set Player 12 (Brown) handicap to (Real(DIFFICULTY))%
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|c00ffcc00 + (|c00ffcc00 + ((String(START_PLAYERS_INGAME)) + |r)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in PLAYER_GROUP) Equal to 4
Then - Actions
Set START_PLAYERS_INGAME = 4
Set DIFFICULTY = (DIFFICULTY + 100)
Player - Set Player 12 (Brown) handicap to (Real(DIFFICULTY))%
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|c00ffcc00 + (|c00ffcc00 + ((String(START_PLAYERS_INGAME)) + |r)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in PLAYER_GROUP) Equal to 5
Then - Actions
Set START_PLAYERS_INGAME = 5
Set DIFFICULTY = (DIFFICULTY + 125)
Player - Set Player 12 (Brown) handicap to (Real(DIFFICULTY))%
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|c00ffcc00 + (|c00ffcc00 + ((String(START_PLAYERS_INGAME)) + |r)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in PLAYER_GROUP) Equal to 6
Then - Actions
Set START_PLAYERS_INGAME = 6
Set DIFFICULTY = (DIFFICULTY + 150)
Player - Set Player 12 (Brown) handicap to (Real(DIFFICULTY))%
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|c00ffcc00 + (|c00ffcc00 + ((String(START_PLAYERS_INGAME)) + |r)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in PLAYER_GROUP) Equal to 7
Then - Actions
Set START_PLAYERS_INGAME = 7
Set DIFFICULTY = (DIFFICULTY + 175)
Player - Set Player 12 (Brown) handicap to (Real(DIFFICULTY))%
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|c00ffcc00 + (|c00ffcc00 + ((String(START_PLAYERS_INGAME)) + |r)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in PLAYER_GROUP) Equal to 8
Then - Actions
Set START_PLAYERS_INGAME = 8
Set DIFFICULTY = (DIFFICULTY + 200)
Player - Set Player 12 (Brown) handicap to (Real(DIFFICULTY))%
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|c00ffcc00 + (|c00ffcc00 + ((String(START_PLAYERS_INGAME)) + |r)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
Else - Actions
Any help to get here?|||replace all if-then after this line
"Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Player Group - Add (Picked player) to PLAYER_GROUP"
by this:
Set START_PLAYERS_INGAME = Number of players in PLAYER_GROUP
Set DIFFICULTY = (START_PLAYERS_INGAME * 25)
Player - Set Player 12 (Brown) handicap to (Real(DIFFICULTY))%
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|c00ffcc00 + (|c00ffcc00 + ((String(START_PLAYERS_INGAME)) + |r)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (|c00ffcc00 + (((String(DIFFICULTY)) + %) + |r))
No comments:
Post a Comment