Open AsherGlick opened 3 years ago
was wondering, but can we use the existing trigger_radius of icons/poi as a simple area type? info range and info attributes already act as such, where if you enter within a certain radius, you trigger the info text attribute.
the only reason to have a Area datatype would be to contain non-circular regions like non-uniform polygons. and why would we need such a data type in the first place? to represent heart npc's quest borders?
This is definitely a possibility if it turns out having support for arbitrary polygons is not worthwhile. That being said I have a small idea of something around hearts where when you walk into a heart a 2D popup appears to tell you what to do in that heart. Not sure if that is the best way to tell people how to do hearts and I was planning on looking at augtyr's heart guides to see if their setup was a better overall idea.
If there is nothing that makes sense for areas beyond "close to this position" then it makes sense to implement trigger radius instead.
I think tekkit shows a icon with sort of a guide. But I doubt area will be that much more effective than that
I know position is used in determining when the Sabatha encounter starts, but that is on a pretty narrow bridge so a radius would still probably suffice.
Now that I am sitting on it a little more it probably makes sense to implement trigger_radius as a separate but similar thing from areas, and then leave areas in limbo until a valid use case for them arises. I will update the language spec in #2 .
Coderedart is correct that multiple packs do currently implement it just that way via radius around the heart with the info attribute showing text while in-range. Tekkit's isn't, but ReActif and Teh's trails definitely do.
As an aside, you can use our pack reports to see what attributes are most commonly used by some of the public marker packs. https://mp-repo.blishhud.com/
Areas would be the third datatype on top of
Icons
andRoutes
. They are a similar type toRoutes
but function as enclosed spaces instead of just lines.This idea was conserved early in the burrito design but thus far the only use cases are for Guacamole (#2) or for being able to have a color-fill in the minimap.