• 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.

[Trigger] Another LeaderBoard Problem

Status
Not open for further replies.
Having problems with making a leaderboard, and 2 teams that are seperated. On the top(not title), it says Team 1 and after the last player in team 1 is Team 2. Heres what i did.
  • Events
  • Time - Elapsed Game Time 5.00 seconds
  • Conditions
  • Actions
  • Leaderboard - Create a leaderboard for (All Players) titled Lives
  • Leaderboard - Show (last created leaderboard)
  • Leaderboard - Add Player 1 to (last created leaderboard) and value Lives Leaderboard - Add Player 2 to (last created leaderboard) and value Lives
  • Leaderboard - Add Player 3 to (last created leaderboard) and value Lives Leaderboard - Add Player 4 to (last created leaderboard) and value Lives Leaderboard - Add Player 5 to (last created leaderboard) and value Lives Leaderboard - Add Player 6 to (last created leaderboard) and value Lives Leaderboard - Add Player 7 to (last created leaderboard) and value Lives Leaderboard - Add Player 8 to (last created leaderboard) and value Lives Leaderboard - Add Player 9 to (last created leaderboard) and value Lives Leaderboard - Add Player 10 to (last created leaderboard) and value Lives Leaderboard - Add Player 11 to (last created leaderboard) and value Lives Leaderboard - Add Player 12 to (last created leaderboard) and value Lives
Heres Decrease Trigger
  • Events
  • Unit - A unit dies
  • Conditions
  • Actions
  • If all conditions are true, then do (Then Actions) else do (Else Actions)
  • Loop Actions
  • Conditions
  • ((Triggering Unit) belongs to an ally of Player 1 (Red)) equal to True
  • ((Triggering Unit) is A Hero) equal to True
  • Then Actions
  • Leaderboard - Change the value of (Owner of (Triggering Unit)) in (Last Created Leaderboard) to (Lives - 1)
  • Game - Display to (All Players) the text: You better not die again! You just lost a life!
  • Else Actions
  • Do Nothing
  • If all conditions are true, then do (Then Actions) else do (Else Actions)
  • Loop Actions
  • Conditions
  • ((Triggering Unit) belongs to an ally of Player 7 (Green)) equal to True
  • ((Triggering Unit) is A Hero) equal to True
  • Then Actions
  • Leaderboard - Change the value of (Owner of (Triggering Unit)) in (Last Created Leaderboard) to (Lives - 1)
  • Game - Display to (All Players) the text: You better not die again! You just lost a life!
  • Else Actions
  • Do Nothing
The decrease value is fine but the leaderboard, i want it to seperate Players 1-6 from Players 7-12 by displaying their team name.
 
Status
Not open for further replies.
Top