Mmucl Procedure

Name

exec_alias - Execute an alias

Synopsis

exec_alias alias ?args?

Description

Exec_alias is the only way to execute aliases in a script. If given two arguments, alias is the name of the alias to be executed and args is a list of the arguments to be passed to that alias.

Example

alias doh {writemud "I hate it when %0 kill me"}
action {([a-z ]+) kills you.} {bell; exec_alias doh %1}

"Bear kills you" will then result in a beep and you saying "I hate it when Bear kills me" Tk has to be loaded with loadTk for the bell command to work.

See Also

alias


Home