Update of bug #15657 (project wesnoth):
Status: Need Info => Wont Fix
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #3:
In case it helps, you can always add the following (untested) WML to your
scenario.
[event]
name=preload
first_time_only=no
[lua]
code=<<
local H = wesnoth.require "lua/helper.lua"
wesnoth.register_wml_action("store_all_gold",
function()
local side = 1
for team in H.all_teams() do
wesnoth.set_variable("gold_"..side, team.gold)
side = side + 1
end
end)
>>
[/lua]
[/event]
It will define a new [store_all_gold] tag. It will fill variables gold_1,
gold_2, etc, with the amount of gold of each side.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15657>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs