|
karis Newbie
Joined: 11 Oct 2004 Posts: 3
|
Posted: Mon Oct 11, 2004 4:43 am
Repeating contents of my aliases |
I have a series of aliases that are directions to various areas. I realize I could use paths, but for various reasons prefer aliases instead.
#alias {lepr} {.2s7e....;open door;..etc}
I would like to create a script where when soemone asks me what my alias says I could tell them. Is there a way to do this without creating a zillion different responses?
E.G.
#action {**@leader: 'Karis directions lepr'}.
Thanks. |
|
|
|
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: Mon Oct 11, 2004 5:49 am |
There's a function %alias(<aliasname>) which will return the definition of the alias. So it would be fairly easy to set it up in the trigger.
I'm assuming it looks like this
**NAMEOFLEADER:'karis directions ALIASTHEYWANT'
Code: |
#TRIGGER {~*~*(*):'karis directions (%w)'} {tell %1 %alias(%2)}
|
|
|
_________________ I love deadlines. I like the whooshing sound they make as they fly by. |
|
|
|
|
|