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


Joined: 30 Apr 2006
Posts: 58
Location: Brookhaven, MS

PostPosted: Sun Apr 30, 2006 9:08 pm   

wild cards in triggers
 
Im working on a damage tracking script but a lot of the damage messages on my mud are quite similar and i can't quite figure out how to do the wildcards. The damage messages look something like:

You destroy mob with your weapon.

and

You destroy mob utterly with your weapon.

I need these to be two seperate triggers but every way I've tried it the first one triggers on the second one because it has to be able to apply multi word mob names, so its reading it as 'mob utterly'. Any help?
_________________
Jorville
Player on SWMUD
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Apr 30, 2006 10:28 pm   
 
Use a stringlist pattern, like so:

#trigger {You destroy (*) {utterly with|with}*} {}

This provides ZMud a clear plain-text boundary that * can be terminated on, while still giving you the variability inherent in wildcards.
_________________
EDIT: I didn't like my old signature
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