|
RonVarnum Newbie
Joined: 26 Dec 2001 Posts: 1 Location: USA
|
Posted: Wed Dec 26, 2001 5:44 pm
Tick Timer |
Is there a way to use the tick timer to change a variable each time it changes? I am trying to make a clock. The mud I spend my time on uses a tick that is 60 seconds long. This means that a rl minute is equal to one hour game time, a day is equal to 24 minutes, and so on. If I can use the tick timer to change a variable each second that will be the minutes, and when a tick comes I can change the hour. If the hour is greater than 12 I change the ampm, and put the hour to 1. This is all dependent on accessing the tick timer, or is there an easier way to do this? Maybe the wait command? Anyway any help will be appreciated.
Thanks all
Ron Varnum |
|
|
|
Blerghass Beginner
Joined: 25 Nov 2001 Posts: 26 Location: USA
|
Posted: Wed Dec 26, 2001 7:02 pm |
Using the %tick variable will probably be sufficient for what you want to do. To do the hour thing, you just need to keep track of it with a separate variable. You can have zMUD do something when the tick timer hits 0 with the "Tick Timer" dialog box.
|
|
|
|
SHASCO Novice
Joined: 29 May 2001 Posts: 48 Location: USA
|
Posted: Wed Dec 26, 2001 11:57 pm |
#ALARM would be another alternative.
|
|
|
|
|
|