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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Tue Aug 23, 2005 5:06 am   

MXP Underline not working
 
anyone else noticed MXP subs not being underlined in versions above 7.05? Not sure which it turned up in, current is 7.13b. I have toggled the setting, closed/opened, retoggled, closed/opened zmud but to no avail.

#MXP <send "text">text</send> is underlined.. but when using in a #SUB this is no longer the case.

#TRIGGER {^(%w) just sent you a tell.$} {#SUB {<send "replay">%1 just sent you a tell.</send>}}

works.. i can still click it and it send replay.. but no underline.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue Aug 23, 2005 10:08 am   
 
Odd, I get the underline using 7.13b
I wish I didn't though (or that I could remove it), it's irritating. Maybe we can swap installs ;)

Don't suppose you know of a way to still highlight text that's got an MXP trigger on it? I've got some things highlighted (using #CW) in one trigger and MXP in another, but I lose the highlights when MXP kicks in...
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Tue Aug 23, 2005 10:35 am   
 
Check View->Preferences->General->MXP->Underline MXP Links
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Tue Aug 23, 2005 11:50 am   
 
i use

#SUB {%ansi(high,red)<send "north">north</send>}

to color MXP tags... i think there is a tag for color... <font color=red></font> ??
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Wed Aug 24, 2005 8:29 am   
 
Another odd thing actually with MXP (trying to keep it to one topic)

A trigger for communications...

#SUB {<C #1111EE>%1 Shouts: %2</C>}

works fine

however, this doesn't work if the #SUB is inside an #IF statement...
(assume %1 is Guinn, %2 is hello)

#if (x=1) {#SUB {<C #1111EE>%1 Shouts: %2</C>}}
#if (x=2) {#SUB {<C #1111EE>%1 Whatever: %2</C>}}

And if x=1 the output becomes
C #1111EEGuinn Shouts: Hello/C

if x=2
C #1111EEGuinn Whatever: Hello/C

Maybe I'm missing some brackets, or the <> is forcing an expansion rather than working as it should?
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Aug 24, 2005 11:37 am   
 
I think in an #if #sub combo you need to use %ansi.
At least that's what I do

Trigger:
^You lost your concentration while trying to cast (*).

Pattern:
#IF (%ismember( %1, @spellup_yeslist)) {
#SUBSTITUTE %ansi(high,yellow)"Ya screwed up trying to cast %1. Recasting."
%1
} {#SUBSTITUTE %ansi(high,yellow)"Ya screwed up trying to cast %1."}
_________________
http://www.Aardwolf.com
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Wed Aug 24, 2005 3:43 pm   
 
Did anyone test this and does it underline on your system?

Code:

TRIGGER

Pattern:
^(%w) just sent you a tell.$

Value:
#SUB {<send "replay">%1 just sent you a tell.</send>}


none of my SUBed MXP tags are underlined anymore...

but doing
Code:

#MXP <send "text">text</send>

is underlined when entering at the command prompt.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Aug 24, 2005 6:48 pm   
 
Anyone tried using ~ like the helpfile shows:

Using MXP in the #SUBSTITUTE command

Instead of using the #MXP command to send Secure MXP commands to the screen, you can also create a trigger and then use the #SUBSTITUTE command to add MXP commands to the text. For example,

#TRIGGER {north} {#SUB {~<send>north~</send>}}

will replace the word "north" whenever it is displayed by the MUD and replace it with the text <send>north</send> which creates a hyperlink. If you click on the "north" hyperlink, the command "north" is sent to the MUD.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Aug 24, 2005 9:08 pm   
 
The use of tildes as the help file suggests is something I put in since "Use <> for expansion" is on by default, and my experience with the forums suggested it would elminate a number of questions. Following that statement in the help will never hurt, and would help in Guinn's case. Private's problem is something completely different. I would do some testing with it, but I still haven't updated from 7.05. My tests with that version worked. and I don't see anything indicating Zugg tweaked with either MXP or the display between 7.05 and 7.13b
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Wed Aug 24, 2005 11:37 pm   
 
the use of tildes IS required from the command line when entering a trigger from the command line, thus why i posted pattern and value in the 1st bit of code... and the second is only a #SHOW so it NEEDS to evaluate the <> as an mxp tag.

So no nexula.. i dont need the tildes as im not enternig the trigger from the command line. You took the example in the help a liitle to broad.
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Wed Sep 07, 2005 9:02 pm   MXP Underline not working *FOUND REASON*
 
i tracked down what was wrong... in my status window i had the 2 following bits...

Code:

%ansi( high, @c_frenzy)<send "fre">fre</send>
and
%ansi( high, @c_invis)<send ":Main: inv">inv</send>

one of them on import disables MXP underlining in the Main window... i assume the 2nd, which worked in 7.05
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Wed Sep 07, 2005 9:39 pm   
 
as a side note, i made another post concerning MXP and colors using #SUB, where the colors would bleed across several MXP sends inside a single sub, this problem has now magically cured itself too :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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