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


Joined: 27 Dec 2001
Posts: 105
Location: USA

PostPosted: Mon Aug 16, 2004 3:43 pm   

Syntax Error
 
I have a very complicated quest searching alias for my MUD, in which this line is listed. It used to be accepted by the syntax checker in previous versions, but in 7.05, zMUD barks at this. I've messed around with adding brackets and parenthesis and quotes, etc etc etc, but to no avail. Any idea how I could fix this..?

#if (%numitems(@questlist_match) < 1) {#say No quests found.} {#forall @questlist_match {#mxp <send "quest %lower(%i)">%i</send>}} ^this is where it complains

It complains with or without the quotations around "quest %lower(%i)", but the MXP command requires the notationary quotes anyway.

Thank you for your time, folks.
_________________
Fat Tony
Reply with quote
fattony
Apprentice


Joined: 27 Dec 2001
Posts: 105
Location: USA

PostPosted: Mon Aug 16, 2004 3:44 pm   
 
hrm, my ^ carrot didn't show up in the same spot of course - the error complains at just below the "quest ... part.

Again, thank you.
_________________
Fat Tony
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Aug 17, 2004 12:52 am   
 
Quote the <'s with ~

#mxp ~<send "quest %lower(%i)">%i~</send>
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: Tue Aug 17, 2004 8:44 pm   
 
The ~< isn't needed for #MXP commands, while they are for #SHOW or #ECHO commands.

The syntax error it's giving is because it's not expecting the double-quotes to be there. This is only an error only in the Settings Editor's syntax checker, but works correctly in practice.

I believe I've bugged it on this website (Support -> Bug Reports at the top of this page), but you may want to just to make sure it's logged.
_________________
.geniusclown
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Aug 17, 2004 11:01 pm   
 
Ahem have you tested this genius clown cause I use Mxp Alot and my answer is tested. Using ~ will stop the syntax error.

according to the help files <'s are supposed to be escaped when using #MXP obviously they are not either that or the syntax checker thinks they are not so ya have to escape them yourself.
_________________
Zmud Support Library
Zmud Knowledge Base
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