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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Gwaethiel
Beginner


Joined: 23 Feb 2011
Posts: 13

PostPosted: Wed May 08, 2013 12:09 pm   

Day/Night timer?
 
Hello.

I have some trouble with script create.

I know, that it takes 30 minutes to day change to night.

So i want to create script, which will count those 30 minutes. That's easy. BUT. But i want to also create alias, which show me how much time is left to day/night.

For example:

#TR {It began to dawn.} {START COUNTING 30 MINUTES}

#ALIAS {whattime} {#ECHO It left (SHOW HOW MUCH TIME LEFT, UNTILL NIGHT) minutes to night.}

Can you help me, please?
Reply with quote
shalimar
GURU


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

PostPosted: Wed May 08, 2013 3:42 pm   
 
#TR {It began to dawn.} {minutesLeft=30}

#ALIAS {whattime} {#ECHO It left @minutesLeft minutes to night.}

#ALARM "minuteCountDown" -1:00 {#IF (@minutesLeft>0) {#ADD minutesLeft -1}}
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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