• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to create game timer?

Status
Not open for further replies.
Level 13
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 13
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