I've been looking into how I can reveal all natural wonders to the player at game start, and there doesn't seem to be any pre-made modifiers or LUA functions that can do it for me. Currently, the best idea I've got is to just iterate through every plot on the map at the start of the game, and if it's a natural wonder tile reveal it to the civ. However, nothing really jumps out at me in terms of how I can get a list of all the plots in the game. This is my code currently.
If anyone has any ideas, please let me know! Thanks.
hasRun = false Events.PlayerTurnStarted.Add(function(_player) if (hasRun==false) then if (PlayerConfigurations[_player].GetLeaderTypeName() == "xxx") then hasRun = true local plots = **SOMEHOW GET A TABLE OF ALL PLOTS ON MAP?** for key, value in pairs(plots) do if value:isNaturalWonder() then local pHumanVisibility = PlayersVisibility[_player] local iPlotIndex = value:GetIndex() pHumanVisibility:ChangeVisibilityCount(iPlotIndex, 0) end end end end)