Help with Region IDs and Terrain Tags

Hey folks, how are you all?

So, I decided to give the one map challenge a shot and was messing with the editor to see what I could do. I found the region IDs and Terrain Tags interesting since I never touched them until now.

So, I don't understand how they work inside the engine and I have some questions:

Is it possible to set a single event that pulls a tile's ID and change the tile? Like: When I defeat this boss, a switch turns on and removes an impassable tile that was blocking the way. I want to set obstacles to make sure that the player needs to defeat the boss before progressing. (I did similar things by moving a single event from here to there but, I can only move it to a single tile per time and, I can't create multiple events due to the rules of the challenge)

And there is another thing that I don't understand how it works. What is the "get location info" command? It seems to store a terrain tag to a variable but, it forces me to choose a direct designation. (my interpretation of this was that this designation is from where it will pull the information like: Block c is located at 31,46 and has terrain tag 1. This way, the variable becomes 1. I don't know if I'm correct and, even if I guessed it right, I can't think of a situation where I would need a variable like this.)

I know that if I used VS's plugins I could set events to trigger by region ID but, I believe it goes against the rules of the challenge since it states ("you can't use plugins that serve to work around the limitations of the challenge").

Can you guys give me a general Idea of how this concept works inside RPG maker MZ?
Get Location Info doesn't force you to use a direct designation. You also have the option of using variables to state the location (so you could put the player's X and Y into variables and check the tile where the player is standing, or the same with any event) - which of course means if you're NOT using direct designation, you're using up 3 of your 10 variables.

But it does basically what you said. You give it the location, and tell it what information you want back - could be region id, terrain tag or a few other things, and that goes into a variable. There are heaps of ways you can use this in a game, but if you can't think of any, then you probably have no need to use it.

I wrote a plugin for MV to change map tiles. That MIGHT work in MZ, but the rules also state that you can't use plugins to get around the number of events/variables/switches limitations, and that's exactly what you'd be doing. However, you might be able to look at it and figure out an easy way to adapt it to a script call rather than a whole plugin.

I did similar things by moving a single event from here to there but, I can only move it to a single tile per time and, I can't create multiple events due to the rules of the challenge
You can create multiple, they just count toward your limit of 10 😉

Aside from Shaz's suggestion of figuring out script calls, you could work around it a bit with some clever eventing.

Make a parallel event that checks whether the player has moved since the last time the event ran - if yes, teleport the blocking event in that direction so it continues to block.

(So if you're blocking them from going right, you'd check if they moved up or down to get around it and teleport it up or down accordingly, or use a move route if you want a visible NPC walking to block them)

If you're not sure how to implement that, look up how to make a common event for playing footsteps and change the commands for playing sound effects into teleporting the event.

That won't allow you to change what the terrain looks like, but it can accomplish blocking using only two events.
Get Location Info doesn't force you to use a direct designation. You also have the option of using variables to state the location (so you could put the player's X and Y into variables and check the tile where the player is standing, or the same with any event) - which of course means if you're NOT using direct designation, you're using up 3 of your 10 variables.

But it does basically what you said. You give it the location, and tell it what information you want back - could be region id, terrain tag or a few other things, and that goes into a variable. There are heaps of ways you can use this in a game, but if you can't think of any, then you probably have no need to use it.

I wrote a plugin for MV to change map tiles. That MIGHT work in MZ, but the rules also state that you can't use plugins to get around the number of events/variables/switches limitations, and that's exactly what you'd be doing. However, you might be able to look at it and figure out an easy way to adapt it to a script call rather than a whole plugin.

Hey, I spent the last day thinking about your quote "There are heaps of ways you can use this in a game, but if you can't think of any, then you probably have no need to use it."

I ended up realizing the potential of the Region ID. I made checkers and the game has been progressing smoothly. Ended up using a variable and an event to make the checks in the whole game while a pursuer and a rewarder would follow the player based on these IDs. The checker is a giant list of variables, switches and labels that seems very overwhelming, this made me realize how important comments are too. Thank you for giving me this hint and I'm honestly pretty glad that I decided to give this a shot.
You can create multiple, they just count toward your limit of 10 😉

Aside from Shaz's suggestion of figuring out script calls, you could work around it a bit with some clever eventing.

Make a parallel event that checks whether the player has moved since the last time the event ran - if yes, teleport the blocking event in that direction so it continues to block.

(So if you're blocking them from going right, you'd check if they moved up or down to get around it and teleport it up or down accordingly, or use a move route if you want a visible NPC walking to block them)

If you're not sure how to implement that, look up how to make a common event for playing footsteps and change the commands for playing sound effects into teleporting the event.

That won't allow you to change what the terrain looks like, but it can accomplish blocking using only two events.
I actually did something pretty similar to this since my post. I managed to use a single event to create chests around the map for example. One checker is always updating the variable set to region IDs and the events are updating based on it.

To work around the terrain change, I decided to overlay normal tiles. For example: The stone knight from the game is seen in the map as an statue of two tiles. I decided to put a destroyed statue tile in the first tile and change the "pursuer" event's image to the legs of the statue, this made it overlay and hide the initial tile. As for the second, I reused the chests event to be the top of the statue with variables and run it as a paralel. In the end, I didn't have to use any additional events and the statue is "destroyed" after the fight. It is being pretty fun to test MZ's capabilities without the help of any plugin.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-region-ids-and-terrain-tags.153630/