wesnoth/data/ai/lua/stdlib.lua
Nils Kneuper 0723abe7e3 add some (hackish!) attempt to make the po update routines scan .lua files...
...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
2010-03-15 20:22:28 +00:00

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
}