mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 03:13:18 +00:00
16 lines
306 B
Lua
16 lines
306 B
Lua
--! #textdomain wesnoth
|
|
|
|
example_ca = {}
|
|
|
|
function example_ca:eval(ai)
|
|
wesnoth.message("External eval says hi!")
|
|
|
|
return 10000
|
|
end
|
|
|
|
function example_ca:exec(ai)
|
|
wesnoth.message("External CA exec attacks!")
|
|
ai.attack(2, 12, 3, 12, 1, 1) -- showcasing the presence of the AI table
|
|
end
|
|
|
|
return example_ca |