• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to create game timer?

Status
Not open for further replies.
Level 14
Joined
Mar 4, 2009
Messages
1,156
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:
Level 14
Joined
Mar 4, 2009
Messages
1,156
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.
Top