SC2Mapster Forums

Development > Triggers

get player in position x of leaderboard?

  • 6 posts
    #1 Nov 06, 2012 at 07:57 UTC - 0 likes

    Hello Gents, in the WC3 editor, it was possible to do:

     Conditions
            ((Player in position 1 of (Last created leaderboard)) Units Killed) Equal to 20
    

    maybe I'm blind so please correct me, but I didn't find anything similar in Galaxy Editor. Sure, I could make a workarourn, but is there no direct way to get a players position in a leaderboard?

    Thank You

    #2 Nov 11, 2012 at 02:25 UTC - 1 like

    You can create a custom leaderboard with this functionality but as far as I know, the default one does not do this.

    #3 Nov 12, 2012 at 10:01 UTC - 0 likes

    @DogmaiSEA: Go

    hmmm to sad. This funktion was quite handy in WC3. Is there another way to easily sort a array by values?

    #4 Nov 13, 2012 at 14:42 UTC - 1 like

    Google Bubble Sort.

    #5 Nov 15, 2012 at 08:55 UTC - 0 likes

    @DogmaiSEA: Go

    that looks nice, gonna try it! Thank you

    #6 Nov 15, 2012 at 11:08 UTC - 0 likes

    @mojothejojo: Go

    If your trying to get a Sorted Leaderboard you don't need to know there current Position to update the values for them. You can check out my Sorted Leaderboard in my Signature There position in the Leaderboard changes (Highest Kills at Top, Lowest at Bottom) but the Slot (Leaderboard Row) there in at the creation actually doesn't change in a sorted leaderboard. If you want to know there Leaderboard Position to either make it look like there Slot Position (Leaderboard Row) Changed or for other reasons then you will need the Bubble Sort or similar method to know where they are. Here is a Link to my Sorted Leaderboard in case you missed it in my Signature.

    Last edited Nov 15, 2012 by DaFunk86

    My Projects:

    Blizzard Fan since Starcraft. The Single Player story is AMAZING IMO, I can't wait for the Expansions. In Warcraft 3 I only enjoy the Custom Maps scene (& Blizzards Worm Wars).

  • 6 posts

You must login to post a comment. Don't have an account? Register to get one!