I have had RPG Maker VX Ace for around a year or maybe more and recently bought MV. So I would like to ask; what are regions and what do I do with them?
Seriously. I never wrapped my head around them so I never used them. One day I was surfing the RPG Maker topics and noticed that a lot of people seemed to have found them really helpful so I looked at them more in depth. Still don't understand a thing about using them. As you can imagine I'm pretty frustrated at the fact that I've had this tool for a long time and never figured out how it worked.
So what am I suppose to do with Regions and how are they different in MV?
By default, regions in MV and Ace are used for the same purpose as Areas in VX - to determine what enemies will occur with random encounters on the map. But scripting opens it right up so you can use them for any purpose.
Do you have a handle on the use of terrain tags? Using those, you can set certain tiles in the tileset to have certain terrains, and then use scripts (or plugins, in MV's case) to add behaviours when the player or an event is on a tile that has a specific terrain tag.
Regions are similar, but you are not restricted to having them on specific types of tiles. You can paint anywhere on the map with any region tile - it's no longer linked with the tile in the tileset. The difference between Ace's regions and MV's regions is just that MV has many more (255, where Ace had 63)
If you want an example, search for Yanfly's videos and look for one to do with regions.
I know of terrain tags but don't know how they work. Do I basically write a script or something of the sort and "tag" it with an area?
Alright I will take a look at Yanfly's videos, I didn't know he had them. I appreciate the pointers.
Two great things you can use them for (with Yanfly's plug-ins):
- block the player or events from a certain region. This lets you keep NPCs from blocking doors, or just keeps them confined to certain areas (so you can always find them for a quest).
- run common events. Maybe you have a wide open map, and whenever the player touches ANY part you want them to transfer to the world map? You can do that with a region. Otherwise you'd have to put events all over the place.
What you have to do depends on what you want to do with them.
By default, they control your random encounters. But you can do many other things with them, as long as you write (or get someone else to write) a plugin to do it.
Here are some things I've used regions for:
- overriding passage settings so the player can walk off cliffs that are normally not passable, when they would be walking off the cliff and onto a bridge (normally you'd have to have a different version of the cliff tile that's set to passable, or use an invisible tile over it that's set to passable)
- run a common event when the player steps onto a certain region tile
- make a group of tiles behave like a single event, without having to place an event on each tile
- specify locations where a mini game can be triggered
- allows a player to climb a cliff
- change map tiles to something else when the player walks near them
- specify tiles on map that behave a certain way, allowing the player to complete a puzzle
Other things I know people have used regions for (or other ideas I think they could be used for):
- setting a tile as a "bridge", allowing you to walk under it from one direction and over it from another direction
- limiting movement of events or the player
- additional vehicles that don't act like the default ones (for example, a mine cart that has to go on rails)
- playing a sound when the player walks over those tiles
- showing an animation or a sprite (like footprints) when the player walks over those tiles
lots and lots of other possibilities
... So outside of scripting/plugin stuff, Region IDs are probably your best friends for events that rely on the player's position, especially since you don't necessarily need to create conditions for every single accurate x,y coordinate and just store the value of a region ID in a variable and work with that.
For instance.
Say you've created three variables, one for the player's x position, y position on the map, and one for the region id
You'd use the "get map/location info" (I forgot the wording) event command and set it to retrieve the region id based on the "coordinate" variables you already created.
Instead of having a conditional branch that looks like:
If: player x variable is equal to a set number> If : player y is equal to set number> Do a ThingElse> Don't do a thingYou could simply have a branch that goes something like:
If: region ID variable is equal to a set number> Do a ThingEndThey allow you to be inaccurate and make the workflow much easier! They're probably the best thing introduced in VX Ace and onward, so I'd look into the stuff you could do with them.
Basically Regions are nothing but markers.
You can use them to mark special positions on the map, and by itself that does exactly nothing.
But after a position has been marked, you can check those marks for deciding where should be something special.
By default, the engine has only two ways of using markers - but a lot of scripts/plugins check the map for markers to decide what to do where.
The default options are the random encounters (where can which troops e found) that are set on the map properties, and the possibility to use the event command "get location info" to read the region number of any given map position.
But there are dozens of scripts/plugins that can use the region markers for anything from changing or blocking movement to triggering common events on entering a position with a region number to whatever.
So Basically regions don't do anything special without scripting but have the potential to do so.
In other words my time looking for region setting button was in vain.
Alright, I appreciate the pointers everyone. Thanks!
Why in vain, and what "region setting button" were you looking for? Ratty524 already indicated you can use the Get Location Info to see what region is on a tile.
I was looking for a button that manipulated the regions to do unique things.
If "manipulate the regions" means changing the regions on the map, you can't do that. But if "manipulate the regions" means "make something happen when the player walks onto a tile with a certain region", yes you can do that. Whether you need a plugin or can do it in events depends on what you're trying to do, and how complex it is.
I suggest you explain what you want to do, and then we'll help you create an event to do it, or we'll tell you that you need a script.