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


Joined: 06 Aug 2009
Posts: 11

PostPosted: Fri Sep 18, 2009 11:49 am   

Parsing a string
 
First of all thanks for being so helpful in the past few days. For my next question...
I would like to parse this string:

#VAR perform {sit;stand}

So that when I use:
#TRIGGER {*special*} {@perform}
..it sends:

sit
stand

Rather than:
sit;stand

.. which the mud/client doesn't interpret as two commands and therefore doesn't process.
Reply with quote
enema
Beginner


Joined: 06 Aug 2009
Posts: 11

PostPosted: Fri Sep 18, 2009 12:08 pm   
 
%cr - got it, sorry, I've been looking for that in the help files for hours and had come to the conclusion it didn't exist when I found it.

Thanks anyway
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Sep 18, 2009 8:37 pm   
 
Why not just use your separator special character (by default, it's the semi-colon)?
_________________
EDIT: I didn't like my old signature
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