Capturing 2 sets of phrases

Scripts and support for your favorite MUD client.
Gindipple
Sojourner
Posts: 676
Joined: Fri Jan 26, 2001 6:01 am
Location: O' Fallon, MO. USA
Contact:

Capturing 2 sets of phrases

Postby Gindipple » Sun Apr 07, 2002 12:15 am

Can I capture 2 independant phrases to variables?

Example:
A huge buffalo is masterfully slain by a huge buffalo.

Lets say I wanted to capture both killer and Killie and both was more than one word.

I tried this:
#TR {(%1) is masterfully slain by (%2) {say %1 blah %2}

But it don't seem to work right.
Version is 4.62
kiryan
Sojourner
Posts: 7275
Joined: Sat Apr 14, 2001 5:01 am
Location: Los Angeles, CA and Flagstaff, AZ
Contact:

Postby kiryan » Sun Apr 07, 2002 1:17 am

#TR {(*) is masterfully slain by (*).} {say %1 blah %2}

works on 6.somethin
belleshel
Sojourner
Posts: 526
Joined: Mon Jan 29, 2001 6:01 am
Location: Northeast

Postby belleshel » Mon Apr 08, 2002 4:06 pm

Quick tutorial:

1) %w will match a word
2) %d will match a number
3) * will match anything
4) Putting parans around something adds it to the stack
5) The more literals the better (triggers will fire faster zmud will lag less)
6) Upgrade to 6.16 Image its fairly bug free, some mem leaks have been removed.

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 6 guests