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
Scarn
Apprentice


Joined: 24 Jul 2005
Posts: 137

PostPosted: Sun Oct 04, 2015 4:48 pm   

Calling tick timer value.
 
Hello, my tick timer is configured from my MUDs uptime.

EG..


The Two Towers has been up for 2d 4h 48m 50s.
Timer now at 720 secs.

Roughly speaking the game ticks every 15 minutes, on the 15,30,45 and 60 minute intervals. Once synced my tick timer then resets to 900 seconds at quarter of an hour.

So I can get a bit more use out of this function is there a way I can #CALL how many seconds are left until the next tick?

I know #T? shows me how many, but I can't really use this in a function, lets say an alias broadcasting how many seconds to the next tick.

Cheers,

Scarn
Reply with quote
shalimar
GURU


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

PostPosted: Sun Oct 04, 2015 6:37 pm   
 
Not that I am aware of, you just need to make a trigger on the output to capture the value when it is needed.
_________________
Discord: Shalimar#3679
Reply with quote
Scarn
Apprentice


Joined: 24 Jul 2005
Posts: 137

PostPosted: Sun Oct 04, 2015 6:57 pm   
 
Yeah, that is what I've done... just means I'll have to use a #WAIT in a sequence to capture it, I don't like using that many #WAIT functions.
Reply with quote
shalimar
GURU


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

PostPosted: Sun Oct 04, 2015 7:55 pm   
 
Make use of a #WAITFOR to pull the info?
_________________
Discord: Shalimar#3679
Reply with quote
Scarn
Apprentice


Joined: 24 Jul 2005
Posts: 137

PostPosted: Sun Oct 04, 2015 11:27 pm   
 
One step ahead of you! My only dislike of WAIT and WAITFOR is that if something else triggers during the wait, or the build up to the wait, they conflict... or rather make me so something I don't want to do.
Reply with quote
Scarn
Apprentice


Joined: 24 Jul 2005
Posts: 137

PostPosted: Sun Oct 04, 2015 11:29 pm   
 
I might just make an alarm instead of using the tick timer, I think you can #CALL time remaining on alarms...
Reply with quote
shalimar
GURU


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

PostPosted: Mon Oct 05, 2015 1:37 am   
 
Easy enough to do a post test when you do have to wait, but an #ALARM works as well.
_________________
Discord: Shalimar#3679
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Mon Oct 05, 2015 9:28 am   
 
%tick does this.

Predefined variables :)
Reply with quote
Scarn
Apprentice


Joined: 24 Jul 2005
Posts: 137

PostPosted: Tue Oct 06, 2015 3:20 am   
 
Jesus how did I miss that. Haha, thanks!
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 Wolfpaw.net