|
Werd Newbie
Joined: 21 Jan 2004 Posts: 1
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Feb 21, 2004 6:15 pm |
You could use and emote alias with the #DEFAULT and #NODEF commands. You may still have a problem with the tilde (~).
|
|
|
|
smeagain Beginner
Joined: 21 Feb 2004 Posts: 11 Location: United Kingdom
|
Posted: Sat Feb 21, 2004 9:45 pm |
I've been having a similar problem. I have a zmud alias to load my mud based aliases. Unfortunately the mud also uses % as the parameter character. Therefore for my aliases to be entered correctly i must disable the parameter char on zmud then reenable it afterwards. I tried switching the an alternative character, but this hinders some of the functions of the map (e.g. door opening).
I tried using the #default and #nodef commands as you suggested, but they do not seem to be having any effect. Do you have any idea what it is I am doing wrong? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Feb 21, 2004 9:56 pm |
Even better solution is to put you whole command in quotes.
Example for for Werd: "emote looks down at ~red, and smiles at !red"
This works in the command line and aliases. |
|
|
|
Timas Novice
Joined: 05 Jan 2003 Posts: 39 Location: Netherlands
|
Posted: Sun Feb 22, 2004 12:59 am |
A workaround would maybe be to try and do a replace on the chars to have them be replaced by the char with a tilde before it? %replace(%1, "!","~!") something along those lines..
perhaps:
#ALIAS {emote} {
#VAR emoteString %1
%replace(@emoteString, "~","~~")
%replace(@emoteString, "!","~!")
chartog emote @emotestring}
I'm not sure if this would work but I use something similair to replace " with ' in a string. I do think you need to do the tilde as first char to be replaced or the the code will replace all the tildes it places befor the others.
Timbo |
|
|
|
|
|