|
sepe Novice
Joined: 09 Feb 2002 Posts: 39 Location: USA
|
Posted: 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 |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: 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 :) |
|
|
|
|
|