Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Thu Jan 08, 2009 11:12 pm   

Multi-Line Triggers
 
I have a question. What is the best way to create a multi-line trigger where you only want it to fire if it is preceded by a prompt and followed by a prompt?

For example:

1234h, 1234m ex-
Some line goes here.
1234h, 1234m ex-

I created a multi-line trigger and it works, but it is way to slow to fire. What I mean is, if I put the script into just the trigger message of Some line goes here, the command will go through immediately. If I make it wait and check for a prompt within one line, then it sends the command but it won't until the screen prints another line which can cause another delay of like 2 seconds or more. Is it because I failed to mark those as prompt triggers?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Jan 08, 2009 11:14 pm   
 
The print-another-line thing is normally symptomatic of not marking prompt triggers, yes. The line doesn't terminate in a CRLF until a command is entered (because all commands end in CRLF) or until another line is printed below it.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Thu Jan 08, 2009 11:59 pm   
 
Yeah I sort of realized that as I was making that post that I hadn't marked it as prompt. Laughing
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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