Staredit Network > Forums > SC2 Assistance > Topic: Need Leaderboard Setup Help
Need Leaderboard Setup Help
Nov 29 2010, 12:24 pm
By: TheKeyToKilling  

Nov 29 2010, 12:24 pm TheKeyToKilling Post #1



I've managed to setup my leaderboard with title and get heading titles and player names.

What I want is a Status Board. Column 1 is User Name (Want this in the players color, but can't figure out how)... then column 2 is lives meter/status bar (still tryin to figure this 1 out... it wont display)... I want to be able to add or remove from the status bar (can prolly figure this out... I hope)... then at bottom of leaderboard I want a status bar for progress on beating map. (is it possible to put like 2 text things for the status bar... 1 in column 1 and 1 in column 2... then have a row under them where the columns merge together and the status bar is in middle of the leaderboard box on that row?)

Also wondering... I have it add all players... if someone let's say player 2 doesn't join... is there a blank gap between player 1 and player 3 where player 2 woulda been? and if so is there a way to avoid this?

EDIT:
and while I'm at it... I may as well ask, but I have it so that my view on map is zoomed out and is in overhead view, but if I rotate the wheel on my mouse it screws up my view and I can't get it back... possible way to fix this issue... like a lock screen view as it is, but allow people to move the screen?... or would I have to add option to map where people can enter command to reset the view?

Post has been edited 1 time(s), last time on Nov 29 2010, 2:48 pm by NudeRaider. Reason: merged posts



None.

Nov 29 2010, 1:51 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from TheKeyToKilling
Also wondering... I have it add all players... if someone let's say player 2 doesn't join... is there a blank gap between player 1 and player 3 where player 2 woulda been? and if so is there a way to avoid this?
You give each player a row number and store it into an array. Then you use the value you have stored in the array for that player.

If you only want to have active players, you can iterate through the rows and set the information through iterating through the active players. So you have a loop iterating over the player group and a variable you raise everytime at the end of the loop.

Another method would be to save the players into a player group and iterate through that group like the second method. Then you wouldn't have a problem with leaving players. That may be the best method. I would try it this way, now.




Nov 29 2010, 1:57 pm TheKeyToKilling Post #3



Can you please put examples of stuff? This starcraft 2 map making crap is way more complex then the sc1 haha... I'm tryin to figure this stuff out the best I can... took me like 6 hours just to figure out the dang picture, music, loading screen, and view point stuff haha. And a few hours to get as far as I did on the leaderboard so far LOL. Once I learn it, I wont forget it though... the problem is figuring it out the first time :-/.



None.

Nov 29 2010, 2:19 pm payne Post #4

:payne:

Quote from TheKeyToKilling
the problem is figuring it out the first time :-/.
You've just understood how GE works! :awesome:

Anyways, just wanted you to know we have 2 different trigger references in WGN:
http://www.galaxywiki.net/index.php?title=Simple_Kill_Tracking_Leaderboard
http://www.galaxywiki.net/index.php?title=Dialog#Leaderboards

I've never really tried the first one, but I wrote the second wiki, so I know that it'll work for what you're searching to achieve.
I've applied the concept of this second wiki in this map of mine: http://www.staredit.net/starcraft2maps/49.Phantom%20Dodge%20Race
It's Open Source, like any of my projects, so feel free to "steal" the leaderboard designed in there. ;)



None.

Nov 29 2010, 2:27 pm TheKeyToKilling Post #5



Thanks i'll look at that... hopefully it helps. I'm starting off with making a bound map, since they are pretty basic... and once I learn some triggering on this new editor... I will go into making different kinds of maps :)... helps to know what your doing before going all out haha.



None.

Dec 1 2010, 2:38 am doite Post #6



Well... wow where do i start.... Ok... So if i understand u correctly u want as shown under
Leaderboard
Player 1 name Player 2 name
|--------| |-------------------|

