 |
Gwaethiel Beginner
Joined: 23 Feb 2011 Posts: 13
|
Posted: 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? |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4734 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
 |
|
|
|
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
|
|