| 08-30-2004, 03:19 PM | #1 |
I want to create a multiboard, but i got as far as creating it. How do i add players and integers, or can someone create me a set of triggers that would create 3 leaderboards and bring them up at different time. I can do the updating myself Please help me |
| 08-30-2004, 03:51 PM | #2 |
Code:
Multiboard
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Multiboard - Create a multiboard with 2 columns and ((Number of players in (All players matching (((Matching player) controller) Equal to User))) + 1) rows, titled XXXXXX
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |cff904040Players|r
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to |cff904040Kills|r
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to |cff904040Hero Leve...
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))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to (Name of Player 4 (Purple))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to (Name of Player 5 (Yellow))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to (Name of Player 6 (Orange))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 8 to (Name of Player 7 (Green))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 9 to (Name of Player 8 (Pink))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 10 to (Name of Player 9 (Gray))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 11 to (Name of Player 10 (Light Blue))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 12 to (Name of Player 11 (Dark Green))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 13 to (Name of Player 12 (Brown))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 6 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 7 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 8 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 9 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 10 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 11 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 12 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 13 to (String(0))Well, thats how I set it up anyway, I havn't quite perfected my updating trigger yet, but if you still wanna see it I'll post it later. |
| 08-30-2004, 04:35 PM | #3 |
Thanx for the help Cou;d you post the updating trigger for me please, i can't update mulitboards :S I wish multiboards worked like leaderboards but nvm Thanx again |
| 08-30-2004, 04:56 PM | #4 |
Code:
Update Multiboard Kills
Events
Unit - A unit Dies
Conditions
Actions
-------- Kill Count --------
Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 2 to (String(Kills[1]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 2 (Blue)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 3 to (String(Kills[2]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 3 (Teal)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 4 to (String(Kills[3]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 4 (Purple)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 5 to (String(Kills[4]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 5 (Yellow)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 6 to (String(Kills[5]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 6 (Orange)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 7 to (String(Kills[6]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 7 (Green)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 8 to (String(Kills[7]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 8 (Pink)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 9 to (String(Kills[8]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 9 (Gray)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 10 to (String(Kills[9]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 10 (Light Blue)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 11 to (String(Kills[10]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 11 (Dark Green)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 12 to (String(Kills[11]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 12 (Brown)
Then - Actions
Multiboard - Set the text for MultiboardKills item in column 2, row 13 to (String(Kills[12]))
Else - ActionsThis has to be done as a seperate trigger obviously and you have to set the multiboard itself has a Variable so that you can transfer the integers into it. In the example I gave you "MultiboardKills" is the variable I set the multiboard to. and "Kills" is a Integer variable with an array of 12. I can't promise this will work perfectly, but it should at the very least get you started. |
| 08-30-2004, 05:09 PM | #5 |
How bout using this instead Multiboard - Ste the text for MultiboardKills item in column 2 row (player number of (owner of killing unit)) + 1to String(Kills[Player number of (owner of killing unit))] good bye if/thens |
| 08-30-2004, 05:24 PM | #6 |
haha, ya that does work actually, silly me... wonder why never tried that. Oh and I forgot to mention if you want there to 'titles' above the players names/kills (so that players know what is being displayed there) all you ahve to do is make an extra row for the multiboard. Then on the updating triggers you just do Arithmatic and do a +1 on the row part so that it shows up at the right spot. |
| 08-31-2004, 06:37 AM | #7 |
Using Ceo's trigger you can add everything to the leaderboard in a few seconds with 5 Actions. Nice work m8 |
| 08-31-2004, 06:58 AM | #8 | |
Quote:
u know those things we call loops? Code:
Multiboard - Create a multiboard with 2 columns and nMaxPlayers + 1 rows, titled XXXXXX
For each Integer A from 1 to nMaxPlayers
Multiboard - Set the text for (Last created multiboard) item in column 1, row Integer A + 1 to (Name of Convert Player Index(Integer A))
)
Multiboard - Set the text for (Last created multiboard) item in column 2, row Integer A + 1 to (Kills[Integer A]) |
| 08-31-2004, 04:46 PM | #9 |
Do I have to do an action for each hero type if i want to change the icon to trained unit's Icon Can i do this? Event---- Unit - A unit finishes training a unit Conditions---- None Actions---- Multiboard - Set the Icon for [Multiboard] item in column 3, row ([Player number of[owner of[triggering unit]]]+1) to (string[[Unit type of[triggering unit]]]) |
| 08-31-2004, 05:12 PM | #10 | |
Quote:
yeah uh, nMaxPlayers is integer value 12 yes? |
| 09-01-2004, 07:32 AM | #11 |
No nMaxPlayers is meant to be the number of players playing (i think but i didn't post it so I'm not sure |
| 09-02-2004, 07:48 AM | #12 |
Please help me :'( |
