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


Joined: 17 Jun 2008
Posts: 41

PostPosted: Mon May 06, 2013 3:45 pm   

%subchar, %subregex
 
Hello guys!

I have written an alias:

Code:

#EXE %concat("': ",%item( "loudly: |strange: |sensitive: |silently: |thunderly: ", %random( 1, 5)),%subchar(%-1,"wWrRcCzZgGbBdD","fFlLsSsSkKpPtT"))


And I need to ask, if it may work under zMud. It was written in cMud. Works perfectly. My friend was testing that alias under his zMud(7.04), and there is a problem shown while he uses commas. The alias doesn't work anymore if there is comma used.

The second question is, is there any possibility to use any function(not %replace) to sub few letters in a raw? %subchar can only change 1 letter for 1 letter. I was trying to understand how subregex works but it's too complicated for me if I see only help/manual examples given originally with cMud files. Maybe there is a way to sub "rz" for "sh", "kr" for gh" etc. . Im trying to build simple translator.

Thanks!

N.
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