|
Orcanaut Newbie
Joined: 08 Jan 2007 Posts: 4 Location: Here!
|
Posted: Mon Jan 08, 2007 7:51 pm
Funny thing with aliases in 1.24 |
Alias:
name: id
cast 'identify'
Type:
id ash
Action:
"cast identify"
What should the spell be cast upon?
As you can see, the 'ash' does not pick up on the packet to the server. Then the server responds with a request for the object name.
What to do? The compiled script looks like this:
0000 LINE 0 ; cast identify
0012 STR 'identify'
0028 ALIAS cast (1) <?> (class ShatteredKingdoms)
Thanks for all advice
Orc |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Mon Jan 08, 2007 8:32 pm |
To fix it
#ALIAS identify {cast identify %-1}
You need to use %-1 in CMUD because the program no longer automatically appends remaining parameters after an alias.
so if you typed identify asd fgh jkl
then %1 = asd
%2 = fgh
%3 = jkl
%-1 = asd fgh jkl
%-2 = fgh jkl
%-3 = jkl
Hope that makes sense |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Orcanaut Newbie
Joined: 08 Jan 2007 Posts: 4 Location: Here!
|
Posted: Mon Jan 08, 2007 9:08 pm |
It sounds ridiculous!
When we are in PK situations, we don't have time to type all that. The concept of the alias system is to cut out keystrokes.
Orc
Run hard, brake late! |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Jan 08, 2007 9:15 pm |
Er... what?
You don't need to type any more once you've made the alias, you just need to tell it to append your parameters.
zMUD:
#alias k {kill}
CMUD:
#alias k {kill %1}
#alias k($target) {kill $target}
All three have the same usage, "k person". |
|
|
|
Orcanaut Newbie
Joined: 08 Jan 2007 Posts: 4 Location: Here!
|
Posted: Mon Jan 08, 2007 9:24 pm |
Fang Xianfu wrote: |
Er... what?
You don't need to type any more once you've made the alias, you just need to tell it to append your parameters.
zMUD:
#alias k {kill}
CMUD:
#alias k {kill %1}
#alias k($target) {kill $target}
All three have the same usage, "k person". |
It still sounds ridiculous. I'm not a programmer, I'm a player. Most users are NOT going to want a mud client this complex. To have the capability to program in the client is a plus but NOT a thing to be required.
Orc |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Mon Jan 08, 2007 9:48 pm |
Um, okay...
There are free alternatives to CMUD or zMUD that lack the finesse or power of Zugg's products. One of the main reasons that people do pick CMUD is because it can do complex things if you want it to. It can also serve as a simple client for people that don't want/know/need the extra bells and whistles. I'm guessing you fall into the latter category.
The extra stuff about %-1, %-2, %-3 etc was to try and help you understand *why* the change makes sense - it's not something you have to type every single time.
The extra 4 characters you had to type, once, (" %-1") to get the alias to work is not an example of a client being too complex. There was something you didn't know how to do, you asked the question and you got your answer in 41 minutes, and it solved your problem. That's good service! Don't bitch about something so trivial.
Guinn |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
|
|