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
MadBomber
Beginner


Joined: 17 Oct 2002
Posts: 26
Location: USA

PostPosted: Mon Nov 25, 2002 12:41 am   

Trouble with a double #CAP
 
I've got the following pattern capping tells:
You tell [a-z A-Z], '*'
It has the range as to collect names that are longer than one word such as "Jedi Master" or "Tic Tac Toe". Though in group the phrase is,
You tell the group, 'nod..gave to dalamar'
That causes "group tells" and "tells" to BOTH be capped in the tells window, where as I want group to #CAP to group window. It works for all other "group tell" syntax except this one cause they start the same. How can I make it to where it won't #CAP to the group window if it has the line
You tell the group, 'made it'
I've tried to this:
{^You tell the group}You tell [a-z A-Z], '*'
but doesn't seem to work. Seems my syntax for the "do not match string" must be wrong. Any ideas?

Thanks,
MadBomber

--------------------
Currently Using zMUD 6.37aBeta
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Nov 25, 2002 12:46 am   
 
#TR {You tell (*), '*} {#IF ({%1} <> "the group") {#CAP tells} {#CAP group}}

LightBulb
Senior Member
Reply with quote
MadBomber
Beginner


Joined: 17 Oct 2002
Posts: 26
Location: USA

PostPosted: Mon Nov 25, 2002 1:37 am   
 
Hrm. Excellent idea, and thanks for the response - but how do i fix this?
#IF ({%1} <> "the group") {#CAP tells} {#CAP group}

^ syntax error
In case it's displayed incorrectly on your screen, the syntax error is pointing under the first "{" next to the "#CAP tells". Any ideas about this?

Thanks,
MadBomber

--------------------
Currently Using zMUD 6.37aBeta
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Nov 25, 2002 5:12 am   
 
Sorry, I can't duplicate your error. Post it on the Beta forum.

LightBulb
Senior Member
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Nov 25, 2002 6:41 am   
 
quote:

Hrm. Excellent idea, and thanks for the response - but how do i fix this?
#IF ({%1} <> "the group") {#CAP tells} {#CAP group}

^ syntax error
In case it's displayed incorrectly on your screen, the syntax error is pointing under the first "{" next to the "#CAP tells". Any ideas about this?

Thanks,
MadBomber

--------------------
Currently Using zMUD 6.37aBeta



The parser is a lot pickier in 6.37. Under that assumption, do you get any difference if you replaced {%1} with "%1"? Just because the syntax checker points to a particular spot, doesn't mean that's exactly where the error is.

C++ is infuriating like that, too.

li'l shmoe of Dragon's Gate MUD
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