Is it possible to execute an alias from a script ?
Can you call an alias from a script ?
Posted by Fjodor on Fri 30 Nov 2001 04:59 AM — 5 posts, 22,473 views.
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!
Erm.. For a shorter answer.. Test it and see!
So basicly if you 'world.send "alias"'
that would execute the alias named alias ??
I tried this and it didn't work :(
that would execute the alias named alias ??
I tried this and it didn't work :(
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.
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.