Page 1 of 1

Lua scripting

Posted: Fri Feb 20, 2009 5:51 pm
by zuzuf
I am making the basics class required to manipulate Lua scripts easily.

This breaks compatibility with previously written game scripts since they don't need a main function any more, everything runs like if the script was running in parallel in a separate thread.

I also changed some function names:
_ ta3d_print and ta3d_print_for become text_print and text_print_for
_ all ta3d_ prefix have been removed

text printing functions are named text_print because there is already a print function in Lua.

Scripts are going to share a common environment they can access through a set of functions in order to make it thread safe and because it is a separated environment, not current Lua environment, so you won't disturb the game behavior writing unit or AI scripts.

Posted: Fri Feb 20, 2009 6:04 pm
by Balthazar
I`d like to try scripting once 0.6.x becomes available :P