• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Specialized Leaderboard Needed

Status
Not open for further replies.
Level 14
Joined
Mar 27, 2008
Messages
1,003
PLEASE READ ALL OF THE TEXT!

Well, I need a very specific leaderboard that is called "Survivor Mortality Status"

It is for players one through ten (red through light blue)
it checks whether one unit (the survivor) is either alive or dead for each player.

So for example, if all the survivors are alive, it will say "ALIVE" in green text next to the player's name.

If a survivor dies, it will change the ALIVE to "DEAD" next to the corresponding survivor's name.

Finally I have one last request.

Can you put "XPX" before all of the variables so that it's easy for me to manage. Thank you!
 
Level 10
Joined
Dec 15, 2012
Messages
650
  • Yourboard = Leaderboard var
  • Survivor = Unit (array : total users)

  • Your Trigger
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Survivor[(Integer A)] is alive) Equal to True
            • Then - Actions
              • Set String[(Integer A)] = ALIVE
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Survivor[(Integer A)] is dead) Equal to True
            • Then - Actions
              • Set String[(Integer A)] = DEAD
            • Else - Actions
          • Leaderboard - Change the label for (Player((Integer A))) in YourBoard to ((Name of (Player((Integer A)))) + String[(Integer A)])
Maybe you can't find this
  • ((Name of (Player((Integer A))))
It is Name of Player -> Convert Player Index to Player
========================================================
Set Survivor [all arrays] to unit and Set Leaderboard = (Last created Leaderboard) after you created your leaderboard or your trigger will not working

Not Guarantee to Work !
 
Level 14
Joined
Mar 27, 2008
Messages
1,003
  • Yourboard = Leaderboard var
  • Survivor = Unit (array : total users)

  • Your Trigger
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Survivor[(Integer A)] is alive) Equal to True
            • Then - Actions
              • Set String[(Integer A)] = ALIVE
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Survivor[(Integer A)] is dead) Equal to True
            • Then - Actions
              • Set String[(Integer A)] = DEAD
            • Else - Actions
          • Leaderboard - Change the label for (Player((Integer A))) in YourBoard to ((Name of (Player((Integer A)))) + String[(Integer A)])
Maybe you can't find this
  • ((Name of (Player((Integer A))))
It is Name of Player -> Convert Player Index to Player
========================================================
Set Survivor [all arrays] to unit and Set Leaderboard = (Last created Leaderboard) after you created your leaderboard or your trigger will not working

Not Guarantee to Work !

I tried it and it didn't work
Would you mind importing it onto a blank map for me so I can import it onto my map if it works? Credits will be given of course, thank you so much!
 
Status
Not open for further replies.
Top