mapeditor / tiled

Flexible level editor
https://www.mapeditor.org/
Other
11.26k stars 1.76k forks source link

Ability to attach distribution functions to tile probability. #4017

Open deadowl opened 4 months ago

deadowl commented 4 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

It would be super cool to be able to dynamically specify tile probabilities based on map attributes readily available to the tile at the time a tile is ready to be randomly sampled, like cell coordinates, the current region definition being used, etc. I've seen a kind of pattern before on GraalOnline pre-2005 where certain underwater seabed tiles would be denser or sparser depending on where on the map they were. It might have used a solution similar to feature request 3818. To note this would also be a potential solution to 3818, but I'm thinking arbitrary probability distribution function that can be specified via extension rather than a single seed parameter you enter into the UI.

Describe the solution you'd like

The ability to define probability distribution functions based on different criteria rather than a simple probability number.

Describe alternatives you've considered