Can you call an alias from a script ?

Posted by Fjodor on Fri 30 Nov 2001 04:59 AM — 5 posts, 22,473 views.

Sweden #0
Is it possible to execute an alias from a script ?
USA #1
I don't see why not. The alias must exist beforehand. Then you can have the script call the alias. And once MUSHClient sees the commands typed in for the script. It should call the alias itself.

Erm.. For a shorter answer.. Test it and see!
Sweden #2
So basicly if you 'world.send "alias"'
that would execute the alias named alias ??

I tried this and it didn't work :(
Amended on Fri 30 Nov 2001 05:15 AM by Fjodor
#3
I think this has come up before. Basically you should rewrite your alias so that it calls a function that actually does the work. Then if you want to call it in a script, you refer to the function, not the alias.
Australia Forum Administrator #4
I agree with Dubthach. Aliases cannot be called from scripts (or other aliases). However if you want to centralise the way things are done you can make a script to do the work of the alias, and call the same script from more than one alias.