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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Orcanaut
Newbie


Joined: 08 Jan 2007
Posts: 4
Location: Here!

PostPosted: 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
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: 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... ;)
Reply with quote
Orcanaut
Newbie


Joined: 08 Jan 2007
Posts: 4
Location: Here!

PostPosted: Mon Jan 08, 2007 9:08 pm   
 
It sounds ridiculous!
Evil or Very Mad
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!
Reply with quote
Fang Xianfu
GURU


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

PostPosted: 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".
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Orcanaut
Newbie


Joined: 08 Jan 2007
Posts: 4
Location: Here!

PostPosted: 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.

Rolling Eyes

Orc
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: 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.

Rolling Eyes

Guinn
_________________
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 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