- Joined
- Sep 11, 2013
- Messages
- 557
how to make a simple Counting Timer in map
i want to counting 2 hours in map
thanks in advance!
i want to counting 2 hours in map
thanks in advance!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Do you want it to count down? I don't know how to make one that counts up.
Game Time

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




S0 Equal to 9



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






S1 Equal to 5






S0 Equal to 9





Then - Actions






Set S0 = 0






Set S1 = 0






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








M0 Equal to 9







Then - Actions








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










M1 Equal to 5










M0 Equal to 9









Then - Actions










Set M0 = 0










Set M1 = 0










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












H0 Equal to 9











Then - Actions












If (All Conditions are True) then do (Then Actions) else do (Else Actions)













If - Conditions














H1 Equal to 5














H0 Equal to 9













Then - Actions














Set H0 = 0














Set H1 = 0













Else - Actions














Set H1 = (H1 + 1)












Set H0 = 0











Else - Actions












Set H0 = (H0 + 1)









Else - Actions










Set M1 = (M1 + 1)








Set M0 = 0







Else - Actions








Set M0 = (M0 + 1)





Else - Actions






Set S1 = (S1 + 1)




Set S0 = 0



Else - Actions




Set S0 = (S0 + 1)
Do you want to show the current gametime on the screen or do you simply want to be able to know what game time it is?
He just made it multiboard friendly, not user friendly necesarywhat type is variables S0 , M0 , H0?
And how to show this in map? (time window)
i'm noob.. sorry
i can only take from another map :/
is hard for a beginner
Multiboard - Create a multiboard with 3 columns and ((Number of players in Players) + 4) rows, titled |c000000c3Empire Stats|r
Set MultiBoardTimerPos = ((Number of players in Players) + 4)
// MultiBoardTimerPos is an example how to put timer at a certain place at multiboard, its a number value
Set multiboard1 = (Last created multiboard)
GameTime1hour

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


Set GameTimeElapsedSec = (GameTimeElapsedSec + 1)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




GameTimeElapsedSec Greater than 59



Then - Actions




Set GameTimeElapsedSec = (GameTimeElapsedSec - 60)




Set GameTimeElapsedMin = (GameTimeElapsedMin + 1)



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




GameTimeElapsedMin Greater than 59



Then - Actions




Set GameTimeElapsedMin = (GameTimeElapsedMin - 60)




Set GameTimeElapsedHour = (GameTimeElapsedHour + 1)



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




GameTimeElapsedSec Less than 10




GameTimeElapsedMin Less than 10



Then - Actions




Multiboard - Set the text for multiboard1 item in column 1, row MultiBoardTimerPos to (((String(GameTimeElapsedHour)) + :0) + ((String(GameTimeElapsedMin)) + (:0 + (String(GameTimeElapsedSec)))))



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






GameTimeElapsedSec Less than 10





Then - Actions






Multiboard - Set the text for multiboard1 item in column 1, row MultiBoardTimerPos to (((String(GameTimeElapsedHour)) + :) + ((String(GameTimeElapsedMin)) + (:0 + (String(GameTimeElapsedSec)))))





Else - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








GameTimeElapsedMin Less than 10







Then - Actions








Multiboard - Set the text for multiboard1 item in column 1, row MultiBoardTimerPos to (((String(GameTimeElapsedHour)) + :0) + ((String(GameTimeElapsedMin)) + (: + (String(GameTimeElapsedSec)))))







Else - Actions








Multiboard - Set the text for multiboard1 item in column 1, row MultiBoardTimerPos to (((String(GameTimeElapsedHour)) + :) + ((String(GameTimeElapsedMin)) + (: + (String(GameTimeElapsedSec)))))
