Register to post in forums, or Log in to your existing account

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion

Joined: 24 Aug 2004
Posts: 277

PostPosted: Sat May 07, 2022 1:04 am   

Countdown timer in a button
I had an old script once upon a time but my old files appear to be corrupted, I can't open them :( It'd been about 5 years since I did anything in CMud and can't seem to figure this out anymore :(

All I want to do, is have a button on my taskbar that has a X second countdown(will only ever be seconds long). I remember using a variable, but I can't remember how I set it. I can't seem to figure it out using %time, and I tried making it a # and just removing 1 every second, but it bugged out pretty hard and crashed my window when I tried opening it (I have no idea what I did to piss it off but I had to load a backup).

Tried googling it but that didn't come up with anything helpful.

Please and thank you if you have something short and sweet that'll help me out!

Have a fantastic day!
Reply with quote

Joined: 04 Aug 2002
Posts: 4620
Location: Pensacola, FL, USA

PostPosted: Sat May 14, 2022 3:57 pm   
I do something similar...
My buttons do a power, then I change the appearance of the button til I can to the power again, like this:

#CALL %btncol(berserk,,firebrick)
#ALARM "berserkering" +80 {#CALL %btncol(berserk,,lime)}
Discord: Shalimar#3679
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by