Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Tips and tricks ➜ IRE Muds prompt subbing

IRE Muds prompt subbing

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Aznvt33   (18 posts)  Bio
Date Tue 24 Jul 2007 05:31 PM (UTC)
Message
If you're unfamiliar with IRE muds, their prompts generally look like this:

1234h, 1234m, 12345e, 12345w ex-

The "e" at the end is for equilibrium, while the "x" is for balance. When you don't have either one, it disappears, and looks something like this:

1234h, 1234m, 12345e, 12345w e-
OR
1234h, 1234m, 12345e, 12345w x-
OR
1234h, 1234m, 12345e, 12345w -

Which is kinda annoying. I'd rather the "ex-" stay, but have the letters turn red if you're off balance. How could I do that?
Top

Posted by Tsunami   USA  (204 posts)  Bio
Date Reply #1 on Tue 24 Jul 2007 11:25 PM (UTC)
Message
Gag the prompt entirely and reprint it using world.AnsiNote with whatever formatting, etc, you'd like.
Top

Posted by Aznvt33   (18 posts)  Bio
Date Reply #2 on Wed 25 Jul 2007 12:16 AM (UTC)
Message
Would that work if I have other stuff that triggers off my prompt?
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #3 on Wed 25 Jul 2007 12:23 AM (UTC)
Message
Everything triggers off the prompt as normal, then the prompt is erased, then everything is written to the output window. I have some lines that match 3-4 triggers and get erased without interfering with each other.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Aznvt33   (18 posts)  Bio
Date Reply #4 on Wed 25 Jul 2007 09:49 PM (UTC)
Message
Okay I've written the trigger which works, except it won't omit the prompt coming in from the MUD. I have it sending to script after omit, and checked the omit from output box, but I dunno why it doesn't work? Here's the trigger:


<triggers>
  <trigger
   enabled="y"
   match="^(?P&lt;h&gt;\d+)h, (?P&lt;m&gt;\d+)m(?:, (?P&lt;e&gt;\d+)e|)(?:, (?P&lt;w&gt;\d+)w|) (?P&lt;str&gt;c?e?x?k?d?b?\@?)-(?P&lt;kai&gt;[+]{1,5}--)?$"
   omit_from_output="y"
   regexp="y"
   send_to="14"
   sequence="100"
  >
  <send>local a 
 a = string.match ("%5", "ex")
 if a == "ex" then
  AnsiNote (ANSI (32, 40), "%1h, %2m, %3e, %4w", ANSI (32, 1, 40), " %5-")
 end
 if a == nil then
  a = string.match ("%5", "x")
   if a == "x" then
  AnsiNote (ANSI (32, 40), "%1h, %2m, %3e, %4w", ANSI (31, 1, 40), " e", ANSI (32, 1, 40), "x-") 
  else
 a = string.match ("%5", "e")
   if a == "e" then
  AnsiNote (ANSI (32, 40), "%1h, %2m, %3e, %4w", ANSI (32, 1, 40), " e", ANSI (31, 1, 40), "x", ANSI (32, 1, 40), "-")
  end
 end
end
</send>
  </trigger>
</triggers>
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #5 on Thu 26 Jul 2007 01:47 AM (UTC)
Message
Is it printing the prompt coming in from the mud, and then the prompt you are printing out with AnsiNote?

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #6 on Thu 26 Jul 2007 02:48 AM (UTC)
Message
Your trigger seems to work for me, with only one line appearing. Maybe you have another trigger left in the trigger list from an earlier experiment?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Aznvt33   (18 posts)  Bio
Date Reply #7 on Thu 26 Jul 2007 02:27 PM (UTC)

Amended on Thu 26 Jul 2007 02:29 PM (UTC) by Aznvt33

Message
It actually prints the ANSI prompt before the prompt coming in from the MUD, which I thought was weird...
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #8 on Thu 26 Jul 2007 11:37 PM (UTC)
Message
Is that the next prompt? Triggers are only processed on a newline, so the most recent one will stay there until something else arrives. You need to to force a linefeed somehow (see the MUSHclient FAQ). You may be able to configure the MUD to do that.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #9 on Fri 27 Jul 2007 06:16 AM (UTC)
Message
"Convert IAC/EOR GA to newline" is what you are after. That's what IRE muds use.
Top

Posted by Aznvt33   (18 posts)  Bio
Date Reply #10 on Fri 27 Jul 2007 03:39 PM (UTC)

Amended on Fri 27 Jul 2007 03:49 PM (UTC) by Aznvt33

Message
ah yea, thanks. I thought I had already checked it.

EDIT: Nevermind I did already have it checked.
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.


29,471 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

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