My map has a multiboard that has an integer as one of the strings, but when i change the integer it doesnt change on the multiboard ingame.
This is the multiboard
This is the trigger that changes the integer.
This is the multiboard
Code:
CreateScoreBox MultiboarVers
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Multiboard - Create a multiboard with 2 columns and 2 rows, titled Squares Controlled
Set MultiBoard = (Last created multiboard)
Multiboard - Set the text for MultiBoard item in column 1, row 1 to Team 1
Multiboard - Set the text for MultiBoard item in column 2, row 1 to Team 2
Multiboard - Set the width for MultiBoard item in column 1, row 1 to 8.00% of the total screen width
Multiboard - Set the width for MultiBoard item in column 2, row 1 to 8.00% of the total screen width
Multiboard - Set the width for MultiBoard item in column 1, row 2 to 8.00% of the total screen width
Multiboard - Set the width for MultiBoard item in column 2, row 2 to 8.00% of the total screen width
Multiboard - Set the text for MultiBoard item in column 1, row 2 to (String(TeamOneScore))
Multiboard - Set the text for MultiBoard item in column 2, row 2 to (String(TeamTwoScore))
This is the trigger that changes the integer.
Code:
Add Points Team1
Events
Unit - A unit Changes owner
Conditions
(Unit-type of (Ownership-changed unit)) Equal to Square Center (large)
Actions
Player Group - Pick every player in Team1 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Previous owner) Not equal to (Picked player)
Then - Actions
Wait 0.50 seconds
Set TeamOneScore = (TeamOneScore + 1)
Else - Actions
Do nothing