Multiboard Time on my multiboard

T3rm1nat0r

New Member
Reaction score
23
Hi everyone, i have made my multiboard with the time on the heading of the multiboard that goes like this: (Minutes:Seconds) (e.g.: 25:47)

So it is 25 minutes and 47 seconds, the time works perfectly but my problem is when it gets to 00 seconds, when it gets to 00 seconds, it goes 58 seconds then 59 then 58 again seconds, do you understand me?

Here is my trigger:

Code:
Time on MB
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set TimeSeconds = (TimeSeconds - 1)
        Multiboard - Change the title of MultiBoard to (|c0020c000Regenge of The Sheep - MoD 1|r + ( |cffffcc00( + ((String(TimeMins)) + (: + ((String(TimeSeconds)) + )|r)))))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TimeSeconds Equal to 0
            Then - Actions
                Multiboard - Change the title of MultiBoard to (|c0020c000Regenge of The Sheep - MoD 1|r + ( |cffffcc00( + ((String(TimeMins)) + (:0 + ((String(TimeSeconds)) + )|r)))))
                Wait 0.50 seconds
                Set TimeMins = (TimeMins - 1)
                Set TimeSeconds = 59
                Multiboard - Change the title of MultiBoard to (|c0020c000Regenge of The Sheep - MoD 1|r + ( |cffffcc00( + ((String(TimeMins)) + (: + ((String(TimeSeconds)) + )|r)))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TimeSeconds Less than or equal to 9
            Then - Actions
                Multiboard - Change the title of MultiBoard to (|c0020c000Regenge of The Sheep - MoD 1|r + ( |cffffcc00( + ((String(TimeMins)) + (:0 + ((String(TimeSeconds)) + )|r)))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TimeSeconds Equal to 1
            Then - Actions
                Wait 0.50 seconds
                Set TimeSeconds = 59
            Else - Actions
                Do nothing

Does anybody see anything wrong in my trigger, +rep to those you help me.

Thanx in advanced!
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
My suggestion would be to start a timer that expires in about 99999 seconds.
Every second, get the "elapsed time" in some integer variable.
Minutes = Time / 60
Seconds = Modulo( Time, 60 )


It's also not a good idea to wait for up to 1 second in a trigger that runs every second.

"Revenge" ... :p


"Do nothing" is not needed, it isn't doing anything anyway.
 

T3rm1nat0r

New Member
Reaction score
23
thanx for the suggestions :D, i will try and do it now and see what happens.

EDIT: Your tutorial does not help me :( that is countdown timer, my timer is on the multiboard...

Here is a screenshot:

6lkxjbm.jpg


You see the timer on the MB heading, that is what i am talking about :D.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> Your tutorial does not help me that is countdown timer, my timer is on the multiboard...

Not at the end.
It has a section about putting the timer in a multiboard.
Look a little more. :D
 

T3rm1nat0r

New Member
Reaction score
23
busy looking...

ok, now i see it, but that is the timer going up but mine is going down, must i just chang it around so it minuses?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Yes, you will have to change it around a bit.
But it might serve as a useful template from which to begin.
You'll have to make it subtract from the seconds and minutes at the appropriate times instead of add.
 

T3rm1nat0r

New Member
Reaction score
23
I am still busy working on it, and i still can't get it to work :(

here is my new trigger that i started again:

Code:
Time on MB Copy
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set TimeSeconds = (TimeSeconds - 1)
        Multiboard - Change the title of MultiBoard to (|c0020c000Regenge of The Sheep - MoD 1|r + ( |cffffcc00( + ((String(TimeMins)) + (: + ((String(TimeSeconds)) + )|r)))))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TimeSeconds Less than 10
            Then - Actions
                Multiboard - Change the title of MultiBoard to (|c0020c000Regenge of The Sheep - MoD 1|r + ( |cffffcc00( + ((String(TimeMins)) + (:0 + ((String(TimeSeconds)) + )|r)))))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TimeMins Less than 10
            Then - Actions
                Multiboard - Change the title of MultiBoard to (|c0020c000Regenge of The Sheep - MoD 1|r + ( |cffffcc00(0 + ((String(TimeMins)) + (: + ((String(TimeSeconds)) + )|r)))))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TimeSeconds Equal to 0
            Then - Actions
                Wait 0.50 seconds
                Set TimeSeconds = 59
                Set TimeMins = (TimeMins - 1)
            Else - Actions

can any body help me?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
You don't want a wait in that trigger.
Take it out.

You also didn't use the String variables I suggested in my tutorial.
I would recommend it because I think it may make it easier on you.
It will also allow you to change the multiboard title only once instead of every time you check for something.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> timer window doesn't stack with multiboard?

No problem.
However, just because you have a timer does not mean you also need a window for it...
 

T3rm1nat0r

New Member
Reaction score
23
thanx, but i have alredy doen my multiboard time on the multiboard, i will still have a look at your link that you gave me, it might taach me more things :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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