mxp send tag

Posted by Typhon on Sat 01 Nov 2008 08:33 AM — 5 posts, 21,348 views.

USA #0
Quote:

Send with HINT
You can set up a "mouse-over" hint that appears if the player moves the mouse over the hyperlink. eg.

<send href=West hint="Go to the second floor landing">West - The Second Floor Landing</send>

In this case, the player sees "Go to the second floor landing" in a little popup window if they move the mouse over the hyperlink.


i'm trying to use this to send a small block of text on mouse over for items and stats and such, however i'd like to break up the text using newlines so the block of text isnt as wide as the screen.

Problem i'm running into is that neither '\n' or '<BR>' do anything in the tooltip popup.

'\n' breaks the mxp code sends all sorts of trash to the mud and no tool tip.

<BR> just shows as <BR> in the tool tip.

I've checked the outcome in both zmud and mushclient and i seem to have run into a brick wall.
thanks
-typ
Amended on Sat 01 Nov 2008 08:34 AM by Typhon
Australia Forum Administrator #1
I can't see any way of doing it right now, however for version 4.38 I have relaxed the restriction on MXP entities slightly so you can put newlines in them. So this would work from version 4.38 onwards:


<send href=West hint="Go to the &#10; second floor landing">West - The Second Floor Landing</send>


That may have other undesirable side-effects if you used &#10; unwisely, I'm not sure.
USA #2
yeah i'm not seeing it working correctly...
using zmud it just cuts off the hint completely after the '&#10;' and in mush it cuts the hint after something like 57 characters.. with out that it'll show the entire description i need it to.
Australia Forum Administrator #3
To be compatible with zMUD I would stick with single-line hints. MUSHclient v 4.38 will support my suggested change, however that won't help on zMUD.
USA #4
meh i left it as a single line not a huge fan if theres a long description going all across the screen but the staff is happy with it and i can deal if theyre content. thanks tho nick :)