• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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