Neat. Hope you expand it.
Suggestion 1:
You could also add an event-creater combo boxes window, where you select an event (ie. OnObjectKill, and the window changes to allow you to select a context (ie. onobjectkillName) if available, and then to type in the context (ie. end, "CP3") value. Next, a similar style window would pop up to let you chose the functions you want executed during this event.
You could then expand the library of available events. And yes, I had something like that working, but it was in JAVA and my GUI got messed up, and I've been working on Acezuraize in my hobby time ever since.
Actually, my window was functions and events all in one. When that closed, the event code gets added just under script post load, and the name of the event (ie. OnObjectKill 1 ) would should up in a list on the left of the main window. I was going to make it so that you could click the event in the list and then click an 'add function' button that would put more functions in the list.
Suggestion 2:
Colour the text, red for strings, green for comments, and blue for certain operates, just like lua edit. I've got the logic for red and green but its in java, coded for my lua loader.
Suggestion 3:
wld/lyr file loader. Allow users to select a data_abc/abc/worlds/world folder and load a list of objects from all the layers and the base layer. Then use this list for forming relevant events and functions. I did that by line by lining the lyrs in a few arrays, first finding lines with object names (IIRC based on if the line had the word 'Object' in it- just now, I realize, that could goof up, so you could also check if the next line had a '{' ), then isolating the names in the line based on quotation marks.
Good to see someone helping out with SWBF2 scripting. Thanks for improving the quality of future maps.