Is it possible to check plots on the map for natural wonders(After AssignStartingPlots.lua has fired and completed) within lua? If so what function/variabl would I need to use? I tried adding a call to an existing bit of code but it just returned a error.
The part in red is what I added,I think it failed due to it calling from the resource table (maybe?) and the bit I added refrences the features table. I am just unsure as to what is required or if its even possible
Code:
if pPlot:GetResourceType(-1) == -1 and not pPlot:IsImpassable() [COLOR="red"]and not pPlot:IsNaturalWonder() [/COLOR]and not pPlot:IsCity() and not pPlot:IsGoody() and pPlotType ~= PlotTypes.PLOT_MOUNTAIN then
The part in red is what I added,I think it failed due to it calling from the resource table (maybe?) and the bit I added refrences the features table. I am just unsure as to what is required or if its even possible
