• 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] Window Trigger

Status
Not open for further replies.
Level 5
Joined
Jul 25, 2008
Messages
155
Hello again :)

I was wondering how to make a 'window' which is places for all players in the right corner, where it says how much kills, gold, and units the players has.. Also it should say how long time it has elapsed and it's still counting, like the guy here:
Police Catch Thief AI 1.02
scroll down for the pictures

Would appreciate the help ^^
 
Level 7
Joined
Jul 20, 2008
Messages
377
Leaderboard or Multiboard. The Multiboard basically works more like a table of (text) data. Think Excel tables, basically.

The leaderboard, on the other hand, more explicitly tracks player data. It's harder to customize a leaderboard than a multiboard.
 
Level 4
Joined
Jul 24, 2008
Messages
108
Multiboards are much harder imo than leader boards. If you want to know how to make a leader board ill paste in one im using on my map

  • Setup Leaderboard
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled Name
      • Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing)) and do (Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0)
      • Leaderboard - Remove Player 12 (Brown) from (Last created leaderboard)
      • Leaderboard - Remove Player 11 (Dark Green) from (Last created leaderboard)
      • Leaderboard - Show (Last created leaderboard)
NOTE: player 11 and 12 are bots.


Now to update it for kills of the computers units i use this trigger

  • Update Leaderboard
    • Events
      • Unit - A unit owned by Player 11 (Dark Green) Dies
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
      • (Owner of (Triggering unit)) Not equal to (Owner of (Killing unit))
    • Actions
      • Set kills[(Player number of (Owner of (Killing unit)))] = (kills[(Player number of (Owner of (Killing unit)))] + 1)
      • Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to kills[(Player number of (Owner of (Killing unit)))]
      • Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Just modify these triggers for your own needs
 
Status
Not open for further replies.
Top