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


Joined: 22 Jan 2002
Posts: 12
Location: USA

PostPosted: Wed Jan 23, 2002 7:50 pm   

trigger
 
ok my roller is working great it accepts the roll and goes to the {Does your terminal support ANSI color? [Y/n} it stops here and times out i tried to make a trigger to say yes but i cannot get it to work so it times out and i lose the roll


Kevin S. Halbig
Reply with quote
Aennor
Apprentice


Joined: 06 Dec 2001
Posts: 131
Location: USA

PostPosted: Wed Jan 23, 2002 7:52 pm   
 
Not sure what your "roller" is but you should be able to get past this with the following:

#TR {^~{Does your terminal support ANSI color~? ~[Y/n~}$} {Y}

(untested)


--
Aennor the Paragon of Gratuitous Agony
Staff on WoTMUD
wotmud.org 2222
Reply with quote
arnak
Beginner


Joined: 22 Jan 2002
Posts: 12
Location: USA

PostPosted: Wed Jan 23, 2002 9:01 pm   
 
quote:

Not sure what your "roller" is but you should be able to get past this with the following:

#TR {^~{Does your terminal support ANSI color~? ~[Y/n~}$} {Y}

(untested)

this trig does not seem to function i deleted the {} at the ends of the command line and tried the {y} as Y and ~{Y~} with no sucesss
--
Aennor the Paragon of Gratuitous Agony
Staff on WoTMUD
wotmud.org 2222



Kevin S. Halbig
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jan 23, 2002 11:26 pm   
 
The problem is that triggers, by default, wait for a newline to be received from the MUD before they process a line and see if it matched. When you receive the message
Does your terminal support ANSI color? [Y/n]
from the MUD, it doesn't send a newline because it is waiting for some input from you and not just displaying some message. This is what we normally call a prompt.

So, to make a trigger parse the line and check for matches before it receives a newline, you need to use the prompt option on that trigger. Example:
#TR {^~{Does your terminal support ANSI color~? ~[Y/n~}$} {Y} "" {prompt}

If you want to do it through the Settings Editor, you will find this option in the Options tab for that trigger. There is a section that says Trigger On: with three checkboxes. Just make sure prompt is selected.

Kjata
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Thu Jan 24, 2002 12:08 am   
 
quote:

quote:

Not sure what your "roller" is but you should be able to get past this with the following:

#TR {^~{Does your terminal support ANSI color~? ~[Y/n~}$} {Y}

(untested)

this trig does not seem to function i deleted the {} at the ends of the command line and tried the {y} as Y and ~{Y~} with no sucesss
--
Aennor the Paragon of Gratuitous Agony
Staff on WoTMUD
wotmud.org 2222



Kevin S. Halbig


I believe the problem here is a simple typo try this:

#TR {^~{Does your terminal support ANSI color~? ~[Y/n~]$} {Y}

I think your mud output was suppose to have a bracket instead of a curly brace, yes?
If not, then ignore this post :)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jan 24, 2002 7:12 pm   
 
Another solution is to provide the answer without waiting for the question. Since you know the question is coming, add the y (or n) to your autoroller's Y answer.

#TR {autoroller phrase} {#IF (good roll) {y;y} {n}}

LightBulb
All scripts untested unless otherwise noted
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