Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Jorville
Wanderer


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

PostPosted: Fri Oct 09, 2009 1:47 am   

triggering on parentheses
 
so, i need to make a trigger that triggers on this:

hp: 495 (-10) sp: 1944

i need it to capture the -10 into %1 or a variable, but everyway ive tried to set the trigger up so far always sets %1 to (-10) instead of -10, how do i set it up to trigger on the parentheses but not capture them? ive searched all over the forums and havent been able to come up with an example, i know theres probly one out there buried in some other topic but i cant find it, thanks for the help
_________________
Jorville
Player on SWMUD
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Oct 09, 2009 3:35 am   
 
( is a special char in cmud so it needs to be escaped with ~

your trigger pattern should look like this

hp: 495 ~((%n)~) sp: 1944
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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