Best way to gag things

Hi I'm still fairly new to mudlet what I'm trying to do is gag lines in the most efficient way possible as there are a lot of unnecessary things I'm seeing.

For example I've done ^(\w+) recharges a Scroll of Healing from an energy cube.$  and ^Your left arm is off balance.$ to deleteLine()

This gags the line and removes it just fine but the only problem I'm finding is that it spams my prompt a fair bit as well

Is there anyway to fix this or is there a better way to gag things?


For example if I tab my bash key a few times I get this: 


You strike at a robed obesefessor's body with a viciously hooked flail.
9716h, 8220m, 7340e, 10p, 23280en, 23280w Berxkdb<>-
You strike at a robed obesefessor's body with a viciously hooked flail.
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
You take a drink of a potion of frost from a bloodstone vial.
Steam rises from your skin as the fires that plague you are extinguished. (0.304s)
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
You must possess balance in order to do that.
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
You must possess balance in order to do that.
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
You must possess balance in order to do that.

Comments

  • deleteLineP()
  • SynkarinSynkarin Nothing to see here

    function deleteFull()

    deleteLine()

    tempLineTrigger(1,1,[[if isPrompt() then deleteLine() end]])

    end


    Everiine said:
    "'Cause the fighting don't stop till I walk in."
    -Synkarin's Lament.
  • edited August 2016
    Hmm deleteLineP() seems to do the same thing and spams my prompt when I spam attacks.

    and the second one @Synkarin dosn't seem to gag lines at all unless i'm copping it in incorrectly?


  • SynkarinSynkarin Nothing to see here
    Synkarin said:

    function deleteFull()

    deleteLine()

    tempLineTrigger(1,1,[[if isPrompt() then deleteLine() end]])

    end


    function deleteFull()
      deleteLine()
      tempLineTrigger(1,1,[[if isPrompt() then deleteLine() end]])
    end


    I'm not sure why it wouldn't be working for you - can you show a log or it not working and how you're using it?

    Everiine said:
    "'Cause the fighting don't stop till I walk in."
    -Synkarin's Lament.
  • As an example then I have:


    ^You must regain equilibrium first.$
    ^Your left arm is off balance.$
    ^Your legs are off balance.$
    etc and a lot of others set with pearl regex in one trigger.

    So I copy and paste 

    function deleteFull()

    deleteLine()

    tempLineTrigger(1,1,[[if isPrompt() then deleteLine() end]])

    end

    into the box and test it and this happens.


    http://dumptext.com/B2eucXbt


    As a note my attack macro is basically this

    if pk_razeshield then

    sendAll("raze "..target, "raze "..target,false)

    else

    sendAll("stand", "assess " ..target, "strike "..target.. " right chest", "strike "..target.. " left chest smashchest",false)

    end

    I've tested it with that macro and a simple send ("invoke circle") macro as well and the same result happens.


    if I then go and paste in deleteLineP()

    then I get this result 


    http://dumptext.com/tJcnqwVt



  • Could it be something to do with other settings in mudlet not directly linked into the trigger itself?
  • edited August 2016
    Put function deleteFull() into a script.

    Then call deleteFull() with your trigger.

    Edit: Just to clarify, take what Sidd wrote for you, make a new script, and paste it there.

    Then whatever you want to gag, just put: "deleteFull()" as what the trigger should do.
    Take great care of yourselves and each other.
  • SynkarinSynkarin Nothing to see here
    Yeah, sorry

     the deleteFull is a function, so you put that in a script and then use deleteFull() in lieu of deleteLine() when you want to include gagging the prompt

    Everiine said:
    "'Cause the fighting don't stop till I walk in."
    -Synkarin's Lament.
  • ohh I see what you mean

    Awesome thank you two for the help, like I said im a bit of a newbie with mudlet didn't think to put it in a script :D

    Works perfectly now.
  • You can not believe how much tidier this makes things :D 
  • you know, I totally misconstrued the content of this thread
Sign In or Register to comment.