Wondering if anyone has heard of an easy method of making a certain terrain tag assign the tile a specified region ID as well.
For example, I'd always like terrain tag 3 to assign region #24 to that tile.
This can be done manually, or even automatically with the right scripting, but doing it that way creates a whole slew of issues with "load" times.
Thanks in advance!
Why would you want to do that? Why not just use the terrain tag?
Given there are 4 layers for mapping, which could have 4 tiles, which could all have different terrain tags, what happens if one is 3 and the others are all something else?
What if you already have a different region id on that tile?
It can be done with scripting, and I don't think it would have much impact at all on load times. If you're comfortable with js, you could check out my plugin to change/copy tiles, and see how it grabs the map data as soon as it's loaded - that's where the code would need to be inserted so it could be updated before the map is drawn. Then for terrain tags and regions, I think you'd need to do a bit of bit manipulation to first check the terrain tags on the 4 layers, clear the current region id, then set the new region id. Then it would be made more or less difficult depending on how flexible you wanted it (if you wanted terrain tag 3 to convert to region 24 on every single map, it would be easy, but if you wanted to allow multiple conversions for a single map, or different conversions on different maps - 3 becomes 24 on some, but becomes 18 on others - it would add a bit of complexity in that you'd need to use notes).
The alternative is, whatever plugin you are using that checks for regions, make a similar one that checks for terrain tags, or modify the region one to also check for terrain tags.
The first option would probably be better though, as it only runs when a map is loaded, while the second would run every time the player took a step, so more checks, more frequently = greater load on processor.
lol - sure I did, because it was a small and fairly easy one, and I already had some experience with the various components.
Glad it works, and hope it's nice and fast and doesn't cause any loading delays.
If this is solved, just report your first post and ask for the mods to close the thread 🙂