|
Chim Beginner
Joined: 06 Jan 2004 Posts: 13 Location: Canada
|
Posted: 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! |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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} |
|
|
|
Chim Beginner
Joined: 06 Jan 2004 Posts: 13 Location: Canada
|
Posted: 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. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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]} |
|
|
|
Chim Beginner
Joined: 06 Jan 2004 Posts: 13 Location: Canada
|
Posted: 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. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat May 15, 2004 6:51 am |
ok change the value of the cond trigger to this
read %eval(%1+1) |
|
|
|
|
|