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
sjleonard
Beginner


Joined: 10 Jun 2002
Posts: 23
Location: United Kingdom

PostPosted: Wed Jan 08, 2003 11:57 am   

#ALERT
 
the alert function doesn't work for me in Zmud 6.16.

I'm putting it into a class, the purpose of which is to countdown to the time when the armoury resets (every 12 hours).

I have the hours and minutes stored in variables and a button gauge to show the value.

I want an alert to run every minute to update but it gives a syntax error every time.



#CLASS {armoury}
#ALERT *1:00 {some maths in here, not relevant}
#CLASS 0


It gives a syntax error on the * of the *1:00. It does that for every value I put in there, even the ones from the help files.

Anyone know why?

Stewart
AKA Switch (T2T)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jan 08, 2003 12:35 pm   
 
There is no #ALERT command. What you want is #ALARM.

Kjata
Reply with quote
sjleonard
Beginner


Joined: 10 Jun 2002
Posts: 23
Location: United Kingdom

PostPosted: Wed Jan 08, 2003 12:48 pm   
 
ack, that was me being half asleep, sorry Kjata. I have been using #ALARM. The same error applies.

Also when I enter the line then save the class it seems to remove the #ALARM line (asif reverting back to the previous save)

any ideas?

Again, sorry for the mixup.

Stewart
AKA Switch (T2T)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jan 08, 2003 1:01 pm   
 
When using the * in an #ALARM, use seconds:
#ALARM {*60} {some maths in here, not relevant}

Kjata
Reply with quote
sjleonard
Beginner


Joined: 10 Jun 2002
Posts: 23
Location: United Kingdom

PostPosted: Wed Jan 08, 2003 1:09 pm   
 
This is the error:



#ALARM "arm" *60 {#MATH minutes {@minutes-1}}
^ syntax error


It always prompts for a name so I used "arm" (for armoury) and I have the maths here too incase that's the problem?

Stewart
AKA Switch (T2T)
Reply with quote
sjleonard
Beginner


Joined: 10 Jun 2002
Posts: 23
Location: United Kingdom

PostPosted: Wed Jan 08, 2003 1:42 pm   
 
thinking about it is there anyway of starting a countdown in Zmud that's easier, I just want to update the hours and minutes for a maximum of 12 hours (time remaining got from a trigger of armoury master telling you when you enter the room.)

Stewart
AKA Switch (T2T)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jan 08, 2003 4:07 pm   
 
Where are you entering the #ALARM command? You should enter it in the command line.

Kjata
Reply with quote
sjleonard
Beginner


Joined: 10 Jun 2002
Posts: 23
Location: United Kingdom

PostPosted: Wed Jan 08, 2003 5:30 pm   
 
Okay, ignore all of that, I just found the settng in triggers that you can make them of type ALARM, so simple and so totally not in any help file anywhere! :)

(take that as a suggestion for future versions, maybe include the GUI way aswell as the script way, I couldn't get ALARM working anywhere by scripting.)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jan 08, 2003 7:15 pm   
 
Click on Help, then Contents, expand Settings, expand Triggers, open Trigger Options. There's the related help entry.

Also, scripts posted in this forum are meant to be copy and pasted into the command line unless otherwise specified.

Kjata
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