mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 15:46:49 +00:00

...for strings, too this is done by a) scanning for all .lua files additionally to all .cfg files in FINDCFG and b) by adding the equivalent of a "commented out" #textdomain DOMAIN declaration next step: testing if it really does work as expected this should also fix bug #15629 since the objectives are now *only* declared via some lua magic
18 lines
323 B
Lua
18 lines
323 B
Lua
--! #textdomain wesnoth
|
|
|
|
return {
|
|
|
|
init = function(ai)
|
|
|
|
--! ===========================
|
|
|
|
--! say hello to player via a message
|
|
function ai.say_hello()
|
|
wesnoth.message(string.format("Hello from Lua AI which controls side %d! It's turn %d.", ai.side, wesnoth.current.turn))
|
|
end
|
|
|
|
--! ===========================
|
|
end
|
|
}
|
|
|