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

How to create game timer?

Status
Not open for further replies.
you could use a multiboard with 3 integer variables for seconds minutes and maybe hours? and update it every second by setting seconds +1, if seconds = 60, set seconds 0 and minutes +1 and so on
There is a more simple way it can be done with timers,i have a trigger from one map and somehow its working i have no idea how....and it is stupid gui trigger
i tried copying it with custom script codes
call StartTimerBJ(udg_timer01,true,900.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Game Time ")
didn´t work it expires in 15 minutes when i use it...
 
Last edited:
this is made by mrvice2009 i just did some small "fixes"

  • create game time
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Countdown Timer - Start TIMERWINDOW as a One-shot timer that will expire in 0.00 seconds
      • Countdown Timer - Create a TIMERWINDOW for TIMER with title Game Time:
      • Set TIMER = (Last started timer)
      • Custom script: call DestroyTrigger( GetTriggeringTrigger() )
  • game time
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set GAMETIME = (GAMETIME + 1)
      • Countdown Timer - Start TIMER as a One-shot timer that will expire in (Real(GAMETIME)) seconds
      • Countdown Timer - Pause TimerWindow
Tread SOLVED ...
 
Status
Not open for further replies.
Back
Top