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
➜ Gagging multiple lines
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| DragonCharmer84
(3 posts) Bio
|
Date
| Fri 15 Dec 2006 07:13 AM (UTC) |
Message
| I've got a problem. I've gagged a few things, and I end up getting spammed by stuff that looks like this:
3877h, 2114m exdb-
3877h, 2114m exdb-
3877h, 2114m exdb-
3877h, 2114m exdb-
3877h, 2114m exdb-
3877h, 2114m exdb-
Is there any easy way I can fix this with settings? If not, I was thinking that it out to be possible to set up a scripted trigger that would gag repeats of the same prompt. As a sidenote, the numbers and the letters in front of the dash should all be variables to make the trigger as flexible as possible.
I've tried to find information on such a script. Unfortunately, being very computer illiterate I tend to spend many hours trying to problem solve the simplest of scripts.
The expert programming advice of this board's members is hearby requested. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 15 Dec 2006 10:59 PM (UTC) |
Message
| One approach would be to simply gag all prompt lines, in the process copying the information on them to the status line, so you can still see your hit points, etc. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Artel
USA (65 posts) Bio
|
Date
| Reply #2 on Wed 20 Dec 2006 02:15 AM (UTC) Amended on Wed 20 Dec 2006 02:16 AM (UTC) by Artel
|
Message
| I have run across a similar issue myself. I know it could be done as you mentioned, Nick, however, I don't want that line to be gagged if hp < 1000. Is there a gag/omit type function that I could add to my trigger body? if %1 > 1000 then _______
Thanks. |
Artel. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Fri 22 Dec 2006 02:59 AM (UTC) Amended on Fri 22 Dec 2006 03:00 AM (UTC) by Nick Gammon
|
Message
| What you can do is make two triggers, the first with a lower sequence, that enables or disables the second one depending on some condition. The condition might be health low, same as previous prompt, and so on. This might look like this:
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="*h, *m *-"
send_to="14"
sequence="90"
>
<send>
EnableTrigger ("prompt_trigger", %1 > 1000 )
</send>
</trigger>
<trigger
match="*h, *m *-"
name="prompt_trigger"
omit_from_output="y"
sequence="100"
>
</trigger>
</triggers>
In this example the prompt is first tested in trigger sequence 90 (the first one), and this enables or disables the second trigger depending on a test (health > 1000).
If enabled, the second trigger omits the line from output. |
- 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.
13,860 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top