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
Hroomha
Beginner


Joined: 03 Sep 2004
Posts: 11

PostPosted: Mon Nov 15, 2004 7:11 am   

pattern match end of line help please?
 
the mud output looks like this


You find its closed blood-stained sack (..or bag or pouch...etc)

or
You find its hemp sack

trying to do a get sack ( or bag or pouch)

mine looks like this...

trigger: You find its(*)${bag|pouch|sack}
value: get %1

thanx for any help...
Rick
_________________
Hroom's Hand
Reply with quote
mortie
Wanderer


Joined: 26 Sep 2002
Posts: 73
Location: United Kingdom

PostPosted: Mon Nov 15, 2004 8:17 am   
 
You can do this a number of ways. Slight adjustment to your trigger

#TRIGGER {^You find its %w ({bag|pouch|sack})$} {get %1}

or this way

#TRIGGER {^You find its %w ({@container_list})$} {get %1}

The variable container_list is a stringlist of all the bags you want to match.

This is my prefered method.
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