 |
...{chris}... Novice
Joined: 11 Apr 2005 Posts: 31 Location: Yucaipa, Ca
|
Posted: 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. |
|
|
 |
Aarlot Adept

Joined: 30 Dec 2003 Posts: 226
|
Posted: 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. |
|
|
 |
...{chris}... Novice
Joined: 11 Apr 2005 Posts: 31 Location: Yucaipa, Ca
|
Posted: 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. |
|
|
 |
|
|