About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
...{chris}...
Novice


Joined: 11 Apr 2005
Posts: 31
Location: Yucaipa, Ca

PostPosted: Fri Apr 15, 2005 2:46 am   

Coutdown timer.
 
Is it possible to create a timer that would countdown from a specific minute, saved as a variable? Im workng on a script that will sit on the NPC ship that goes from continet to continet, and when people ask me where it is, Id like to tell them:
- WHere its docked.
- Where its going next.
- How long till it leaves to the next port.
I got all but the time countdown set up. The time is 4 minutes game time, there are 15 seconds to 1 game min. Thanks.

-ChRiS
_________________
My signature is better than yours.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Fri Apr 15, 2005 4:22 am   
 
Something using an #alarm that subtracts one from the countdown var every second would probably work the best, if I'm understanding what you're wanting:

#VAR countdown {}
#ALARM {*1} {#ADD countdown {-1}}


Then make triggers for things like docking etc like:

#TR {The ship has docked} {#VAR countdown {60}}

Which sets the countdown var to 60 seconds, which will then be counted down by your countdown alarm.
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
...{chris}...
Novice


Joined: 11 Apr 2005
Posts: 31
Location: Yucaipa, Ca

PostPosted: Fri Apr 15, 2005 9:16 pm   
 
So 1 would equal 1 second, instead of 1000 being 1 second? Much thanks for this.
-ChRiS
_________________
My signature is better than yours.
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