How can I make a trigger that causes all stretches of consecutive blank lines to be condensed into a single blank line?
Here's a trigger that gags every blank line:
I was thinking of something like this (also notice the AND / Multi-line (delta) checkbox), but it has the same effect as above (leaving no blank line in tact):
Seems like this should be simple, I'm new to Mudlet though so any help is appreciated!
How to Gag Consecutive Blank Lines?
Re: How to Gag Consecutive Blank Lines?
The bottom one looks ok, except the line delta of 0 makes it only fire if it's on the same line, which two blank lines never could be. set the line delta to 1 and try that
Re: How to Gag Consecutive Blank Lines?
Hmm, this seems to be deleting even single blank lines - and in fact so does the trigger in my original post. I'll demonstrate below, where I'll paste the result of the following commands:
Code: Select all
frag
<enter>
<enter>
<enter>
Code: Select all
frag
Frag Level Cap: 56 - Good, 56 - Others, Top Frag Amount: 36.21
Timer: 00:00:00:00 Frags needed: 19.20
Frag Information for Everyone:
Top Fraggers
Alfy 43.46 (Halfling Thief)
Ryto 32.00 (Kobold Dark Dreamer)
Riudel 31.58 (Kobold Dark Dreamer)
Fuzz 22.20 (Goblin Thief)
Morrigu 17.85 (Halfling Forest Druid)
Nul 15.73 (Kobold Star Magus)
Fatwa 14.57 (Githzerai Pyrokinetic)
Tiu 14.27 (Goblin Thief)
Kaene 11.73 (Barbarian Bounty Hunter)
Riq 10.54 (Goblin Thief)
Lowest Fraggers
Drano -6.43 (Grey Elf Star Magus)
Grahk -4.50 (Halfling Spiritualist)
Iona -3.58 (Grey Elf Controller)
Cyrpse -3.42 (Drow Elf Necrolyte)
Sgan -3.40 (Drow Elf Spiritualist)
Grutag -3.35 (Drider Shadowmage)
Cebz -3.00 (Githzerai Pyrokinetic)
Nazz -3.00 (Drow Elf Necrolyte)
Keltor -3.00 (Troll Spiritualist)
Gelcro -2.72 (Drow Elf Reaper)
< 265h/265H 646m/646M 141v/141V Pos: standing >
<>
< 265h/265H 646m/646M 141v/141V Pos: standing >
<>
< 265h/265H 646m/646M 141v/141V Pos: standing >
<>
< 265h/265H 646m/646M 141v/141V Pos: standing >
<>
Code: Select all
frag
Frag Level Cap: 56 - Good, 56 - Others, Top Frag Amount: 36.21
Timer: 00:00:00:00 Frags needed: 19.20
Frag Information for Everyone:
Top Fraggers
Alfy 43.46 (Halfling Thief)
Ryto 32.00 (Kobold Dark Dreamer)
Riudel 31.58 (Kobold Dark Dreamer)
Fuzz 22.20 (Goblin Thief)
Morrigu 17.85 (Halfling Forest Druid)
Nul 15.73 (Kobold Star Magus)
Fatwa 14.57 (Githzerai Pyrokinetic)
Tiu 14.27 (Goblin Thief)
Kaene 11.73 (Barbarian Bounty Hunter)
Riq 10.54 (Goblin Thief)
Lowest Fraggers
Drano -6.43 (Grey Elf Star Magus)
Grahk -4.50 (Halfling Spiritualist)
Iona -3.58 (Grey Elf Controller)
Cyrpse -3.42 (Drow Elf Necrolyte)
Sgan -3.40 (Drow Elf Spiritualist)
Grutag -3.35 (Drider Shadowmage)
Cebz -3.00 (Githzerai Pyrokinetic)
Nazz -3.00 (Drow Elf Necrolyte)
Keltor -3.00 (Troll Spiritualist)
Gelcro -2.72 (Drow Elf Reaper)
< 265h/265H 646m/646M 141v/141V Pos: standing >
<>
< 265h/265H 646m/646M 141v/141V Pos: standing >
<>
< 265h/265H 646m/646M 141v/141V Pos: standing >
<>
< 265h/265H 646m/646M 141v/141V Pos: standing >
<>
Re: How to Gag Consecutive Blank Lines?
The next pattern starts matching on the same line as the previous line (this is helpful for other scenarios), so inbetween the two lines, put a 'line spacer' with a value of 1 to make it skip onto the next line.
Re: How to Gag Consecutive Blank Lines?
Woohoo, that works! Thanks
Here's the working trigger: