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
bebamedo
Novice


Joined: 02 Aug 2006
Posts: 32

PostPosted: 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
Reply with quote
mandy
Novice


Joined: 10 Jul 2007
Posts: 47

PostPosted: 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
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
bebamedo
Novice


Joined: 02 Aug 2006
Posts: 32

PostPosted: Sat Feb 16, 2008 5:47 pm   
 
Thanks charneus, your's works like a charm
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