|
arnak Beginner
Joined: 22 Jan 2002 Posts: 12 Location: USA
|
Posted: 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 |
|
|
|
Aennor Apprentice
Joined: 06 Dec 2001 Posts: 131 Location: USA
|
Posted: 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 |
|
|
|
arnak Beginner
Joined: 22 Jan 2002 Posts: 12 Location: USA
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
dacheeba Adept
Joined: 29 Oct 2001 Posts: 250
|
Posted: 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 :) |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|