Page 1 of 1

How to Gag Consecutive Blank Lines?

Posted: Mon Apr 27, 2020 8:22 am
by Laps
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:
Image

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):
Image

Seems like this should be simple, I'm new to Mudlet though so any help is appreciated!

Re: How to Gag Consecutive Blank Lines?

Posted: Tue Apr 28, 2020 12:26 am
by demonnic
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?

Posted: Thu Apr 30, 2020 7:56 am
by Laps
demonnic wrote:
Tue Apr 28, 2020 12:26 am
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
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>
Here's what it looks like by default, with no trigger:

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 >
<> 
...and here's what it looks like with the trigger - regardless of whether I put 0 or 1 in the AND / Multi-line (delta) text box:

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?

Posted: Thu Apr 30, 2020 8:02 am
by Vadi
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?

Posted: Thu Apr 30, 2020 9:42 am
by Laps
Vadi wrote:
Thu Apr 30, 2020 8:02 am
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.
Woohoo, that works! Thanks :)

Here's the working trigger:
Image

Re: How to Gag Consecutive Blank Lines?

Posted: Thu Apr 30, 2020 9:54 am
by Vadi
Awesome!