S
Starlite
Guest
ok so i got the lives and kills to work. but im having a little trouble with having the kills go in the right spot...
would it work if i did an if/then/else like this?
Code:
Create Multiboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Multiboard - Create a multiboard with 2 columns and 12 rows, titled ( Tower Defense - [Wave - + ((String(Wave_Number)) + ]))
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 4 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 4 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 7 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 7 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 10 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 10 to Show text and Hide icons
For each (Integer A) from 2 to 3, do (Actions)
Loop - Actions
Multiboard - Set the icon for (Last created multiboard) item in column 1, row (Integer A) to ReplaceableTextures\CommandButtons\BTNWisp.blp
Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
For each (Integer A) from 5 to 6, do (Actions)
Loop - Actions
Multiboard - Set the icon for (Last created multiboard) item in column 1, row (Integer A) to ReplaceableTextures\CommandButtons\BTNWisp.blp
Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
For each (Integer A) from 8 to 9, do (Actions)
Loop - Actions
Multiboard - Set the icon for (Last created multiboard) item in column 1, row (Integer A) to ReplaceableTextures\CommandButtons\BTNWisp.blp
Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
For each (Integer A) from 11 to 12, do (Actions)
Loop - Actions
Multiboard - Set the icon for (Last created multiboard) item in column 1, row (Integer A) to ReplaceableTextures\CommandButtons\BTNWisp.blp
Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Team 1 Lives
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String(Lives[1]))
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 Team 2 Lives
Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to (String(Lives[2]))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to (Name of Player 3 (Teal))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to (Name of Player 4 (Purple))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to Team 3 Lives
Multiboard - Set the text for (Last created multiboard) item in column 2, row 7 to (String(Lives[3]))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 8 to (Name of Player 5 (Yellow))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 9 to (Name of Player 6 (Orange))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 10 to Team 4 Lives
Multiboard - Set the text for (Last created multiboard) item in column 2, row 10 to (String(Lives[4]))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 11 to (Name of Player 7 (Green))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 12 to (Name of Player 8 (Pink))
For each (Integer B) from 1 to 12, do (Actions)
Loop - Actions
Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer B) to Show text and Hide icons
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer B) to 8.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer B) to 3.00% of the total screen width
Kills Update
Events
Unit - A unit Dies
Conditions
(Owner of (Dying unit)) Equal to Player 12 (Brown)
Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2, row (Player number of (Owner of (Killing unit))) to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
would it work if i did an if/then/else like this?
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
(Owner of (Killing unit)) Equal to Player 2 (Blue)
Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 1, row ((Player number of (Owner of (Killing unit))) + 1) to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
Else - Actions


