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!