Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Badmonster
Wanderer


Joined: 06 Feb 2010
Posts: 81

PostPosted: Wed Oct 13, 2010 5:08 pm   

Special characters
 
The mud I play uses special characters in ways that cmud doesn't seem to enjoy.
Before v. 3 I could just uncheck the ones my mud uses for defining emotes in order to have them behave in the way the server expects.
With the new versions however, if I uncheck the special characters it affects triggers.
Can anyone suggest some workarounds?
_________________
I play at www.armageddon.org. Murder Corruption Betrayal. We play hard.
Reply with quote
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: Wed Oct 13, 2010 7:25 pm   
 
Only thing you can really do is change them to different characters that don't conflict with your MUD, and also change them in your scripts.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2307

PostPosted: Wed Oct 13, 2010 8:17 pm   
 
Exactly how are these characters a problem? Are you trying to use them in commands executed from triggers and aliases? Give some examples.

If it is that you are trying to execute a command to your mud from within a script, there are several solutions. If the character is used within quotation marks, it will not be interpreted as a cmud character. Or you can quote the character by preceding it with a tilde, ~.

If you give examples, we can help you further.
Reply with quote
Badmonster
Wanderer


Joined: 06 Feb 2010
Posts: 81

PostPosted: Wed Oct 13, 2010 8:27 pm   
 
My mud has an extensive emoting system. You are expected to use it. If you target the tall guy you type ~tall. You see the tall guy. The room sees the tall guy. The tall guy sees you.
The following characters are used in this way:
Symbol Reference Target Sees
------ --------- -----------
~ (sdesc) you
% (sdesc)'s your
! him/her you
^ his/her your
# he/she you
& himself/herself yourself
= (sdesc)'s yours
+ his/hers yours

Now that's great. Except sometimes you type one of these characters and cmud doesn't use it as intended.
A semicolon is read as a line break. Or the symbol is completely overlooked.
So, I go on and uncheck the special character. And everything is fine, until the triggers don't trigger.
_________________
I play at www.armageddon.org. Murder Corruption Betrayal. We play hard.
Reply with quote
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: Thu Oct 14, 2010 6:34 am   
 
If you need to be using that many different characters, you probably could get used to typing "`" at the start of all your lines. This will mean the rest of the line will be sent to the mud as it is.
Of course, your mud might also use the ` character for something. If so, you can change this character (line quote) to something else.
Doing things like this might be easier than trying to redefine all the characters your mud uses.
Reply with quote
Badmonster
Wanderer


Joined: 06 Feb 2010
Posts: 81

PostPosted: Thu Oct 14, 2010 11:05 am   
 
Someone suggested I turn off command line parsing. But I can't figure out how.
_________________
I play at www.armageddon.org. Murder Corruption Betrayal. We play hard.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2307

PostPosted: Thu Oct 14, 2010 12:40 pm   
 
This looks like Armageddon. :)

I've just gotten in the habit of quoting all those characters in emote commands, using ~. E.g.:
emote rolls his eyes at ~~figure.
emote waves vaguely at ~^joe leg.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Oct 14, 2010 3:51 pm   
 
To turn off command line parsing click on the computer icon next to the command line. Command Line parsing is off when there is a red X over the icon.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23377
Location: Colorado, USA

PostPosted: Thu Oct 14, 2010 6:54 pm   
 
The Ctrl-R key will also toggle parsing off and on.
Reply with quote
Badmonster
Wanderer


Joined: 06 Feb 2010
Posts: 81

PostPosted: Fri Oct 15, 2010 11:40 am   
 
Thanks Everyone
_________________
I play at www.armageddon.org. Murder Corruption Betrayal. We play hard.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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