|
GiriFox Wanderer
Joined: 25 Sep 2001 Posts: 59 Location: Australia
|
Posted: Tue Aug 06, 2002 10:29 am
{pattern|pattern} triggers |
How do i do a trigger pattern that is like...
{%w hits you|the stone from %w hurts}
I can't work out how to get the %w kinds of things to work in a {x|x} format. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Aug 06, 2002 11:12 am |
List patterns are treated verbatim, hence the %w is not functioning as a wildcard. Since you are not trying to capture any information there use a simpler pattern.
{ hits you|the stone from } |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Aug 07, 2002 1:28 am |
quote:
How do i do a trigger pattern that is like...
{%w hits you|the stone from %w hurts}
I can't work out how to get the %w kinds of things to work in a {x|x} format.
In most cases, one would move the wildcards out of the list. IE:
"{%w says hi|%w screams like a girl}" would become "%w {says hi|screams like a girl}"
However, in this case you'll either want to use two triggers or use a patternless multi-line trigger.
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|