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
cfb
Newbie


Joined: 26 Mar 2011
Posts: 9

PostPosted: Thu Apr 28, 2011 7:41 pm   

Basic Variable Question
 
Hey all,

I have a situation where I've captured several multi-word variables as part of a string (eg. tin dented box|long sharp spear) and I'm looking for a way to refer to a single word within each entry. Basically if possible, I'd want to point to the single word 'tin' or 'dented' or 'box' kinda similarly to the ability to use %1 when its part of the pattern. It seems like there should be an easy way to do this but I can't seem to find it!

Thanks so much!
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Thu Apr 28, 2011 8:17 pm   
 
Try the %word function.
Reply with quote
cfb
Newbie


Joined: 26 Mar 2011
Posts: 9

PostPosted: Thu Apr 28, 2011 8:23 pm   
 
Works perfectly! Thanks!
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