Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Hemdall
Wanderer


Joined: 30 Nov 2006
Posts: 50

PostPosted: Mon Dec 27, 2010 9:55 am   

How to break line in hint for hyperlink.
 
I would like to have multline hint while hoovering over hyperlink created in mxp - is that possible?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Mon Dec 27, 2010 11:46 am   
 
it should be, try using %cr to represent a carriage return
_________________
Discord: Shalimarwildcat
Reply with quote
Hemdall
Wanderer


Joined: 30 Nov 2006
Posts: 50

PostPosted: Mon Dec 27, 2010 3:38 pm   
 
It doesn't work for me probably I'm doing something wrong -
I want to create simple trigger which will substitute text from mud with hyperlink with multiline hint:

<trigger name="test trigger" priority="44445" case="true" stop="true" regex="true" id="3200">
<pattern>qwertyuiop</pattern>
<value>#sub {&lt;send '' 'First line %cr Second Line'&gt;qwertyuiop&lt;/send&gt;}</value>
</trigger>
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Dec 27, 2010 6:00 pm   
 
I'm not sure you can put a line break in to an MXP hint. I've tried several ways with no luck.
_________________
Asati di tempari!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Dec 27, 2010 9:48 pm   
 
You can, but I'm not sure you can just do something like <send 'commands' 'this is a%crmultiline hint'>. Try putting what you want to have in the hint in a local variable of type stringlist and then use %expandlist() where the delimiter is %cr. That I know you can do, since I do it all the time.
_________________
EDIT: I didn't like my old signature
Reply with quote
Hemdall
Wanderer


Joined: 30 Nov 2006
Posts: 50

PostPosted: Tue Dec 28, 2010 7:34 am   
 
No it doesn't work for me
I tried:
<trigger name="test trigger" priority="44445" case="true" stop="true" regex="true" id="3200">
<pattern>qwertyuiop</pattern>
<value>$hint = {This is|the multiline hint}
#sub {&lt;send '' '%expandlist($hint,%cr)'&gt;qwertyuiop&lt;/send&gt;}</value>
</trigger> and got
<send '' 'This is
the multiline hint'>qwertyuiop</send> in output.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Tue Dec 28, 2010 5:32 pm   
 
Don't forget to use code tags in your posts. Smile
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net