Timer window displaying game time elapsed

  • Thread starter Thread starter Senkin
  • Start date Start date
Oops sorry I was on a laggy connection and I didnt know if it was posted cause the IE got closed.
 
SD_Ryoko said:
Dota Allstars 5.84 says:
Code:
    set udg_Minutes = ( ( R2I(TimerGetElapsed(udg_LBTime)) / 60 ) - ( 1 / 2 ) )
    set udg_Seconds = ModuloInteger(R2I(TimerGetElapsed(udg_LBTime)), 60)
    if ( not ( udg_Seconds < 10 ) ) then
        call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, 14, ( " " + ( I2S(udg_Minutes) + ( ":0" + I2S(udg_Seconds) ) ) ) )
    else
        call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, 14, ( " " + ( I2S(udg_Minutes) + ( ":" + I2S(udg_Seconds) ) ) ) )
    endif

Ok I tried learning a bit about jass, all I can see is that it sets the variables Minutes and Seconds to the right stuff, then it does a if for it is less then 10 seconds display the last made multiboard on colum 3 row 14 with miniutes:0seconds, but if it is not under 10 seconds it displays on colum 3 row 14 miniutes:seconds..

am I correct?
 
Boooyah!

:D :) I got it on my own! It is in the multiboard on the last row, whenever there is multi ppl it automaticly goes to the last row. All I had to do is change the player_count variable and whatever one that used to +2 instead of +1.

GameTime
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Seconds = (Seconds + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Seconds Equal to 60
Then - Actions
Set Seconds = 0
Set Miniutes = (Miniutes + 1)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Seconds Less than 10
Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 3, row (Player_Count + 2) to (((String(Miniutes)) + :) + (0 + (String(Seconds))))
Else - Actions
Multiboard - Set the text for (Last created multiboard) item in column 3, row (Player_Count + 2) to ((String(Miniutes)) + (: + (String(Seconds))))


That is the source code for the game timer in the multiboard to anyone who uses the multiboard ryoko has posted in the free code sticky on the forums.

All you need to do is make the first trigger yourself by copying me, and then just change your Create Multiboard trigger by, adding these 2 lines to the bottom before show last created multiboard

Multiboard - Set the text for (Last created multiboard) item in column 2, row (Player_Count + 2) to Game Time

Multiboard - Set the text for (Last created multiboard) item in column 3, row (Player_Count + 2) to 00.00

and then all you need to change is change the values in areas where it says ((Player_Count) + 1) to ((Player_Count) + 2)
 
Sorry about this being old and ressurecting it, but i beleive i have found a simpler way to do this:

Code:
Timerstart
    Events
        Time - Elapsed game time is 0.01 seconds
    Conditions
    Actions
        Countdown Timer - Start Time as a Repeating timer that will expire in 1000000000.00 seconds
Code:
Timer
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Multiboard - Change the title of (Last created multiboard) to (Elapsed Time:  + (String((Integer((Elapsed time for Time))))))
that second should go with all the regular stuff in your multiboard trigger and if you need to you can change it so it will show in an item instead of title too if you want.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +1
  • Wizard Wizard:
    lol
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top