Author: silene
Date: Tue Mar 24 20:35:42 2009
New Revision: 34095
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34095&view=rev
Log:
Added Lua check to test scenario.
Modified:
trunk/data/scenario-test.cfg
Modified: trunk/data/scenario-test.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/scenario-test.cfg?rev=34095&r1=34094&r2=34095&view=diff
==============================================================================
--- trunk/data/scenario-test.cfg (original)
+++ trunk/data/scenario-test.cfg Tue Mar 24 20:35:42 2009
@@ -199,6 +199,18 @@
full_range=3
fade_range=5
[/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]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits