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


Joined: 28 Aug 2002
Posts: 16

PostPosted: Fri Jan 10, 2003 11:11 am   

Help with a emote
 
Ok here is one that is driving me nuts.

I want to be able to type

' this is a test.

and have this sent to the mud

emote @R@!"this is a test," @N%N utters.

The @ commands give a color and the %N puts my name in. The utters will be a few random messages that I will use the %case( %random on. Don't know if it is possible but figured if any one could help me it would be here. Thanks for any help
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Fri Jan 10, 2003 12:03 pm   
 
This should do it for you:
#ALIAS {'} {emote ~@R~@!~"%-1,~" ~@N~%N utters.}

The reason I have so many of the tildes in there is to keep zMUD from parsing pieces of the alias as special characters and trying to expand, evaluate and otherwise mangle your color codes and quotes.

 - Charbal
Reply with quote
Oni
Beginner


Joined: 28 Aug 2002
Posts: 16

PostPosted: Fri Jan 10, 2003 11:01 pm   
 
Thanks that worked great.
Reply with quote
Oni
Beginner


Joined: 28 Aug 2002
Posts: 16

PostPosted: Sun Jan 12, 2003 4:24 pm   
 
Ok got a diffrent varation of this one. Want to use the color command in a tell but this might make it a little harder.

Ok would like to know if it is possible to type

tell bob hey dude this is in color.

And have this sent to the mud.

tell bob @R@! hey dude this is in color.
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Sun Jan 12, 2003 5:19 pm   
 
This should do it:

#ALIAS tell {~tell %1 ~@R~@! %-2}

 - Charbal
Reply with quote
Oni
Beginner


Joined: 28 Aug 2002
Posts: 16

PostPosted: Sun Jan 12, 2003 6:37 pm   
 
Awesome thanks for the help
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