 |
Carpesimia Beginner
Joined: 06 Feb 2025 Posts: 22
|
Posted: Mon Apr 21, 2025 11:46 pm
MXP links in #SAYs |
I dont know if this is even possible, but im gonna try anyways.
So I have some triggers on some common events, since they can get lost in the scroll. I dont want to always respond to them, but i would like the option of doing so. What I envision, is the ability for when this item occurs, to be able to have some lines show up in the scroll, with clickable options. So, click here to respond "ok". or whatever. Commands to be sent to the mud.
If I understand properly, MXP can only be interpreted on stuff sent from the MUD. Is there ANY way to do what I ask? I mean, I could do it the long way, and dynamically add buttons to the status bar. But then I need to worry about cleaning them up if i choose to ignore them, vs some one time links in the scroll.
Am I crazy? Or is there a simple way to do what I am looking for? |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4764 Location: Pensacola, FL, USA
|
Posted: Tue Apr 22, 2025 2:15 pm |
Not crazy at all, you can even do it in-line:
#TR {(your special phrase)} {#SUB {<send 'default command|command2|command3' 'mouseOver|titles|are shorter'>%1</send>}} |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
Carpesimia Beginner
Joined: 06 Feb 2025 Posts: 22
|
Posted: Tue Apr 22, 2025 9:50 pm |
Once again, you the man! I'ma go play with this :)
|
|
|
 |
Carpesimia Beginner
Joined: 06 Feb 2025 Posts: 22
|
Posted: Wed Apr 23, 2025 12:44 am |
Ok So got this working. Next is a more specific MXP question. Id like to add some spacing and maybe some coloring? Something like:
<BR><BR><color fore="#ffff00"><send 'commandToSend'>Click this!</send></color><BR><BR>
This will give some separation, and make the link stand out. But... whenever I add some line breaks, the whole "<send xxxxxxx" command is printed instead of rendered. |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4764 Location: Pensacola, FL, USA
|
Posted: Wed Apr 23, 2025 1:57 pm |
Try using %cr instead of <BR>?
|
|
_________________ Discord: Shalimarwildcat |
|
|
 |
Carpesimia Beginner
Joined: 06 Feb 2025 Posts: 22
|
Posted: Wed Apr 23, 2025 2:13 pm |
Actually, nevermind the above. I was researching more about how MXP works, when i found that the #MXP command can be used to send both insecure and secure stuff to the screen without the need for mud output. So, this handles what I need without a need for a trigger:
Quote: |
#SAY
#SAY
#MXP 1 "<font 'Courier New' 16 cyan><send 'smile'>Click to smile</send></font>"
#SAY
#SAY
|
This simplifies things quite a bit for my needs!
As always, thank you for the nudge in the right direction. |
|
|
 |
|
|