Or Player 1 |-------|
... Why do i even bother to show, answor no, its not possible. What i would do is to make into a dialog instead. With dialogs you can customize it how ever you would want and make the actuall "bars" resize... This is probably to hard to explain... Ehm..
What we do.. Here ill show u a video of my new map to show you what u could do with dialogs (i just created a HP(Green) bar and a Ammo bar(Blue) + added some images for abilities that disapears when using them and respawns when their upp again. Now check right down corner http://www.staredit.net/topic/12957/last/&skin=#special
Now what you want is to create the dialog.
Hide a the dialog background
Create a dialog buttom (in size of... hmm actually this could be quite interesting.. i would do a math that creates it in the size of number of people by the "Y" size. If 2 ppl joins its small, and if 8 ppl.. or whatever.. its bigger..
Then you want to create dialog labels in position.. maybe with a if then else to check if active players are .. 2, then create 2, if 8 then create 8, with, instead of text, function "Player name". Then you want to create (you se why this is abit hard for you? Not judging.. just that i couldnt do this 2 weeks ago myself) dialog images. The images should be of a loading bar.. theres plenty.. you could check.. NOW THESE images should resize in the "X" size depending on how long of til... whatever u mean with status. Its a math btw.

Its a interesting task, and i could make it for you, but i really dont have time for the moment (weeks ahead) i maybe you should read some about dialogs (One of the things editors usually know to little about (VERY important to make games cool)). In my opinion i hate status bars.. Their ugly and they smell :(



None.

Dec 2 2010, 12:56 pm TheKeyToKilling Post #7



Layout I'm looking for .'s = spacers since spaces don't post in message.

...................................Current Status

......................Players.....................................Lives Left

Player Names 1-8 (only players in game)........Lives left status bar

...........................Obstacles Beat Status Bar



None.

Dec 3 2010, 1:08 am Roy Post #8

An artist's depiction of an Extended Unit Death

There's the [pre] tag or [code] tag that would accomplish formatting spaces in message posts.

Your basic code will look something like this:

Leaderboard
  Events
    Game - Map initialization
  Local Variables
    count = 0 <Integer>
  Conditions
  Actions
    Leaderboard - Create a leaderboard with 2 columns and (8 + 2) rows, with the name "Current Status", and using (100%, 100%, 100%) color.
    Leaderboard - Enable Showing state for (Last created leaderboard) for (All players)
    Leaderboard - Set (Last created leaderboard) item alignment at column 1 and row 1 to Left
    Leaderboard - Set (Last created leaderboard) item alignment at column 2 and row 1 to Right
    Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "Player"
    Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to "Lives"
    General - For each integer count from 1 to 8 with increment 1, do (Actions)
      Actions
        General - If (Conditions) then do (Actions) else do (Actions)
          If
            (Status of player count) == Playing
          Then
            Leaderboard - Add player count to (Last created leaderboard)
            Leaderboard - Set (Last created leaderboard) item text at column 1 and row (count + 1) to (Name of player count)
            Leaderboard - Set (Last created leaderboard) item text at column 2 and row (count + 1) to (Text(Lives[count]))
            Leaderboard - Set (Last created leaderboard) item alignment at column 1 and row (count + 1) to Left
            Leaderboard - Set (Last created leaderboard) item alignment at column 2 and row (count + 1) to Right
            Leaderboard - Set (Last created leaderboard) item text color at column 1 and row (count + 1) to (Color((Current player count color)))
            Leaderboard - Set (Last created leaderboard) item text color at column 2 and row (count + 1) to (Color((Current player count color)))
          Else
    Leaderboard - Set (Last created leaderboard) item alignment at column 1 and row 10 to Left
    Leaderboard - Set (Last created leaderboard) item alignment at column 2 and row 10 to Right
    Leaderboard - Set (Last created leaderboard) item text at column 1 and row 10 to "Obstacles Beat:"
    Leaderboard - Set (Last created leaderboard) item text at column 2 and row 10 to ((Text(ProgressValue) with Any Precision decimal places) + "%")
    Leaderboard - Set (Last created leaderboard) item progress bar at column 2 and row 10 to range from 0.0 to 100.0
    Leaderboard - Set (Last created leaderboard) item progress value at column 2 and row 10 to ProgressValue
    Leaderboard - Show progress bar for (Last created leaderboard) item at column 2 and row 10

* "Lives" is a global array of integers, "ProgressValue" is a global real.
** Note that the actions below the "Else" are not actually in the else, but are outside of the If/Then/Else statement, and outside of the For Each loop.

Of course, you would want to store the leaderboard as a global variable to manipulate it later. Payne posted a really useful tutorial on leaderboards that cover the majority of your questions.

I hope this helps!




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: jun3hong, Roy