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


Joined: 23 Nov 2006
Posts: 4

PostPosted: Mon Dec 04, 2006 6:28 pm   

How to make alias?
 
I tried to make alias using cmud but it can't work at all.
For example, i use cmud to create new alias.
I put 'b' above and 'clantalk' belolw. but when i enter b into the mud, it is just a b and don't expands out.

Thank you.
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Mon Dec 04, 2006 6:31 pm   
 
you need to make the script like this

Code:
clantalk %-1


if ive understood you right
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
jackson
Newbie


Joined: 23 Nov 2006
Posts: 4

PostPosted: Mon Dec 04, 2006 6:39 pm   
 
yes i am trying to alias my 'b' key for clantalk. thanks it works now!

so sorry but it is slightly confusing when i am used to zmud and read the help file already.

one more problem. i tried to alias '[' for backstab but it don't work at all.
any idea why? it don't get expanded.
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Mon Dec 04, 2006 6:45 pm   
 
i dont think we can make alias's from non alph charactors any more.. someone correct me if im wrong please.
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
jackson
Newbie


Joined: 23 Nov 2006
Posts: 4

PostPosted: Mon Dec 04, 2006 6:49 pm   
 
ohh!! there goes all my quick aliases :P
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Dec 04, 2006 7:00 pm   
 
Hm... I'm not sure if non-special non-alpha characters should be working or not. It sounds a bit suspect.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Mon Dec 04, 2006 7:05 pm   
 
Ive tried to make an alias with ) for smile *lazy ass aura* and that doesnt work either
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Dec 04, 2006 10:37 pm   
 
Quote:

; -- separator character
@ -- variable character
% -- function character
: -- focus character
/ -- class character
~ -- quote character
> -- MapDir character
& -- Database character


Those are the special characters that cannot be used as alias names or the first character of alias names (from the command line, at least). The other ones can be used in any configuration you want (ie, while !c will work as a valid alias name I'm not sure it'd work if you had an alias named c in the command history as !c would just reference the c alias instead.)
_________________
EDIT: I didn't like my old signature
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Mon Dec 04, 2006 10:51 pm   
 
mine was the ) char, and i think Jacksons was [. neither of which will work as an alias on my install either.
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
Tech
GURU


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

PostPosted: Tue Dec 05, 2006 4:16 am   
 
I'm not sure about the '[' but remember the ')' would be considered part of an expression evaluation so it could cause parser problems.

Keep in mind that CMUD scripting language is more strict so things like that will likely kick back.
_________________
Asati di tempari!
Reply with quote
jackson
Newbie


Joined: 23 Nov 2006
Posts: 4

PostPosted: Tue Dec 05, 2006 6:22 am   
 
but if your mud allows aliasing in the mud itself it will be okay! but that is besides the point.. :P
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue Dec 05, 2006 9:39 am   
 
You can kludge it by making a command input trigger
#ONINPUT {^[ (*)} {backstab %1}

That'll work, I'm not sure why there are two spaces after backstab instead of one, I think that's a bug that I'm gonna post about now. Can either wait for the two spaces thing to be fixed, or force a fix with
#ONINPUT {^[ (*)} {backstab %trim(%1)}
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
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