^^Įdit: I realize it ain't a 3 minute timer, that's for the bigger track. Should I edit that and change it into your suggested code? Or should I edit the timer display into the above? So far, the problem seems to be the timer that randomly adds time Not the text. (So "startup track" launches the screen with text and the timer.) I got it set up as a startup program with: The text on the monitor itself seems to work fine (Managed to fix that earlier, see the edits) Unless you are referring to the count down timer. Is what I got so far It seems to jump up at random times, all the way to 1000 seconds to lower with 100 each tick. I'll copy the code writing in a bit for reference material I'm sure there's a flaw in it somewhere but it's going in the right direction. Now to get it to count down instead.Įdit2: More awesomeness! Thanks guys, I almost got it working. Sorry if I wasn't entirely clear on the matter.Įdit: Awesome! Managed to keep my text. So I'm going to see if I can combine the two with your examples. Seconds before the train arrives and all.) and the other code seems to erase the rest of the message off the screen but does count down! Would be awesome if I could keep the original text on the monitor above it, and a countdown in the center area under it at a fixed position. (Am I that odd for wanting a count down? Makes more sense in my head. ^^ I'm going to fiddle around some more as the code posted by Script Kiddie seems to count up. This is what I got from what you saidĪwesome! Thanks for the help so far. If this is not what you are looking for then please state again. You will have to come up with a way to use the redstone Api to use the timer to the fullest. There is indeed a sleep function: sleep(amount of time in seconds) So i.e: sleep(3) would sleep for three seconds then execute the following code =) Thanks in advance Alternative ideas welcome if that's easier. Either a helping hand with searching is appreciated, or insight into the code I'm looking for. I'm sorry if it's been asked before, or if it's somewhere on the wiki. I'm trying to avoid hooking it up to redstone and sensors and rather time it myself with a watch as that seems much easier. When it's left, the counter starts at 3 again and counts down. Then it waits a minute, and when the train goes off it starts counting down again. The idea is to sync it with the Railroad (Railcraft thing) I've been building, so that when the timer reaches 0 the train is actually on the station. It just repeats itself over and over on a screen, not outputting anything, nor triggering. (They either have some output signal, lock doors or do other stuff) What I'm looking for is a timer that counts down from X amount of seconds To pause a minute, then to start counting again with no further help needed. Now I've browsed these forums but can't seem to find a code that makes sense to me. From what I understood, the sleep() function helps with that. My recent achievement was learning how to write messages on monitors (yay!) Proud of being a newb, I'm looking into a countdown timer that loops after a small amount of time has passed. So I've been improving at LUA slowly and unsteadily.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |