• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] Real-time game clock

Status
Not open for further replies.
Level 3
Joined
Jun 13, 2005
Messages
26
-----------------------
| Gold | Min 0| Sec 32 |
-----------------------

In DOTA, as shown above, there is a real-time clock that runs throughout the course of the game. Does anyone know the script, triggers, etcetera that is involved and how you place the clock on the resource bars?
Thankyou!

BTW, wasn't sure if this was JASS or GUI triggers...but considering most of DOTA is in JASS I made an educated guess. Sorry if I was mistaken.
 
Level 12
Joined
Nov 5, 2007
Messages
730
Simple.Just open the Game Interface,change the lumber icon into an imported clock,then change the food icon into a blank icon.Then every second add 1 food to all players,every 60 seconds reset it to 0 and add 1 lumber.
 
Status
Not open for further replies.
Top