System Multiboard Time System

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.

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
 

Attachments

tooltiperror

Super Moderator
Reaction score
231
Right, this lacks a description, is implemented in GUI (making it slow compared to if you had used JASS for it) and [LJASS]array Time[/LJASS] is likely to conflict with other variables. It also runs at this inefficient speed every 1 second, making it a bad choice to do in GUI.

It also is rather simple for a whole system, perhaps this should also make the multiboard and format it?

Graveyarded.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    363 bots on the forum been like that for about a month this is the most bots we have ever consistently hosted
  • The Helper The Helper:
    and we are on cloud flare too right?
  • Stephen Stephen:
    Probably stupid AI garbage. It's harvesting our Nuon knowledge.
  • Stephen Stephen:
    The bots I mean.
  • The Helper The Helper:
    I suspect AI Bots as well
  • The Helper The Helper:
    Happy Saturday!!!
    +1
  • The Helper The Helper:
    I reorganized the forums somewhat but I doubt anyone would notice
  • The Helper The Helper:
    Happy Friday!
    +1
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    The forum software says we have 554 members online now. We did not have that many unique visitors the whole day today. Too many bots and the disconnect between the forum counts and the stats.
  • Varine Varine:
    Currently it says 413 guests and 2 members
    +1
  • Varine Varine:
    Aww
  • The Helper The Helper:
    That is going to be mostly bots
  • The Helper The Helper:
    527 (members: 2, guests: 525)
  • The Helper The Helper:
    Happy Saturday!
    +1
  • V-SNES V-SNES:
    Happy Saturday!
    +1
  • The Helper The Helper:
    622 (members: 2, guests: 620)
  • The Helper The Helper:
    666 (members: 4, guests: 662) :)
    +1
  • Varine Varine:
    609 (members: 4, guests: 605)
  • The Helper The Helper:
    I was posting that last one because the 666 users online :)
    +1
  • The Helper The Helper:
    Happy Wednesday Night!
    +1
  • The Helper The Helper:
    Happy Thursday!
    +1
  • The Helper The Helper:
    Marathon watching The Expanse!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    leaving for the weekend in San Antonio will be gone until Sunday afternoon
    +1

    The Helper Discord

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top