Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Leaderboard Problems
Leaderboard Problems
This topic is locked. You can no longer write replies here.
Dec 13 2009, 11:56 pm
By: Pinky  

Dec 13 2009, 11:56 pm Pinky Post #1



Yo I was just wondering how do you get two leaderboards to alternate on the screen. I can only get one, if i add a second they don't alternate.

I'm using custom for EXP and trying to put another in to show your actual level.

Also just wondering do I need to show leaderboard for each individual player or just for one player and it will show for all?



None.

Dec 14 2009, 12:13 am CecilSunkure Post #2



Well the easiest way is to use Custom points, and points for something else you don't have, like buildings.

If the players start out with buildings on the map, then at the beginning of the game, set each player's building score to 0.

Put the trigger that shows leaderboard in the "all players" section.



None.

Dec 14 2009, 12:26 am NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

You have to program the alternation yourself.
Set up a death count timer that displays 1 leaderboard at 0, and resets to 120 (= 10 real time seconds on fastest, when using hyper triggers),
and displays the other leaderboard at 60, always counting down. This will make them switch every 5 seconds (at 60 and at 0/120).

The leaderboard trigger can be owned by any player, even a computer, which is probably most preferable. The leaderboard will be the same for every player.

If you can't use Cecil's method of using a 2nd score (for example because you have no unused scores) you have to use both scores in a separate death counter and use Binary Countoffs to transfer the one you're currently displaying to custom score .




Dec 14 2009, 12:30 am CecilSunkure Post #4



Quote from NudeRaider
If you can't use Cecil's method of using a 2nd score (for example because you have no unused scores) you have to use both scores in a separate death counter and use Binary Countoffs to transfer the one you're currently displaying to custom score .
Binary countoffs can seem a bit complicated at first, but let us know if you want to try it, if you read the wiki and still don't understand.

And one more thing I forgot to mention, if you decide to use Custom and Building scores, make sure that the player's won't be getting any new buildings throughout the game, to make things easier.



None.

Dec 14 2009, 2:47 am rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

You can display death counts as well, you just have to trick SC into doing it, so if you do end up having to store a second item in death counts, it's much easier to just use one action than 60 triggers.

If you want, you can use minerals/gas/psi to display a level, but it won't be viewable by anyone other than the player.

When you have a trigger and the action has a leaderboard in it, the leaderboard changes for all computers which run the trigger. That means if player 1 owns the trigger, and player 1 does something to run the trigger, the condition is true on everyone's computer, and thus it will run. This is important because a) you can't turn off a leaderboard and b) it doesn't matter who runs the trigger. You can make a specific computer run a specific trigger and nobody else does, so different people will see different leaderboards, but that's an advanced trick. You're better off with nude's DC method.

Finally, you can use different places in the number to show level. For example: 10020429: Level 1, 20429 exp. 90047821: Level 9, 47821 exp.

Quote from rockz
the leaderboard can only display 59 pixels. All numbers are 7 pixels except for 1, which is 5 pixels
If you display an 8 digit number, you'll never go over the limit. Once you hit 9 digits, at least two of them have to be 1s. If you'll never go over 4 or so digits of exp, and 2 digits of level, you can easily differentiate with a bunch of zeroes.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Dec 21 2009, 7:16 am Pinky Post #6



Alright thanks for the help, someone should chuck elements of this thread into the FAQ imo, wuld be pretty helpful.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-5-20. : 3:08 pm]
Sylph-Of-Space -- woah! nice! thank you!
[2024-5-20. : 4:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[2024-5-20. : 4:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[2024-5-20. : 3:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[2024-5-19. : 9:18 pm]
Ultraviolet -- 🔪🐈
[2024-5-19. : 12:34 pm]
NudeRaider -- curiosity kills the cat!
Please log in to shout.


Members Online: Roy, 7camilae6191wr7