[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Prompt and Blank Lines Issues

Prompt and Blank Lines Issues

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page


Posted by Uchida   (11 posts)  [Biography] bio
Date Mon 06 May 2024 12:47 PM (UTC)

Amended on Mon 06 May 2024 01:52 PM (UTC) by Uchida

Message
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 <--
[Go to top] top

Posted by Fiendish   USA  (2,518 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Mon 06 May 2024 01:21 PM (UTC)

Amended on Mon 06 May 2024 01:22 PM (UTC) by Fiendish

Message
Since your scripts are clearly hiding all combat output, what if you disable your prompt during combat too?

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Uchida   (11 posts)  [Biography] bio
Date Reply #2 on Mon 06 May 2024 01:54 PM (UTC)
Message
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.
[Go to top] top

Posted by Fiendish   USA  (2,518 posts)  [Biography] bio   Global Moderator
Date Reply #3 on Mon 06 May 2024 02:42 PM (UTC)

Amended on Mon 06 May 2024 02:43 PM (UTC) by Fiendish

Message
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?

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Uchida   (11 posts)  [Biography] bio
Date Reply #4 on Mon 06 May 2024 02:52 PM (UTC)
Message
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!
[Go to top] top

Posted by Fiendish   USA  (2,518 posts)  [Biography] bio   Global Moderator
Date Reply #5 on Mon 06 May 2024 04:13 PM (UTC)

Amended on Mon 06 May 2024 04:20 PM (UTC) by Fiendish

Message
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.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Uchida   (11 posts)  [Biography] bio
Date Reply #6 on Mon 06 May 2024 04:47 PM (UTC)
Message
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!
[Go to top] 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.


265 views.

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]