[Lua] Grabbing all tiles 2 tiles out? 3 tiles out?

Irkalla

ENTP POWWWEEEEEER
Joined
Sep 25, 2012
Messages
1,009
Location
Way down around Vicksburg
Trying to grab all tiles within 3 tiles of a city, that is, the workable tiles. How can I do such? I want to grab mountains and other usually unworkable tiles too.

Perhaps I could make a table consisting of pCity:GetNumCityPlots(), after which I remove from the table any tile that differs on x or y by more than 3?
 
The iterators will get you the plots, you can then use the "land grab" functions from IGE to add the tiles to a specific city

Just be careful of overlaps
 
Back
Top Bottom