|
Hemdall Wanderer
Joined: 30 Nov 2006 Posts: 50
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Mon Dec 27, 2010 11:46 am |
it should be, try using %cr to represent a carriage return
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Hemdall Wanderer
Joined: 30 Nov 2006 Posts: 50
|
Posted: 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 {<send '' 'First line %cr Second Line'>qwertyuiop</send>}</value>
</trigger> |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Hemdall Wanderer
Joined: 30 Nov 2006 Posts: 50
|
Posted: 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 {<send '' '%expandlist($hint,%cr)'>qwertyuiop</send>}</value>
</trigger> and got
<send '' 'This is
the multiline hint'>qwertyuiop</send> in output. |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Tue Dec 28, 2010 5:32 pm |
Don't forget to use code tags in your posts.
|
|
|
|
|
|