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
sepe
Novice


Joined: 09 Feb 2002
Posts: 39
Location: USA

PostPosted: Tue Apr 11, 2006 3:17 am   

Putting and Alias inside anouther alias
 
OK got an alias that generates random sayings...

#alias rs2
%item( @randomsaying, %random( 1, %numitems( @randomsaying)))

And by itself it works great with what ever sayins I put in the string list.

Part 2

I'd actually like this random saying to be the ending for anouther alias

#alias rs
say I'd love to talk to you but *Insert second Alias here*

Now, yes I know I can have this, as the command and it works...

say say I'd love to talk to you but, %item( @randomsaying, %random( 1, %numitems( @randomsaying)))

But I want to know basically if I can put an Alias inside anouther alias. This is more for me learning that use as the othe way works.
_________________
Dazed glazed and having fun
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Apr 11, 2006 3:53 am   
 
Instead of putting the alias, why noy put the command into your second alias....

Try this..

Code:
#VAR Saying {I'd love to talk to you %item( @randomsaying, %random( 1, %numitems( @randomsaying))) }
say @Saying
_________________
Asati di tempari!
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Tue Apr 11, 2006 1:02 pm   
 
Not sure why you would want to do so, save you may be just using a simple example.

#alias rs
say I'd love to talk to you but %exec(rs2)

The above is tested and working.
_________________
Taz :)
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