Wikia

Pokémon Essentials Wiki

Region map

Talk0
196pages on
this wiki
EssenRegion

The Essen region map

The region map (also known as the Town Map) is the picture that shows the entire region. This article describes how to set up a region map.

It should not be confused with a game map - those are the overworld areas the player walks around in, each of which typically depicts a single town or route, and are often linked together.

See also

Multiple regions

  • This article describes how to spread your game across several different regions.

Maps

  • Namely, the map-specific metadata "MapPosition" (shows the correct current location of the player when looking at the Town Map).

Using moves outside battle

  • The move Fly allows travel between various parts of a region.

Viewing the region map

The region map can be viewed with the following method:

pbShowMap
pbShowMap(0)

The first example will show the map of the region the player is currently in. To show a particular region's map, put its number as an argument like in the second example (the default number is -1, which means "the current region").

These examples will both show the wall map version of that map. That is, they should be used on the walls of Poké Centers and other places where a wall is hung. Whether or not the map is being shown as a wall map will affect the graphics of that map (see below).

A wall map will remain exactly the same regardless of the player's progress through the game.

A non-wall map is defined as any map which is personal to the player, such as the Town Map Key Item or the map in the Pokégear. These maps can/will record the player's progress through the game.

The region map picture

Every region map is divided into a grid of squares. By default, each square is of size 16x16 pixels (the size of a small town).

A region map should be 480x320 pixels in size, which contains 30x20 squares by default.

As the region map is grid-like, it is important that the towns and routes line up with this grid, so that the cursor and other icons are positioned properly over the locations. Aside from that, though, you can do whatever you want.

The map pictures belong in the folder "Graphics/Pictures".

Extra graphics

You can show additional pictures on the region map at certain times, such as islands which originally weren't there but were unlocked. The newer official games do this.

The script section Settings contains an array which looks like this:

REGIONMAPEXTRAS = [
   [0,32,16,15,"mapHiddenDaroxy",false],
   [0,33,20,14,"mapHiddenFaraday",false]
]

Each line (itself an array) describes the details of a graphic to paste over a region map. It is made up of the following information:

  1. The number of the region which this graphic can be pasted into.
  2. For non-wall maps, the Global Switch which needs to be ON in order to show this graphic.
  3. The x-coordinate in squares where the left side of the graphic should be pasted.
  4. The y-coordinate in squares where the top of the graphic should be pasted.
  5. The name of the graphic. It is placed in the folder "Graphics/Pictures".
  6. For wall maps, whether the graphic should be shown.

The additional graphic has different criteria for being shown depending on whether the map being viewed is a wall map or not. Guidelines on how to define these criteria are as follows:

  • Locations which can be unlocked by the player, but are otherwise not known about before then (e.g. islands which are home to a legendary Pokémon) should only be shown on the player's region map (non-wall maps). The last piece of information will be "false", so the location will never appear on wall maps.
  • The icons for towns and cities may appear greyed out at the start of the game, but are coloured in as the player visits them. In this case, a wall map should show all the towns/cities coloured in regardless of the player's progress. In this case, the last piece of information for each coloured town icon should be "true".

The same graphic can be used multiple times (e.g. a coloured city's icon).

Adding information to the region map

Townmapgen

townmapgen.html

Each square of the region map can be given a variety of information (see the table below). To do this, you can either edit the PBS file "townmap.txt" directly, or you can use a special html file included with Essentials called "townmapgen.html" to help you.

Each region defined in the PBS file "townmap.txt" has its own section, which begins with the region number in square brackets (the first/default region number is 0). Then the name of the map file depicting the region is defined, then the name of the region, then information about each square (or "point"). See below for an example of a defined region.

The information each square of a region map can have is as follows:

Information Description
Current Position The coordinates of the point on the region map. Every point must have these coordinates. This is filled in automatically when you click a part of the map in "townmapgen.html".

You cannot have more than one line in the same region with the same coordinates.

Name The location's name (e.g. Route 101, Rustboro City, Mt. Moon).

Several squares can have the same name (e.g. you can give both squares of a large city that takes up 2 squares the same name).

Point of Interest The name of a particular building or cave or other feature within that location (e.g. Pokémon Tower, Desert, Safari Zone). You should only have one Point of Interest per square. A game will typically only have a few Points of Interest at all.
Fly Destination This is a Fly destination, and is three comma-separated numbers: the map ID followed by X and Y coordinates of the location Fly will take you to when you choose this square to Fly to. This location is usually just in front of a Poké Center building, hence its old name "Healing Spot".
Switch If this is a number, then the Global Switch of that number must be ON in order to show the square's information. That is, the map's name and Point of Interest will not be shown unless that switch is ON. This only affects non-wall maps.

Multiple squares can depend on the same Global Switch.

Typically used for special locations outside of the storyline. Note that only the name and point of interest are not displayed; you can still Fly there (if "Fly Destination" is defined). However, as you can only Fly to maps you have already visited, this shouldn't usually matter as you should set this Global Switch ON at the same time as visiting the map.

Note that the ONLY way in which the region map corresponds to game maps is when "Fly Destination" is defined.

Conversely, the ONLY way in which game maps correspond to the region map is when the "MapPosition" metadata is defined for a game map. This metadata is used for several things, including showing the player's current location.

townmapgen.html

"townmapgen.html" can be found in the game project's main folder. When it is opened, it loads the file at "Graphics/Pictures/MapRegion0.png" (you can then load a different map to work on if you want). From here, select a square by clicking on the map (a small white dot will appear over the chosen square) and fill in the details. Once you have done so, click the "Save" button to convert the information for that square into text in the box at the bottom of the page.

The information is converted into the correct format required for the PBS file "townmap.txt". You need to copy this line and paste it into "townmap.txt" (see below for an example of what it should look like).

Example

[0]
Name=Essen Region
Filename=mapRegion0.png
Point=13,12,"Lappet Town","Oak's Lab",2,8,8,
Point=13,11,"Route 1",,,,,
Point=13,10,"Cedolan City","Cedolan Dept. Store",7,47,11,
Point=14,10,"Cedolan City",,7,47,11,
Point=14,9,"Route 2",,,,,
Point=14,8,"Route 2",,,,,
Point=15,8,"Lerucean Town",,23,11,15,

This is an example of a region map as defined in the PBS file "townmap.txt".

The first point defined has a location name, a Point of Interest, and is a Fly destination - when choosing to Fly to this square, the player will move to map number 2, at coordinates (8,8).

Note that all the commas must be there in each line, even if there is no information for them to separate.

Icons on the map

The player's current position, and the valid Fly destinations, can be marked on the map by icons. These are located in the folder "Graphics/Pictures", and are called:

  • mapPlayerXXX.png - "XXX" is the internal name or ID number (padded to 3 digits) of a trainer type, i.e. of the trainer types the player can have.
  • mapFly.png - The two-frame icon that indicates a valid Fly destination.

The player's current position will always be shown on the map, and the Fly destination icons will only be shown when using the move Fly.

Note that the Fly destination icon is only a single map square in size. You should not have two squares adjacent to each other which are both Fly destinations, as the Fly icons will overlap. For locations spanning multiple squares that can be flown to (e.g. large cities), it is recommended that only one of those squares be a Fly destination to avoid overlapping icons.

Around Wikia's network

Random Wiki