|
mdeming Beginner
Joined: 08 Jul 2002 Posts: 10
|
Posted: 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?
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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. |
|
|
|
mdeming Beginner
Joined: 08 Jul 2002 Posts: 10
|
Posted: 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? |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jul 09, 2002 5:27 pm |
mdeming,
It looks like you've somehow created a variablequote: 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 |
|
|
|
|
|