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
jurz
Novice


Joined: 22 Feb 2002
Posts: 48
Location: Latvia

PostPosted: Fri Nov 07, 2003 12:34 pm   

Classes on/off
 
Hi,

I have many triggers under certain class.
They are used very rarely - I would need
to turn on the class only before command
I created

#ALIAS vi {
#T+ vitals
vitals
#T- vitals
}

It's not placed under class vitals. But
it doesn't work.

Any hints?

Thanks in advance
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Nov 07, 2003 5:52 pm   
 
Don't expect triggers in the vitals class to work if you disable the class immediately after issuing the command. Your computer is much faster than the internet and you'll probably have the triggers turned off well before the command even reaches the MUD. Move the #T- command to something that's based on MUD output, or build in a delay with #ALARM.

Rough timeline
1. (#T+ vitals) vitals class enabled, triggers work
2. (vitals) command sent to MUD
3. (#T- vitals) vitals class disabled, triggers don't work
4. command arrives at MUD
5. MUD sends stuff back
6. output from MUD arrives. Since vitals class has been disabled for many microseconds, triggers don't work
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