wesnoth/data/multiplayer/scenarios/2p_Hornshark_Island.lua
mattsc 0e017d9f7c Lua code: replace deprecated wesnoth.set_variable() calls
(cherry-picked from commit ce7faae4f41f23f1d1f61d2b4f5ca95d4ce4f89a)
2018-10-07 03:21:07 +00:00

4 lines
116 B
Lua

for i, side in ipairs(wesnoth.get_sides({})) do
wml.variables["p" .. tostring(i) .. "_faction"] = side.faction
end