Timer window displaying game time elapsed

  • Thread starter Thread starter Senkin
  • Start date Start date
S

Senkin

Guest
I have tried for over a hour now on making a timer window that shows the amount of game time that has elapsed. Or a timer inside of a multiboard that shows the game time that has elapsed.

An example is in DOTA, it has the time elapsed.

So if somone can post me a trigger that will do it, that be great.
Thanks in a head of time.
 
You could do something that adds to a variable every second and displays it. It would be laggy, but it would work.
 
It would be similar to what Silverhawk just suggested: Making a variable, and every second you add 1. However, I'm not so sure that would work for a measure of 60...But I'm sure you could play around with it. Hopefully there are some easier and less lag-endusing ways to do such a thing.
 
I tried and tried I couldent get it to work or make one. If somone can find a unprotected ver of dota that work.
 
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
 
Can you explain what I did that was wrong? I read the rules 3 times b4 and i dont really know what I did wrong. I will read again and see what I did wrong/

Ryoko, I tried reading that but I guess im not smart enough to know hwo to make that for my multiboard.
 
umm i think you bumped too early... and try warcraft.org and download a dota there i know at least 1 is unprotected.
 
I tried looking for a unprot one that has the timer and no luck, can somone please help me with making it.
 
Did you not see the code Ryoko posted? It has to be in JASS, and if you don't know JASS, go learn JASS.
 
Well I first dont know if that will even work in my multiboard, second I am not spending a few days learning a program code I plan only to use on this game. I think I will try and find another way if anything.

Thanks for the nice wording.
 
XXconanXXX said:
Did you not see the code Ryoko posted? It has to be in JASS, and if you don't know JASS, go learn JASS.

You can do it in GUI to. I dont know it maybee more laggy or somthing but it works

Code:
InitTimer
    Events
    Conditions
    Actions
        Leaderboard - Create a leaderboard for (All players) titled Time Elapsed
        Set TimerBord = (Last created leaderboard)
        Leaderboard - Change the display style for TimerBord to Show the title, Show labels, Hide values, and Hide icons
        Leaderboard - Add Neutral Hostile to TimerBord with label 00.00 and value 0
        Leaderboard - Show TimerBord


Code:
Updatetimer
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set Timeinseconds = (Timeinseconds + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Timeinseconds Equal to 60
            Then - Actions
                Set Timeinseconds = 0
                Set Timeinminuits = (Timeinminuits + 1)
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Timeinseconds Less than 10
            Then - Actions
                Leaderboard - Change the label for Neutral Hostile in TimerBord to (((String(Timeinminuits)) + .) + (0 + (String(Timeinseconds))))
            Else - Actions
                Leaderboard - Change the label for Neutral Hostile in TimerBord to (((String(Timeinminuits)) + .) + (String(Timeinseconds)))


You can have a multiboard to but i did it as a leaderboard. Remember you can only have one leaderboard at time, I think.
 
Im_On_56k said:
You can have a leadorboard and a multiboard i remember seeing maps that have both.

When you do that, I find it convenient to have a trigger that alternates them, because it tends to clutter the screen. Or, just combine them if the situation allows.
 
I got one made with the multiboard and leaderboard at once, but I dont like it I would like if I can find a way to put the multiboard with the gamer time in it. Only issue I have is making a row to put it in since my multiboard makes rows by the active players that join.
 
Please try not you double post. You can always edit your posts if necessary.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Hey Ghan, whatever cron job its part of its not running its been the same for days. If it does not work can we remove it?
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top