|  | 
	
	
		| bebamedo Novice
 
 
 Joined: 02 Aug 2006
 Posts: 32
 
 
 | 
			
			  |  Posted: Sat Feb 16, 2008 11:59 am 
 problems with cathcing numbers
 
 |  
				| I'm trying to catch certain number from my log. Example
 
 Material              We Buy At           Stock      We Sell At
 Ore                           -              49           50 gp
 Rock                          -               7           50 gp
 
 In this case i'm trying to catch numbers 49 from upper text. I tried with trig
 #TRIGGER {Ore                           -             (%d)           50 gp} {#var VADBA %1;#ECHO VADBA}. no luck at all.
 
 Any help would be appretiated
 |  | 
	
	  |  | 
	
		|  | 
	
		| mandy Novice
 
 
 Joined: 10 Jul 2007
 Posts: 47
 
 
 | 
			
			  |  Posted: Sat Feb 16, 2008 12:17 pm 
 |  
				| #TRIGGER {Ore ~- (%d) 50 gp} try adding the ~ before the -
 
 if that doesn't help the trigger capture the information then I don't know
 |  | 
	
	  |  | 
	
		|  | 
	
		| charneus Wizard
 
  
 Joined: 19 Jun 2005
 Posts: 1876
 Location: California
 
 | 
			
			  |  Posted: Sat Feb 16, 2008 2:44 pm 
 |  
				| Depends on how many spaces are actually between the words/numbers. 
 Try:
 
 #TRIGGER {Ore%s-%s(%d)%s%d%sgp} {#var VADBA %1;#ECHO VADBA}
 
 Otherwise, your trigger should work. :P
 
 Charneus
 |  | 
	
	  |  | 
	
		|  | 
	
		| bebamedo Novice
 
 
 Joined: 02 Aug 2006
 Posts: 32
 
 
 | 
			
			  |  Posted: Sat Feb 16, 2008 5:47 pm 
 |  
				| Thanks charneus, your's works like a charm 
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |