|
thomaspepon Beginner
Joined: 04 Sep 2008 Posts: 16
|
Posted: Thu Oct 02, 2008 2:06 am
#timer example needed |
I need an example of using the #timer command
I use it often just as #ti 0 and #ti 1 to turn the timer on and off
I'd like to use the whole syntax so I can set the command on it, too, but can't figure for the life of me how to get it to work
I wanted the timer to be off, with commands {#show %time;who;wake;ca 'summon' ghost} with no tick message and 0 timeout margin
I would set that, and then do a #tset 180 to start it with 180 seconds to go. But I just can't get the syntax to work, it's always parsing incorrectly.
I've searched for an example, and all of the tick timer stuff usually ends up talking about alarm use.
(I'm not doing too bad scripting, but I haven't started on alarms, all of my scripting thus far has been fired by the tick timer.)
Any help would be appreciated. Thanks much. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Thu Oct 02, 2008 4:27 am |
Have it show the message on 0 then make a #TRIGGER to #GAG the text it creates and run an #ALIAS
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Oct 02, 2008 10:06 am |
Doing what you want with the timer looks like this
Code: |
#TIMER 0 {#SHOW %time;who;wake;ca 'summon ghost} 0 0
#TSET 180 |
The reason the help tends to be vague about the timer usage and directs the reader towards alarms is because alarms are better. Doing what you want with an alarm is this
Code: |
#ALARM "Ghost" {180} {#SHOW %time;who;wake;ca 'summon ghost} |
Then wherever you want to turn the alarm on or off you can use "#T+ Ghost" and "#T- Ghost". The obvious advantage is that you can have thousands of alarms, but there is only 1 tick timer. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|