Author: silene
Date: Sat Apr 18 16:40:11 2009
New Revision: 35013
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35013&view=rev
Log:
Exercised Lua team getters.
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=35013&r1=35012&r2=35013&view=diff
==============================================================================
--- trunk/data/scenario-test.cfg (original)
+++ trunk/data/scenario-test.cfg Sat Apr 18 16:40:11 2009
@@ -173,10 +173,11 @@
code=<<
local function f(t)
wesnoth.fire("label", { text =
- string.format("Lua says:\n%d units on side %d",
+ string.format("Lua says:\n%d units and %d gold on side
%d",
#wesnoth.get_units { side = t.on_side },
+ wesnoth.get_side(t.on_side).gold,
t.on_side),
- x = 13, y = 3 })
+ x = t.x, y = t.y })
end
wesnoth.register_wml_action("my_lua_action", f)
>>
@@ -224,6 +225,7 @@
first_time_only=no
[my_lua_action]
on_side=1
+ x,y=13,3
[/my_lua_action]
[/event]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits