I'm just starting triggers but none of anything i makes works the way i want it or at all.
I copied the basics of leaderboard thread but the guy didn't finish the updating the variable thing.
So the leaderboard doesn't show anything except local player when I try Test Documents.
I't should show Player and Kill count.
Unfortunately since the guy didn't finish the kill tutorial i made up my own but since i can't see it on the kill board i don't know if it works.
Don't worry about having things not work your first attempts with the editor, it happens to everyone. The good news is your error is easily fixable.
Solution:
1. In trigger "Create" move the line "Leaderboard - Create a leaderboard with..." to the top, this needs to be the first command.
2. create a global variable (not a local variable) called "Kill Board", or whatever you want, and change the "type" to "leaderboard"
3. In trigger "Create", at the second line (underneath Leaderboard - Create), use "set variable" -> "Set (last created leaderboard) = Kill Board
4. In trigger "Unit Dies", inside of the Then statement for (Killing Player) = 1, after "variable - modify P1Kills: +1" add a line called "Set (Kill Board) item text at column 2 row 1 to [convert integer to text (P1Kills) ]. Do this for each player
Done!
Note that if there are not other players in the game, then the leaderboard will appear empty except for your own name.
Thanks ya all. I found an already finished map of what i was cloning. i'm basically gonna steal his triggers and learn. i would give him credits, but i doubt he would still be playing sc2. No one plays sc2 for more than 1 year
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm just starting triggers but none of anything i makes works the way i want it or at all. I copied the basics of leaderboard thread but the guy didn't finish the updating the variable thing. So the leaderboard doesn't show anything except local player when I try Test Documents. I't should show Player and Kill count. Unfortunately since the guy didn't finish the kill tutorial i made up my own but since i can't see it on the kill board i don't know if it works.
@LunaticGirge
Don't worry about having things not work your first attempts with the editor, it happens to everyone. The good news is your error is easily fixable.
Solution:
1. In trigger "Create" move the line "Leaderboard - Create a leaderboard with..." to the top, this needs to be the first command.
2. create a global variable (not a local variable) called "Kill Board", or whatever you want, and change the "type" to "leaderboard"
3. In trigger "Create", at the second line (underneath Leaderboard - Create), use "set variable" -> "Set (last created leaderboard) = Kill Board
4. In trigger "Unit Dies", inside of the Then statement for (Killing Player) = 1, after "variable - modify P1Kills: +1" add a line called "Set (Kill Board) item text at column 2 row 1 to [convert integer to text (P1Kills) ]. Do this for each player
Done!
Note that if there are not other players in the game, then the leaderboard will appear empty except for your own name.
Edit: ah Swag beat me to it.
Thanks ya all. I found an already finished map of what i was cloning. i'm basically gonna steal his triggers and learn. i would give him credits, but i doubt he would still be playing sc2. No one plays sc2 for more than 1 year