|  | 
	
	
		| Jorville Wanderer
 
 
 Joined: 30 Apr 2006
 Posts: 58
 Location: Brookhaven, MS
 
 | 
			
			  |  Posted: 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
 |   |  | 
	
		|  | 
	
		| MattLofton GURU
 
 
 Joined: 23 Dec 2000
 Posts: 4834
 Location: USA
 
 | 
			
			  |  Posted: 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
 |   |  | 
	
		|  | 
	
		|  | 
	
		|  |