Hyperlinking in OnPluginPacketReceived

Posted by Areadien on Sun 19 Aug 2018 11:15 PM — 3 posts, 13,396 views.

USA #0
So my MUD changed room numbers from decimal format to hexadecimal. Well, the room numbers now are so long that, when I display them in my room name line on the compass, it now takes up two lines of space. So now I want to create a hyperlink attached to the name of the room. So instead of having something like

 Lobby of the Ivory Tower                                   A438B5509ED56F63FAAC70D0EA84B68C11945B36 [  -1,  -1] -      N      -
(------------------------------------------------------------------------------) W <-#-(M)---> E
                                                                                 -      #      -


I'd have something like

 Lobby of the Ivory Tower                                [  -1,  -1] -      N      -
(------------------------------------------------------------------) W <-#-(M)---> E
                                                                     -      #      -


where the underlined portion is a link to mapper goto <room number>.

How might I do this?
Amended on Sun 19 Aug 2018 11:22 PM by Areadien
Australia Forum Administrator #1
I wouldn't do it in OnPluginPacketReceived. Just make a trigger to match that line, omit it, then redisplay the parts you want, including using the Hyperlink function to hyperlink parts of it.
USA #2
Actually, they switched the room numbers back to their originals, so I don't have to do anything right now.