Request: lua api function to create and kill event handlers

Post Reply
User avatar
demonnic
Posts: 886
Joined: Sat Dec 05, 2009 3:19 pm

Request: lua api function to create and kill event handlers

Post by demonnic »

So far nearly everything you want to setup in mudlet can be done in lua. One of the exceptions to this is dealing with event handlers.

I would love it if we could rectify this, so that event handlers can be created using something along the lines of

createScript(script_object_name_as_string, [event_handler_name_as_string])

or something similar, with the second arg being optional. Alternately, since I can see how simply createScript() would seem silly, could have createEvent(event_handler_name_as_string) which would create a script object of the same name as the event.

User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

Re: Request: lua api function to create and kill event handlers

Post by tsuujin »

+1

Post Reply