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
karis
Newbie


Joined: 11 Oct 2004
Posts: 3

PostPosted: 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.
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

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