Bobert13
Prince
- Joined
- Feb 25, 2013
- Messages
- 346
I've been messing around with oasis placement as of late, and I've got a really detailed function that scans a radius around a tile to determine whether or not to place an oasis. The issue is, if there's a large enough desert for them to be placed in, they form a pattern. Currently I'm using a scan method to iterate through the plots and I'd like to replace it with a randomized method to get rid of the pattern.
The scan method:
Anybody have any suggestions/examples of how I might be able to do this?
The scan method:
Code:
for y = 0, gridHeight - 1,1 do
for x = 0,gridWidth - 1,1 do
local plot = Map.GetPlot(x,y)
Anybody have any suggestions/examples of how I might be able to do this?