mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 09:15:41 +00:00
Added Lua check to test scenario.
This commit is contained in:
parent
4a09530620
commit
ed5bb8ffde
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user