Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Prompt triggers
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Rangon
(5 posts) Bio
|
Date
| Sat 08 Apr 2006 02:11 PM (UTC) |
Message
| I'm also having a problem getting prompts to hit triggers when they're supposed to. I've got the prompt set to a trigger, and the correct one. However, when the prompt comes up on the screen, I have to hit something or something else has to happen on the screen before that prompt will fire.
I've tried notating the trigger with ^...$ and tried the different options listed on the trigger. Does anyone have any ideas about what I might be able to do to get these prompts to fire quicker? It just seems to me that they don't want to fire on that last line of the screen.
| Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 09 Apr 2006 04:13 AM (UTC) |
Message
| There have been many, many discussions on this forum about this. Basically the answer is that MUSHclient processes triggers when a newline arrives, in your case it hasn't arrived yet so the trigger doesn't fire (yet).
There are various work-arounds, one is to make the MUD append a newline to prompt lines. For another, see this post:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=5020
This adds a newline when it receives a prompt.
I think there was another one again where a plugin had a timer that checked for prompts before the newline. This is on the plugin page:
http://www.gammon.com.au/mushclient/plugins/
Look for the plugin "Status_Bar_Prompt". |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Rangon
(5 posts) Bio
|
Date
| Reply #2 on Sun 09 Apr 2006 05:00 AM (UTC) |
Message
| Nick,
Thanks for posting the links. I looked over a lot of what you put on there but, unfortunately, while it is putting the extra line it's still waiting for some other type of input on that line before resolving the plug-in. Could I just be missing something?
It does put the extra newline in, and it's putting it in before any of the triggers fire for that prompt, but it's still waiting. There are no options or anything to do on the fly trigger completion as the program receives lines? That sounds like something that would have to be changed at the base programming level though...
Just so you know, I am using 3.7.
I appreciate your help thusfar. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sun 09 Apr 2006 05:10 AM (UTC) |
Message
| |
Posted by
| Rangon
(5 posts) Bio
|
Date
| Reply #4 on Sun 09 Apr 2006 12:39 PM (UTC) |
Message
| This is the trigger that I use for script execution on prompt.
<triggers>
<trigger
enabled="y"
match="^H:(.*?) M:(.*?) E:(.*?) W:(.*?) B:(.*?)% \[(?P<Prone>(.*?)) (?P<Equil>(e|\-))(?P<Balan>(b|\-))\]"
name="Prompt"
regexp="y"
script="Prompt"
send_to="12"
sequence="100"
variable="test"
>
</trigger>
</triggers>
I tried this trigger's expression in your plug-in and I also tried just ^H:(.*?)(with and without $) and both of them would hide the prompt at the bottom of the screen until something 'new' happened. Then it would parse all of the prompts together.
For instance, if I hit enter a couple of times and then looked, my screen would look like this:
previous stuff
(empty)
(empty)
(empty)
prompt - prompt - prompt - room information
Every time I would hit enter it would put in another blank space. As soon as I did something that the computer would respond back with, it dumped all the triggers onto me at once. Did I do something wrong? | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #5 on Sun 09 Apr 2006 09:06 PM (UTC) |
Message
| If you are seeing:
prompt - prompt - prompt - room information
Then you are not getting a newline at the end of the prompt. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Rangon
(5 posts) Bio
|
Date
| Reply #6 on Fri 28 Apr 2006 01:48 AM (UTC) |
Message
| Yeah, I know that it's not working properly. It's an IRE prompt. Does anyone out there have a possible plug in that's known to work? All of the information on the link you sent to me, Nick, is from well back in 2005 on a completely different version of the program. I can't seem to get it to work just as it should.
Has anyone had any true luck getting MushClient to give the newline on IRE games; Aetolia specificly?
Thanks! | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #7 on Fri 28 Apr 2006 07:22 AM (UTC) |
Message
| The program has not radically changed in the last year. Mainly scripting improvements and a few bug fixes.
In the Output configuration, have you tried checking: "Convert IAC EOR/GA to new line"?
I'm not sure if it applies to Aetolia, but some MUDs send a special sequence at the end of prompts that MUSHclient can convert to a newline. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nexes
(65 posts) Bio
|
Date
| Reply #8 on Sun 30 Apr 2006 06:26 AM (UTC) |
Message
| The IRE Muds do, in fact, use the IAC EOR/GA.
Well, at least Achaea does, but Im pretty sure it's all of them. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #9 on Mon 01 May 2006 06:16 AM (UTC) |
Message
| If you enable that setting, then the prompts should take a line each. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
30,648 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top