 From the 1.7 development version upwards, code in Lua can be embedded in WML events which gets executed when those events fire.From 1.7.14 on, Lua can also be used to create alternate (or supplemental) AI implementations.Besides the official wesnoth game version, there is always an alternative development version, that introduces more new features and improvements for players and content creators.