death_knight
Dark is the heart of a corrupted man.
- Reaction score
- 24
The system below is a time system which is displayed as part of the title of a multiboard rather than using food, gold and lumber to show the time (like in DOTA).
The one variable used is an integer array variable. Time[1] represents the number of hours]; Time[2] represents the number of minutes; and Time[3] represents the number of seconds.
The one variable used is an integer array variable. Time[1] represents the number of hours]; Time[2] represents the number of minutes; and Time[3] represents the number of seconds.
Code:
Time
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Time[3] = (Time[3] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[3] Equal to 60
Then - Actions
Set Time[3] = 0
Set Time[2] = (Time[2] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[2] Equal to 60
Then - Actions
Set Time[2] = 0
Set Time[1] = (Time[1] + 1)
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[1] Less than 10
Time[2] Less than 10
Time[3] Less than 10
Then - Actions
Multiboard - Change the title of (Last created multiboard) to (Game Info; + ((0 + ((String(Time[1])) + :)) + ((0 + ((String(Time[2])) + :)) + (0 + (String(Time[3]))))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[1] Greater than or equal to 10
Time[2] Less than 10
Time[3] Less than 10
Then - Actions
Multiboard - Change the title of (Last created multiboard) to (Game Info; + (((String(Time[1])) + :) + ((0 + ((String(Time[2])) + :)) + (0 + (String(Time[3]))))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[1] Greater than or equal to 10
Time[2] Greater than or equal to 10
Time[3] Less than 10
Then - Actions
Multiboard - Change the title of (Last created multiboard) to (Game Info; + (((String(Time[1])) + :) + (((String(Time[2])) + :) + (0 + (String(Time[3]))))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[1] Greater than or equal to 10
Time[2] Less than 10
Time[3] Greater than or equal to 10
Then - Actions
Multiboard - Change the title of (Last created multiboard) to (Game Info; + (((String(Time[1])) + :) + ((0 + ((String(Time[2])) + :)) + (String(Time[3])))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[1] Greater than or equal to 10
Time[2] Greater than or equal to 10
Time[3] Greater than or equal to 10
Then - Actions
Multiboard - Change the title of (Last created multiboard) to (Game Info; + (((String(Time[1])) + :) + (((String(Time[2])) + :) + (String(Time[3])))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[1] Less than 10
Time[2] Greater than or equal to 10
Time[3] Less than 10
Then - Actions
Multiboard - Change the title of (Last created multiboard) to (Game Info; + (((0 + (String(Time[1]))) + :) + (((String(Time[2])) + :) + (0 + (String(Time[3]))))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[1] Less than 10
Time[2] Greater than or equal to 10
Time[3] Greater than or equal to 10
Then - Actions
Multiboard - Change the title of (Last created multiboard) to (Game Info; + (((0 + (String(Time[1]))) + :) + (((String(Time[2])) + :) + (String(Time[3])))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Time[1] Less than 10
Time[2] Less than 10
Time[3] Greater than or equal to 10
Then - Actions
Multiboard - Change the title of (Last created multiboard) to (Game Info; + (((0 + (String(Time[1]))) + :) + (((0 + (String(Time[2]))) + :) + (String(Time[3])))))
Else - Actions