enclave's Lua thread
Moderator: Forum Moderators
Re: enclave's Lua thread
Instead of using register_wml_action, you just define a function in the wesnoth.wml_actions table.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Re: enclave's Lua thread
By the way, in 1.12.6 register_wml_action had a compatibility wrapper available:
https://github.com/wesnoth/wesnoth/blob ... ua#L32-L37
which is consistent with the deprecation policy:
https://wiki.wesnoth.org/CompatibilityS ... d_features
So, an easy workaround here is to copy that wrapper into the addon.
https://github.com/wesnoth/wesnoth/blob ... ua#L32-L37
which is consistent with the deprecation policy:
https://wiki.wesnoth.org/CompatibilityS ... d_features
So, an easy workaround here is to copy that wrapper into the addon.