better-terrain icon indicating copy to clipboard operation
better-terrain copied to clipboard

[question] Help with understanding matching rules

Open emanresU102396 opened this issue 9 months ago • 1 comments

I've had some troubles that I've run into while trying to use terrains, and I don't understand the matching system well enough to know whether the features I want exist or not (or if they even would work in the first place). I think my main point of confusion is in regards to the 'strictness' of matching rules. Sometimes, I want a tile to be considered a match if, say, the left and right neighbor match, without taking into account other neighbors (unless another tile is an even more exact fit). Sometimes, I want a tile to match if there's another tile of the same terrain to the left OR the right; or maybe I want it to match if there's a tile above, AND a tile to the left or right. Maybe I want to match if there's neighbors on the left and right, and NOT any neighbor above; or I want to match if there's a tile of terrain A above AND a tile of terrain B to the right; or if there's a tile of terrain A above OR a tile of terrain B to the right; or so forth... In short, I want to have control over how strictly a tile matches its neighbors. My questions are:

  1. How does matching work by default? How is a tile's "score" calculated? If one matching rule specifies terrain A above, and one has nothing marked above, what happens when terrain B is above the tile? If I connect a tile to multiple terrains or categories, does it count as a match when any of them match, or when all of them do? And so on.
  2. Is there a way to control matching rules the way I want to? For instance, some way to say "this tile matches EITHER of these two patterns", or "this tile should only be used if its neighbors EXACTLY match this pattern". If so, how? And if not, is this a feature that could feasibly be implemented?

Apologies if these questions are unclear/unnecessary/unreasonable/uninformed/etc, or if any of this info is in the tutorial video. (I did watch said video, but it was a while ago, and I may have overlooked or forgotten this information. But I'm not about to hunt through a 30-minute video in the hopes that the information I want might be somewhere in it.)

Thanks in advance for any help/answers you can provide.

emanresU102396 avatar May 03 '24 21:05 emanresU102396