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


Joined: 08 Oct 2003
Posts: 31
Location: United Kingdom

PostPosted: Tue Oct 26, 2004 9:28 am   

Multi Line Triggers
 
Hrm, why do they all seem to take a few seconds before they fire, maybee i am doing it wrong?

You focus your mind intently on curing your mental maladies.$*h, *m *-

Any help would be appreciated. Sad
_________________
God bless Achaea!
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Oct 26, 2004 11:28 am   
 
IT should be pretty instantaneous try posting the FULL trigger including commands. Also limiting your patten even more would be faster too (You won't really notice a diff here.)

You........$(%d)h, (%d)m *-
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Serentus
Apprentice


Joined: 28 Sep 2001
Posts: 103
Location: USA

PostPosted: Wed Oct 27, 2004 3:37 am   
 
This may not be your problem, but....

Since the '*h, *m *-' part of the trigger looks like a prompt, and is at the very end, you may need to set the trigger options to 'prompt' checked and 'new line' unchecked to get it to fire right away.

But depending on where it falls within your triggers you may want to leave the 'new line' checked, because if another prompt trigger fires and outputs something before this one is checked, with out the 'new line' option this one will not match. But with the 'newline' and 'prompt' checked it could fire twice. You could also have the 'new line' unchecked and make sure this one is tested before any other prompt triggers that may have an output.

You can decide which one you want.

A multi-state trigger would be better in this situation.
_________________
-Serentus-
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Oct 27, 2004 11:43 am   
 
Blah I didn't even think of the prompt option *whap*
As Serentus suggested a Multi state trigger would be better

#TRIGGER "maladies" {You focus your mind intently on curing your mental maladies.} {}
#COND {*h, *m *-} {Commands to do stuff here} {prompt|nocr}
_________________
Zmud Support Library
Zmud Knowledge Base
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