Greetings,
I've been trying to find something browsing through the Mush forums, but I've yet to see something in a ...language I can understand. With all the recent spam from the vine systems throughout the game, I've been trying to gag the message. I've managed to gag it and delete the blank lines using the Mush plugin for it, but I'm still left with the prompts following where the line would be. Does anyone know how to get rid of these as well?
(P.S.) I've been told numerous times by various people to move to Mudlet. While I'm sure it's a fine client, I rather like my current one and won't be changing.
Thank you for the help.
0
Comments
A quick and dirty solution would be:
a prompt pattern trigger with
* enabled = off
* omit from output = on
* send to = script
* label = prompt_gag
and in the box
EnableTrigger('prompt_gag', false)
Then in your spore gag trigger, add: EnableTrigger('prompt_gag', true)
Currently available: Abs, Cnote, Keepalive, Lootpet, Mapmod
mmmmm Yeah you made that too complicated. It does work, when done exactly how I explained. I didn't test it with spores because I'm lazy but I did test it on a line in my score.
You are, for some reason, trying to multiline match the spore pattern (which you didn't put in the code for looking for that second line). You don't want to do that, least of all for this situation. Just a simple single line trigger is sufficient.
Also you want to start the prompt trigger disabled or else it's going to gag a prompt right away. Not horrible but... no reason for it when it could be avoided as easily.
The reason I gave him this solution - a solution specifically for mush, from a longterm mush user - instead of just handing over the code for a one-shot trigger, is because he can use the prompt_gag trigger again in the future if he wants to. If his spore gag trigger is already in a plugin, then the code you gave would be a close solution with minor changes, but if it's in his world file then he's better off just adding a new trigger and checking the boxes as I described.
Currently available: Abs, Cnote, Keepalive, Lootpet, Mapmod
Now if you're into combat and posting combat logs and the like, you wouldn't be able to show health and status changes via simple logging, but it's an effective option.
Otherwise, what the people have listed here looks like it would work fine for what you need.
http://pastebin.com/P33UJemW
So close!
You're sending: EnableTrigger('prompt_gag', true)
That requires the trigger to be named.
You have: group="prompt_gag"
But that only defines the group, not the name.
You'd need to change EnableTrigger to EnableGroup,... or change group="prompt_gag" to name="prompt_gag"... so that it all matches.
For your prompt, a lot of regexp formulas will grab it.
(.*?) is a good general catchall, but it is a general catchall. For the prompt, if you have numbers set to show, you can also use (\d+) instead to match only numbers there. Might be a little more reliable.
Currently available: Abs, Cnote, Keepalive, Lootpet, Mapmod
I really miss the old Mushclient clan that used to be around. Shame it was changed into something else.
Naming a trigger in your world (alt+enter) is done via the "label" tag.
We may have to setup another mushclient clan in the future. You can msg me in the meantime, if you run into a question you'd rather not post.
Currently available: Abs, Cnote, Keepalive, Lootpet, Mapmod
Edit: Ninja'd with a response to @Adrak 's question.