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 Trigger
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Rynok
USA (25 posts) Bio
|
Date
| Thu 13 Jul 2006 01:45 PM (UTC) Amended on Thu 13 Jul 2006 04:08 PM (UTC) by Rynok
|
Message
| I realize that there is a reason for why the client won't process the prompt trigger till it reaches the next line, but is there a way to process the prompt without using a plugin? (some check box I'm missing or special expression maybe)
Edit-Figured out how to install a plugin and how to make my own, which I'll start working on. If I process the prompt immediately will it process it again when it gets a newline?
On a totally different note, I wanted to be able to take a multiline trigger and gag it and replace it with a different single line output. You can't gag multiline triggers, so will I need to simply write an additional one line trigger to match each multiline and gag those seperately like that? Would a script be able to gag the multiline (scripting in Lua)? Perhaps a plugin instead so I can grab the trigger before it is displayed/processed?
Thanks | Top |
|
Posted by
| Nexes
(65 posts) Bio
|
Date
| Reply #1 on Thu 13 Jul 2006 06:54 PM (UTC) |
Message
| I think you need to turn on GA\EOR convertion or whatever it's called, and that will make it so triggers run immediatly
instead of one line later. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Thu 13 Jul 2006 10:01 PM (UTC) |
Message
|
Quote:
You can't gag multiline triggers, so will I need to simply write an additional one line trigger to match each multiline and gag those seperately like that? Would a script be able to gag the multiline (scripting in Lua)?
Yes, at present you need to gag the lines individually, whether or not you use Lua. The present philosophy is that once a line is committed to the log file, and displayed, it is too late to go back and un-log it.
However if you have something like:
Your inventory contains:
bread
water
cake
icing sugar
5 items.
It is fairly easy to write 3 triggers to handle that. The first turns on a "gag all subsequent lines" flag (and enables a "match all" trigger). The second trigger captures the middle lines. The third trigger turns off the flag, and winds up.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Rynok
USA (25 posts) Bio
|
Date
| Reply #3 on Thu 13 Jul 2006 11:59 PM (UTC) |
Message
| Thanks. That prompt thing was really starting to annoy me, and I wasn't really ready for messing with plugin's yet. That option worked though once I found it and told it to add a newline to the end. | 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.
14,312 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top