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


Joined: 06 Jan 2004
Posts: 13
Location: Canada

PostPosted: Fri May 14, 2004 11:34 pm   

two lined trigger
 
I want to set up a trigger to respond to these two lines of text:

blah (number)th blah, blah (number) blah.
BLAH (number)/(number)

I'd also like the trigger to input a command plus the third number+1.

Anyone know how I can do this[?]
Pls&Thx!Very Happy
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat May 15, 2004 2:29 am   
 
Sure we do. First step is not give us a Blah filling of stuff unless you want a Blah filling of answer.

#TR {^blah ~(number)th blah, blah ~(number~) b;ah.$} {#NOOP Blah line 1} "" {case}
#COND {BLAH ~(number~)/~(number~)$} {Do something with 3rd number plus 1;#NOOP Blah line 2} {case|within|param=1}
Reply with quote
Chim
Beginner


Joined: 06 Jan 2004
Posts: 13
Location: Canada

PostPosted: Sat May 15, 2004 4:07 am   
 
Sorry. Here's the exact text, and I guess it's four lines insted of two:

Penned by my hand on the 7th of Phaestian, in the year 196 AF.


ASHTAN SECTION 2/4300

I'd like the the trigger to output the read command and the number of the next post.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat May 15, 2004 5:07 am   
 
#TR {^Penned by * on the (%d)th of *, in the year (%d) *.$} {#NOOP}
#COND {* (%d)/(%d)$} {read [%1+1]}
Reply with quote
Chim
Beginner


Joined: 06 Jan 2004
Posts: 13
Location: Canada

PostPosted: Sat May 15, 2004 5:32 am   
 
I entered & enabled the trigger but it doesn't enter the command correctly. I think zMud is entering read %11 insted. I've doublechecked that I'm using this trigger,

#TR {^Penned by * on the (%d)th of *, in the year (%d) *.$} {#NOOP}
#COND {* (%d)/(%d)$} {read [%1+1]}

but the problem persists.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat May 15, 2004 6:51 am   
 
ok change the value of the cond trigger to this

read %eval(%1+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