[MudWalker] alias scripting

Kevin Reid kpreid
Sun Sep 19 11:21:02 PDT 2004


On Sep 19, 2004, at 14:07, Tim burke wrote:

> I've got down programmin the Lua logic and sending commands and all, 
> but I need to know how to pull multiple arguments out of an alias or 
> trigger... Examples:
>
> Alias:
> I type:  blah <name> <number>
> and I want to do this:
> send( arg[2] .. " slap " .. arg[1] )

Oops. I wrote no builtin splitting of alias arguments. You'll have to 
write Lua code to do this.

> Same thing with trigger if I need to pull two things out of a line...

arg[1], arg[2], etc. work for triggers.

-- 
Kevin Reid                            <http://homepage.mac.com/kpreid/>




More information about the MudWalker mailing list