• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Game time

Status
Not open for further replies.
personally i dont know of a blizzard-made trigger to count game time but you might try using a trigger that starts at 0 and increases by 1 every second, then use that to display the game time elapsed (doing the conversions to minutes, seconds, hours, or whatever of course).
 
OK i knowthat is a time that i post this topic and i want that all people know how to do this. If found it out and now i write the trigger here. I think im not the onliest person who want to know this so heres the trigger:
First make some Variables:
Game_Time - Timer
Game_Minutes - Integer
Game_Seconds - Integer
Than first start Gama Time that will look like something like this:

Events:
Map Intialisation
Conditions
None
Actions

Countdown-Timer - Start Game_Time as a Unique timer that will expire in 1000000000.00 seconds

So now you have started the Timer so lets go to the other trigger:


Events
Time - Every 1.00 seconds of game time
Conditions
None
Aktionen
Set Game_Minutes = ((Integer((Elapsed time for Game_Time))) / 60)
Set Game_Seconds = ((Integer((Elapsed time for Game_Time))) mod 60)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
Game_Seconds bigger as 10
'THEN'-Aktionen
Leaderboard - Change the title of (Last created leaderboard) to ((String(Game_Minutes)) + (: + ((String(Game_Seconds))
'ELSE'-Aktionen
Leaderboard - Change the title of (Last created leaderboard) to ((String(Game_Minutes)) + (:0 + ((String(Game_Seconds))
This two actions you can make to what you want.
 
Status
Not open for further replies.
Back
Top