You haven't shown your full code, so it's difficult to be sure of what you're doing. However, most likely the solution is this:
The key point is the use of
Code:
[lua]code=<<for i,loc in ipairs(wesnoth.map.find{terrain = "Gg"}) dowesnoth.current.map[loc] = "Rr"end>>[/lua]
<<
and >>
to let the WML preprocessor know that {terrain = "Gg"}
is not a macro and should be left alone.Statistics: Posted by Celtic_Minstrel — Yesterday, 9:49 pm