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
Varenuha
Beginner


Joined: 28 May 2002
Posts: 10
Location: Estonia

PostPosted: Mon Oct 06, 2003 6:01 pm   

Problem with symbols
 
problem:
im catching 'Exits' line from my mud
It starts with 'Exits:'
and then 1-6 directions containig west, east, north, south, up, down or none.
so far i tried to catch them with Pattern: Exits: (%1)
but here already comes the trouble Sad sometimes those exits must be surrounded with symbols.
Exits: =north=, [east], (south), <west>, *up*, ^down^ or even combined.
but zmud sees only = and 'forgots' about others!
Is here any way to catch that line to string list variable WITH symbols surrounding and use those values later in evaluating?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Oct 06, 2003 10:36 pm   
 
Capture them directly to a variable in the pattern with the &varname syntax. You will have to turn off "Use [] for evaluation" in the preferences to keep the variable from loosing that data before you can process it.
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