Is there a way to check an X/Y location, determine if there's an event present there, and if so, what it's ID is?
I imagine if it's possible it'll require either a script or possibly even a plugin, but first things, first, is it even possible?
wow, that's much easier than I was expecting, thanks!
It's a combination of hit detection and an area of effect "liquid" system. Basically, a puddle of liquid gets spilled on the floor, it has to check the tiles next to it to see if they need updating. (if they have a puddle on them too, the two run together.) Since the map layout changes and stuff, it would be much more work to individually tell each event which ones they're next to. By using location we can more or less make each event identical and have them update themselves.
Or use the get location info command as that will do the same without any script (but will use several event command lines)
Wouldn't that just get the location of an event, instead of starting with a location and determining if an event (and which one) is there?
because the reason I'm starting with an location and checking for events instead of the other way around is because it means I only need to check 8 tiles, as opposed to every other applicable event on the map.
No, the get location info can never give back a location, only data that is at a location you specify directly of with variables.
huh, kinda poorly named, isn't it?
Well I stand corrected, that's very useful. Thank you for making me aware of it.
No, not poorly named at all.
The command is Get Location Info. It gives you info about events/tiles at a given location. Pretty aptly named, actually 🙂
So for your purpose, you could have a loop for a variable x, and an inner loop for variable y, and use Get Location Info to get the event id at that specific location. You could do it all with event commands and conditional branches, but personally I'd stick with the script call, if you can do everything you need inside one script call, because it would be faster, and if you're doing it in a parallel process event (an assumption on my part), speed/efficiency is pretty important.