• 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] Leaderboard that displays HP of a unit.

Status
Not open for further replies.
Level 12
Joined
May 4, 2008
Messages
1,111
true.. true... but some of them are so long and boring that some ppl should help them xD

  • hp of a unit in leaderboard
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled Hero's hp
      • Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label HP1 and value (Integer((Life of Footman 0000 <gen>)))
      • Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label HP2 and value (Integer((Life of Footman 0001 <gen>)))
      • Leaderboard - Add Player 3 (Teal) to (Last created leaderboard) with label HP3 and value (Integer((Life of Footman 0002 <gen>)))
      • Set HP = (Last created leaderboard)
  • leader refresh
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Leaderboard - Change the value for Player 1 (Red) in HP to (Integer((Life of Footman 0000 <gen>)))
      • Leaderboard - Change the value for Player 2 (Blue) in HP to (Integer((Life of Footman 0001 <gen>)))
      • Leaderboard - Change the value for Player 3 (Teal) in HP to (Integer((Life of Footman 0002 <gen>)))
note that i used footmans as units and that i made a conversion Real To Integer as life of unit X
 
Status
Not open for further replies.
Top