Prompt and Blank Lines Issues

Posted by Uchida on Mon 06 May 2024 12:47 PM — 7 posts, 12,852 views.

#0
Hi, I am playing aardwolf. I have a few things GAG and I then realised there are many blank lines and repeated prompt showing up. It is really annoying. Is there a way i can remove the blank lines and duplicates? I just want to see one line instead of so many lines and blank lines.

Thanks!

Here is what i am seeing during combat:

<[71100/73381hp 46751/46751mn 30902/33554mv]>

<[71100/73381hp 46751/46751mn 30902/33554mv]>

<[71100/73381hp 46751/46751mn 30902/33554mv]>

<[71100/73381hp 46751/46751mn 30902/33554mv]>

<[71100/73381hp 46751/46751mn 30902/33554mv]>

<[71100/73381hp 46751/46751mn 30902/33554mv]>
<[71100/73381hp 46751/46751mn 30902/33554mv]>
<[71100/73381hp 46751/46751mn 30902/33554mv]>
<[71100/73381hp 46751/46751mn 30902/33554mv]>
--> TICK <--
Amended on Mon 06 May 2024 01:52 PM by Uchida
USA Global Moderator #1
Since your scripts are clearly hiding all combat output, what if you disable your prompt during combat too?
Amended on Mon 06 May 2024 01:22 PM by Fiendish
#2
I have searched the forum and used a OmitBlankLine plugin written by Digs and if i removed the battle prompt. The lines are mostly cluttered without blank lines but i do want to see the battle prompt.
USA Global Moderator #3
Quote:
I have a few things GAG


Quote:
but i do want to see the battle prompt


I think an earlier version of your post said you were specifically triggering on combat output. If you hide combat output, and what's left is a bunch of battle prompts between combat rounds, and you say you want to hide the battle prompts, you can't then say that you also want to keep the battle prompts. Hiding them and not hiding them are incompatible outcomes.

So what exactly are you gagging and what exactly do you want to show and when?
Amended on Mon 06 May 2024 02:43 PM by Fiendish
#4
Hi Fiendish,

I am gagging small damage messages like counterstrikes etc. I meant i want to see battle prompt but i do not want to see duplicate battle prompts.

So i am trying to remove all duplicates of battle prompts and keep just one line of battle prompt.

Thanks!
USA Global Moderator #5
For that you'd need to have a trigger that matches on your prompt, compares it to previously captured prompts, and then selectively hides it only if it's the same as before.

Off the top of my head, two options that would work for that are https://www.mushclient.com/scripts/doc.php?function=DeleteLines (though read that page carefully for gotchas about using it) or making a prompt trigger that catches all prompts for inspection and then builds a new omit_from_output prompt trigger customized for that specific prompt line to omit repeated prompts that look the same as the one you just saw.
Amended on Mon 06 May 2024 04:20 PM by Fiendish
#6
Thank you Fiendish! That is what I was thinking as well. I just need to find out how to code it :P I will go read up on DeleteLines. Cheers!