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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
poon
Beginner


Joined: 11 Oct 2001
Posts: 12
Location: USA

PostPosted: Sun Dec 16, 2001 3:27 am   

Setting up a default in an alias.
 
I'm trying to figure out a way of setting a
default for aliases... this might be really
easy and I'm just braindead right now, but
here is the setup.

I have a zmud alias 'sh' for cast blood shield %1

What I would like to be able to do is set it
up so that if I type 'sh vraurk' then I do 'cast blood shield vraurk' but if I simply do 'sh' then I do 'cast blood shield me'

There is a mud setup that allows me to do this, but I like having most of my aliases
in zmud for one reason or another. The setup works like this:

alias sh cast blood shield $arg:me$

'me' is an auto-nickname for my user name on my mud.

Any help with this will definitely be appreciated.... thanks in advance.

Poon
ZMud 6.16
Win95
Reply with quote
jtrent
Beginner


Joined: 22 Nov 2001
Posts: 18
Location: USA

PostPosted: Sun Dec 16, 2001 4:15 am   
 
If you cast blood shield undefined, does your mud send an error back to you?

Most muds I have been to, an undefined cast reflects upon the caster.

So you put
#alias {sh}{cast 'blood shield'}

Syntax: sh
Result: You cast blood shield on yourself.

Syntax: sh vraurk
Result: You cast blood shield on vraurk.

-J

The system doesn't really work, it can't be fixed,
no one understands it, no one is in charge of it,
it can't be lived without, and it gets worse every year.
- Stewart Brand
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Sun Dec 16, 2001 4:24 am   
 
If your mud does require a target for the spell, use this:

#ALIAS sh {cast blood shield %if( %null(%1), me, %1)}

Troubadour
Reply with quote
poon
Beginner


Joined: 11 Oct 2001
Posts: 12
Location: USA

PostPosted: Sun Dec 16, 2001 4:28 am   
 
Okay.... I feel incredibly stupid.

However, that still doesn't help me with
other aliases, such as attack commands.

I also have an alias for my 'hurl' attack
command:

alias h hurl $arg:him$

where I have him nicknamed as 'monster'
or if I am hunting a player, I nickname him
as the player's name.

Thanks again, in advance!

Poon.
Reply with quote
poon
Beginner


Joined: 11 Oct 2001
Posts: 12
Location: USA

PostPosted: Sun Dec 16, 2001 4:31 am   
 
Thanks a ton, Troubadour, that worked great!

Poon
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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