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
horks
Apprentice


Joined: 20 Jul 2001
Posts: 127
Location: USA

PostPosted: Mon Jun 03, 2002 8:45 pm   

MXP bug?
 
when I use #MXP command, it comes up as a syntax error in the checker. It's kind of annoying, cuz I can't check the rest of the alias/macro/trigger. Is this a bug? or is there a way to fix this, so that MXP commands are seen properly.

If this is a bug, does Zugg read the forums? or should I send a bug report to him? Thanks for the help
Reply with quote
NiteTrip
Novice


Joined: 21 May 2002
Posts: 40
Location: Canada

PostPosted: Wed Jun 05, 2002 11:09 pm   
 
why don't you give an example and we'll take a look?
Reply with quote
horks
Apprentice


Joined: 20 Jul 2001
Posts: 127
Location: USA

PostPosted: Fri Jun 07, 2002 11:30 pm   
 
#MXP <COLOR #FF0000 #FFFF00><B>XP/GXP clock reset!!</B></COLOR>

The command works, just fine. When the trigger goes off, it shows "XP/GXP clock reset!!" in bold red letters on a yellow background. but in the editor, the syntax checker says it's wrong.

I've tried using quote charaters before the brackets, and the pounds, but that doesn't seem to make a difference
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Sat Jun 08, 2002 2:19 am   
 
The syntax checker is far from infallible. It seems to err of the side of false positives instead of allowing illegal code, however, which is decidedly better than the alternative.

If you _really_ want the error to go away, you can do something else like

#EXEC "#MXP <COLOR #FF0000 #FFFF00><B>XP/GXP clock reset!!</B></COLOR>"

or

#MXP %expand( "<COLOR #FF0000 #FFFF00><B>XP/GXP clock reset!!</B></COLOR>")

Neither of which is a particularly elegant solution.

Just rest assured that your code snippet has perfect syntax even though the editor may complain.



 - Charbal
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sat Jun 10, 2006 10:59 am   
 
#MXP <COLOR #FF0000 #FFFF00><B>XP/GXP clock reset!!</B></COLOR>

should be

#MXP ~<COLOR #FF0000 #FFFF00~>~<B~>XP/GXP clock reset!!~</B~>~</COLOR~>
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jun 10, 2006 11:21 pm   
 
Actually, you only need to quote the less-than sign. Once quoted, ZMud doesn't care or has already realized that the next greater-than sign matches to the quoted less-than sign. I think it's just something like a slightly-misplaced rule about such symbols outside of quotes or parentheses (such as an #IF condition).
_________________
EDIT: I didn't like my old signature
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