Quote:
When a subroutine is called from an alias, or from a trigger, the alias/trigger attempts to pass three arguments to the subroutine:
SourceCallingName - The label of the alias or trigger making the call.
TheOutput - From a trigger, the whole line which caused the trigger to fire, from alias, I assume 'Empty'.
TheWildcards - an array of all the wildcards.
For an alias "theoutput" is the output generated by the alias. For example, if you have an alias:
Alias: eat
Send: eat pie
The words "eat pie" will be passed down as "theoutput".
Quote:
A timer tries to pass along just one argument. It's a Error/Status code, that indicates either success, or a code
representing an error. (Read the help for that function to learn more).
The timer expects one argument, which is the timer name. I think you are thinking of "addtimer" which returns an error code.
Thus a timer could be defined like this:
sub mytimer (strName)
world.note "timer called had name of " & strName
end sub
This lets you share timer scripts between different timers.
Quote:
There's more to be learned about arrWildcards above, such as what arrWildcards(0) holds...
There is no wildcard 0 (using it gives "array out of bounds") however there is a wildcard 10, which is "the whole matching expression". I just noticed when doing this reply that MUSHclient has a bug, this only applies to triggers right now, not aliases.
There is a distinction between wildcard 10 and the "matching trigger line", which is this ...
For a normal (not regular expression) trigger, nothing, they are the same.
For a regular expression, which can match on a partial line, wildcard 10 is what the regular expression matches on, whereas the "matching line" is the entire line.