This one update current state for player 1 of team 1 with delay 1 sec. I stalemated with this when copy trigger for team 2:
Labels for player 1 of second team created in same coordinates as for player 1 of team 1. This is pretty unfortunately for me. Of couse I set another Y coordinates for offset
More mystic moment next: I did 2 separate dialogs with offset:
You're going about this entirely the wrong way. Don't create new labels every second, create and position them just once, and then update their text every second.
You can create a variable array of type 'dialog item'. Create the labels however you want them to appear, and save them to variables. For example:
// This would get run one time when you make the leaderboard
Dialog Item- Create label
Set variable LeaderboardLabels[1] = Last Created Dialog Item
Dialog Item- Create label
Set variable LeaderboardLabels[2] = Last Created Dialog Item
Dialog Item- Create label
Set variable LeaderboardLabels[3] = Last Created Dialog Item
etc....
Then when you update the scores, you can reference the variables.
// Whenever you want to update it (every second or so)
Set dialog item text for dialog item (LeaderboardLabels[1]) to (the score for player 1)
Set dialog item text for dialog item (LeaderboardLabels[2]) to (the score for player 2)
Set dialog item text for dialog item (LeaderboardLabels[2]) to (the score for player 3)
etc...
You could probably do it more efficiently if you used a loop. Something like this:
Pick each integer from 1 to 3
{
// Check if the player is alive
if (player 'picked integer' is alive)
{
Set dialog item text for dialog item (LeaderboardLabels[picked integer]) to (the score for player 'picked integer')
}
else
{
Set dialog item text for dialog item (LeaderboardLabels[picked integer]) to (the respawn time for player 'picked integer')
}
}
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
I making Leadearboard based on dialog labels. I did it before separately for each player for FFA mode in another map and it work perfect.
At first I done:
Then another trigger:
This one update current state for player 1 of team 1 with delay 1 sec. I stalemated with this when copy trigger for team 2:
Labels for player 1 of second team created in same coordinates as for player 1 of team 1. This is pretty unfortunately for me. Of couse I set another Y coordinates for offset
More mystic moment next: I did 2 separate dialogs with offset:
Trying make label for player 1 of team 2 at dialog 2 - no effect. Labels for player 5 created at place of player 1(i.e. on dialog 1). Anyone can help?
loops make this a lot Easyer and cleaner
@Form01: Go
You're going about this entirely the wrong way. Don't create new labels every second, create and position them just once, and then update their text every second.
hm. Thank you alot^^
Don't give up :D
You can create a variable array of type 'dialog item'. Create the labels however you want them to appear, and save them to variables. For example:
Then when you update the scores, you can reference the variables.
You could probably do it more efficiently if you used a loop. Something like this: