| 10-23-2002, 07:15 PM | #1 |
Guest | I would like to create a timer which appears on my leaderboard which shows the elapsed game time. I would like it to be updated in one second intervals. I have been fooling around with this for over a week and cannot figure out how to make this happen. If anybody out there can walk me through this it would help me out soo much. If variables are defined in your reply please tell me what they are rather than just telling me that a variable goes here. Feel free to name them accordingly. Also the player I will be using for this timer is Player 12 Brown. |
| 10-24-2002, 06:53 AM | #2 |
Guest | Sorry man, couldn't get it to work. I tried to make it using the leaderboard, but it didn't work. I got it to work so that it would count up in seconds but it was just in the format "seconds" not even "01", "02" etc. I couldn't figure out how to set the value of the player to a string so I could do this "00:00" if I tell it to do 01 it does 1 and if I tell it to do 00 it does 0. I have given up on the idea. Sorry I couldn't be any help. The only other Idea I have, if you want a clock, is to set the day/night time to actual seconds and then you can have it time to game to a degree. Other than that though, I'm out of ideas. If you figure out how to get it working though, msg me, thanx. |
| 10-24-2002, 08:09 AM | #3 |
Guest | Thank you very much for trying. I really appreciate you taking the time. I was able to finally setup a timer that counts up but like you encountered only in seconds and I couldn't get it to go 01. Arg... back to the drawing board :( |
| 10-24-2002, 06:27 PM | #4 |
Guest | Maybe you can make a trigger that runs and checks if the seconds are below 10, and if they are, add a "0" to the string it will print in the leaderboard, then add the seconds to the string. If it isn't then just add the number of seconds to the string in the leaderboard. |
| 10-24-2002, 07:07 PM | #5 |
No man this isnt easy... i tried for 10 mins but i couldnt find any ways... you can get it to show the time in seconds but not in minutes and seconds... ill post here if i manage to figure it out... |
| 10-24-2002, 07:17 PM | #6 |
Guest | Well, I have never done a leaderboard, but I made the timer and everything. Instead of displaying it to a leaderboard, it just displays it as text. Ignore the other stuff on the map, this is my spell and unit testing map, and I left my stuff there. And the triggers are not optimized in any way, I used no if statements, just triggers. |
| 10-24-2002, 07:19 PM | #7 |
Guest | Oh yea, and I made a trigger called DEBUG that sets seconds to 55 and minutes to 59 so you can see it roll over ok. Get rid of it to have it start at 00:00:00 or in the game you can speed it up or whatever. |
| 10-24-2002, 08:41 PM | #8 |
Guest | okay raw well i like what you have and i was wondering if it would be okay to use it? I'll be sure to mention you in my credits and send you a copy of my map as soon as its finished. I also was wondering if it was possible to make the text on the map that scrolls up to disappear? I dont know if that sounds clear so waht I'm trying to say is this; the screen looks like this: XX:XX:XX XX:XX:XX XX:XX:XX XX:XX:XX XX:XX:XX <- this one and above to disappear (B) XX:XX:XX <- the only time I want to show up (A) Is there anyway to make the line marked (B) and every other line above it to disappear so only the line marked (A) is visable on the screen. This way it will look like an actual timer is just sitting there. Also how hard would it be to add "Elapsed Time" before the XX:XX:XX so it looks like "Elapsed Time XX:XX:XX"? Thank you so much for your help. |
| 10-24-2002, 08:43 PM | #9 |
Guest | As for doing the leaderboard I think it is impossible to achieve. I have been posting htis message in every warcraft 3 forum that I could find on the net and nobody has come up with anything. The closest thing I had was setting up three different players on the playerboard, one for each interval (sec,min,hr) which looked kind of gay. Anyway that just goes to show you the power of Wc3Campaigns |
| 10-24-2002, 09:50 PM | #10 |
Guest | Adding Elapsed Time to the time is easy, but I am afraid I don't think Warcraft has a way of clearing messages displayed on the screen. I am not very familiar with leaderboards, but would it be possible to have the Time Elapsed: XX:XX:XX be the Name of the leaderboard, and instead of changing the values of the leaderboard, you just keep changing the name? And yea, feel free to use it. |
| 10-24-2002, 10:55 PM | #11 |
Guest | It seems to work, here it is. If you want me to clean it up, and put it on a blank map I can do that for ya. |
| 10-24-2002, 11:09 PM | #12 |
Guest | Are you adding new entries to the leaderboard? Try using a change player value value trigger instead of an add player? (if I am assuming wrongly here, just ignore the message 8) ) |
| 10-25-2002, 01:19 AM | #13 |
Guest | Actually, because the leaderboard usually only shows integers, I made the timer be updated as the Name of the board which accepts strings. So there are no players added to the leaderboard, its just the name that is changed every 1 second. |
| 10-25-2002, 01:47 AM | #14 |
Hey Raw that was a good idea... :D |
| 10-25-2002, 02:24 AM | #15 |
Guest | Only problem is that you can't have a title for the leaderboard if you want to actually use it as a leaderboard... unless. I will try something. |
