shown in-game time
peace of cake.
you can now display this with a timerdialog
Events
Time - Every 1 sec of game Time
Conditions
Actions
Set TimeCounterInteger = TimeCounterInteger + 1
In case if you doesen't refered to REAL time BUT the day time.
then you can still do the same if you know what is the day-time speed
you can set it via trigger
if the speed is like 10min for a total day (for e.g.)
then 10min=24h(ingame)=1440min(ingame)
then 1min=144min(ingame)=8640sec(ingame)
then 1sec=144sec(ingame)
changes
display with timer dialog
Set DayTimeCounter=DayTimeCounter+144
Why not pick every player in map and
(If/Then/Else)
If player food used equal to 59
Then,
Add 1 to lumber
Set player food used to 0
Else,
Add 1 to food used
Why don't like this?
can u show us a pic of that solution hero line defense used for this time display? a pic that shows the "clock" in game
What is the differense between the normal daytime of wc3 and the one from hero line defense?
then at map start set time of day to 00:00@wietlol You can however set the day duration to a full 24h (86400 seconds) day.
Why not pick every player in map and
(If/Then/Else)
If player food used equal to 59
Then,
Add 1 to lumber
Set player food used to 0
Else,
Add 1 to food used
Why don't like this?
set the daytime speed equal to the real life time --->
then at map start set time of day to 00:00
thats it![]()
Go to the terrain editor then go Advanced -> Gameplay Constants. Way down at the bottom you see Time - Real seconds per day time. Set it to 86400.
I think that the game always starts at 00:00 but if that is not true, then make a trigger for map initialization or add an action to an exising map initialization trigger "Game - Set time of day 0.00".
That should do the trick.
In the gameplay constants again, go to the bottom and you see "Time - hours per day" (or something like that)
Change it to whatever you want.
It can't be extended, nor would it fit with the UI animation if it were able to.