Added Lua check to test scenario.

This commit is contained in:
Guillaume Melquiond 2009-03-24 19:35:42 +00:00
parent 4a09530620
commit ed5bb8ffde

View File

@ -201,6 +201,18 @@ Xu , Xu , Qxu , Qxu , Ql , Ql
[/sound_source]
[/event]
[event]
name="new turn"
[lua]
code = <<
wesnoth.fire("label", { text =
string.format("Lua says:\n%d units on side 1",
#wesnoth.get_units { side = 1 }),
x = 13, y = 3 })
>>
[/lua]
[/event]
[event]
name=moveto
[filter]