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


Joined: 14 Jul 2005
Posts: 22
Location: Budapest

PostPosted: Mon Jul 18, 2005 8:57 am   

prompt trigger
 
There is a trigger option - trigger on promt.
Can somebody explain please what is this, how to use it? What need to set on zmud, or mud?
Thanks.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Jul 18, 2005 9:35 pm   
 
Trigger on Prompt is for triggering on lines that do not end with a newline character (CR for carriage return, or LF for line feed, usually both are sent.) This means that as soon as the specific trigger matches it's target, stuff happens. With Trigger on Newline, the trigger waits until the next newline character to execute it's code.

I know it's not all that great an explanation, but it'd good enough for government work.
_________________
EDIT: I didn't like my old signature
Reply with quote
godzilla1
Beginner


Joined: 14 Jul 2005
Posts: 22
Location: Budapest

PostPosted: Wed Jul 20, 2005 8:57 pm   
 
I always knew what is for prompt trigger.
I just dont know how to use it. If i use promt trigger, it isnt triggering at all for me. So that is what i ask: how to use it?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Jul 21, 2005 9:47 pm   
 
133/133hp 145/145sp 250/250mv>look

Say that this is the prompt from the mud, and when you type a command (in this case, LOOK), it puts the command at the end of the prompt like above. This is what Trigger on Prompt is for, to match and immediately execute whatever code was in the trigger once the lack of a newline character was detected. If Trigger on Prompt was not checked, then any code the trigger would run would not execute until you either sent a command to the mud or the mud sent you another line of output. Both of those conditions end with a newline character, which is where ZMud anchors trigger execution by default.

You sound like a non-English native, so hopefully I didn't too thoroughly confuse you. If you'd like, post the trigger you're having trouble with and maybe I or someone else can illustrate the point made.
_________________
EDIT: I didn't like my old signature
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