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


Joined: 19 Jan 2002
Posts: 107

PostPosted: Sat Oct 25, 2003 5:27 pm   

Advanced tiggering
 
Hi,id like to be able to trigger next:

<On the head> [+++++] (Big) An axe

The problem is that sometimes,there doesnt appear any [+++++] or (Big),or appears more than one thing between (),so it could be

<On the head> [+++++] (Big) An axe
<On the head> (Big) An axe
<On the head> An axe
<On the head> (Big) (Blue) An axe

And also,depending on the object,there are more or less than 2 words to name it,lets say range is 1-3.

So,i tried to tigger it next way:

~<On the head~> {~[%1~] |}{~(*~) |~(*~) ~(*~) |} {%2|%2 %3|%2 %3 %4}

And i think that should work,but doesnt.
Any way of doing so?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Oct 25, 2003 7:18 pm   
 
I think you will need to combine the &nn fixed-width pattern and multiple triggers.
#TR {~<On the head~>&03~[*~] ~(*~) (*)} {#VAR LB1 {%1};#VAR LB1}
#TR {~<On the head~>&03~(*~) (*)} {#VAR LB1 {%1};#VAR LB1}
#TR {~<On the head~>&03~[*~] (%w*)} {#VAR LB1 {%1};#VAR LB1}
#TR {~<On the head~>&03(%w*)} {#VAR LB1 {%1};#VAR LB1}

Tested with:
<On the head> [+++++] (Big) An axe
<On the head> (Big) An apple
<On the head> An orange
<On the head> (Big) (Blue) An axiom
<On the head> [+++++] An awl

Results:
An axe
An apple
An orange
An axiom
An awl

NOTES: Last command in each trigger was for display purposes only and can be deleted
There are 3 spaces between <On the head> and the remainder of each line, as shown by 'reply with quote'.
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