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
ZealousAnonymous
Wanderer


Joined: 06 Jan 2006
Posts: 70

PostPosted: Mon Mar 20, 2006 6:49 pm   

Condition vs \n
 
I was trying to convert all of my multiline triggers into condition triggers
using with within=1 parameter.

This seems to be giving me odd problems that I can't seem to figure out. Any words of wisdom?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Mar 20, 2006 10:24 pm   
 
Quote:

Any words of wisdom?


Yeah, tell us about the problem. Laughing
_________________
EDIT: I didn't like my old signature
Reply with quote
ZealousAnonymous
Wanderer


Joined: 06 Jan 2006
Posts: 70

PostPosted: Wed Mar 22, 2006 1:28 pm   
 
It just seems like the withinlines=1 quits working after awhile.

This works fine

You eat a blah\.\n\d+h, \d+m

but the cond starts off fine then just seems to quit working.

I also heard through the grape vine that #COND is a lot faster than \n.
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Wed Mar 22, 2006 3:37 pm   
 
You may just have syntax problems with your triggers or the pattern might need a little tweaking to work better. I don't really recommend you use \n with prompts like that, though.

This is what works for me:
Code:
#REGEX {You eat a blah\.$} {}
#COND {^\d+h\, \d+m} {reset blah afflictions} {regex|nocr|prompt|within|param=1}
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