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
➜ MXP and Pueblo
➜ Triggers to match MXP Elements
|
Triggers to match MXP Elements
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Sun 07 Sep 2003 12:28 AM (UTC) |
| Message
| I tried searching the forums for this ("mxp match" on the first try and "mxp trigger" on the second) but found nothing relevant.
My problem is that I may want to have a trigger match when I receive an MXP element, and then retrieve whatever is inside it. e.g. <Ex>west</Ex>
Having a trigger match "<Ex>*</Ex>", even in regex format, does not work.
To give the full context, I'm trying to have a trigger beep when someone uses immtalk. Immtalk is in the format:
----
Fred: This is an immtalk!
Joe: Oh... this too!
----
The initial reaction would be to match:
*: *
This obviously does not work, because of:
Log: Fred killed by a goblin in room 0.2456
Comm: Disconnect: 12.34.56.78
So, I figured that the MUD could always send an "empty element" that just displays the text, but would serve as a placemark for "this is an immtalk". Of course, matching other MXP elements may be useful for all sorts of other things, but the example I have off the top of my head is that one.
My question: is there some way to match MXP elements sent by the MUD? Or is this a possible addition for future version? *hopes* :) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sun 07 Sep 2003 05:01 AM (UTC) |
| Message
| |
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.
9,747 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top