Quantcast
Viewing all articles
Browse latest Browse all 2187

Lua Labs • Re: Macro/file is missing

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:

Code:

[lua]code=<<for i,loc in ipairs(wesnoth.map.find{terrain = "Gg"}) dowesnoth.current.map[loc] = "Rr"end>>[/lua]
The key point is the use of << 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



Viewing all articles
Browse latest Browse all 2187

Trending Articles