Author: silene
Date: Sat Apr 18 16:40:18 2009
New Revision: 35015

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35015&view=rev
Log:
Exercised Lua team setters.

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=35015&r1=35014&r2=35015&view=diff
==============================================================================
--- trunk/data/scenario-test.cfg (original)
+++ trunk/data/scenario-test.cfg Sat Apr 18 16:40:18 2009
@@ -180,6 +180,16 @@
                         x = t.x, y = t.y })
                     end
                 wesnoth.register_wml_action("my_lua_action", f)
+            >>
+        [/lua]
+    [/event]
+
+    [event]
+        name=prestart
+        [lua]
+            code=<<
+                local team = wesnoth.get_side(1);
+                team.gold = team.gold + 500;
             >>
         [/lua]
     [/event]


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to