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
mdeming
Beginner


Joined: 08 Jul 2002
Posts: 10

PostPosted: Mon Jul 08, 2002 5:52 pm   

Missing Output
 
I want to create an alias for my who command that high lights certain names but then turns the high lights off. I have it worked out correctly. The problem I'm running into, however, is with the name of the alias. I want to call it 'who' but the command 'who' must be entered up the list of those online. This creates an infinite loop. Any ideas?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Jul 08, 2002 6:03 pm   
 
In an alias you can get around not calling
it again by #SEND'ig the information

#ALIAS who {#SEND who}

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
mdeming
Beginner


Joined: 08 Jul 2002
Posts: 10

PostPosted: Mon Jul 08, 2002 6:09 pm   
 
thanks for the prompt reply. that helped. i'm having a problem now deleting some temporary triggers i made. for example i have:

variable: who
value:
#CW Bob
#CW Ted
#Send who
#UNT Bob
#UNT Ted

but it doesn't get rid of the triggers. suggestions?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Jul 08, 2002 6:27 pm   
 
I tried

#CW Ted 71
#SEND who
#UNTRIGGER Ted

Appeared to work

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jul 08, 2002 7:01 pm   
 
You can also create temporary triggers by using the #TEMP command. Once these triggers fire, they delete themselves. So, you could do:
#TEMP {Bob} {#CW 71}
#TEMP {Ted} {#CW 71}

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jul 09, 2002 4:55 am   
 
Another way to allow an alias to share the same name as the actual command is the quote symbol ~.
#AL who {~who}

LightBulb
Senior Member
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Jul 09, 2002 6:53 am   
 
quote:

Another way to allow an alias to share the same name as the actual command is the quote symbol ~.
#AL who {~who}

LightBulb
Senior Member



Definitely, but in these cases you'll sometimes have to check for "default" command options (which you can safely ignore and send to the mud as-is).

For instance, one of my fellow players put out a general invitation to write an extension to our MUD's WHO command. Our WHO has about a dozen or so options to it so a player could narrow down the list.

WHO ALL -- shows everyone anywhere in the game
WHO RANGE -- shows everyone within your current boundary area, can be combined with specific lists like RACE
WHO RACE/CLASS/RELIGION -- shows everyone in-game who is the same race/class/religion as your character
WHO (race/class) -- with a single exception (thieves), this shows everyone who is of that race or class

One of the things the WHO command doesn't do is list all of your friends online, so I created a WHO alias that extended the command's functionality.

li'l shmoe of Dragon's Gate MUD
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jul 09, 2002 5:27 pm   
 
mdeming,
It looks like you've somehow created a variable
quote:
variable: who
value:
#CW Bob
#CW Ted
#Send who
#UNT Bob
#UNT Ted
To get rid of the variable use
#UNVAR who

You can also delete settings in the Settings Editor. Select the undesired setting, right-click, and delete.


LightBulb
Senior Member
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