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
GiriFox
Wanderer


Joined: 25 Sep 2001
Posts: 59
Location: Australia

PostPosted: 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.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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 }
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
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