• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

NPC on Region Map

etique

etique
268
Posts
6
Years
  • Age 36
  • Seen Oct 30, 2022
How do I create an event that npc appears on the map?mapRegion0.png
 

averyindahouse

Creator of Pokemon Sigma (Coming Soon)
41
Posts
9
Years
Something you *could* do is to make a "Hidden Map" in the shape of an NPC's head and then have it appear on the map dependent on a switch you can activate, just like the other hidden maps in the game.
In the script section Settings, find the code that should look something like this:
Code:
REGIONMAPEXTRAS = [
   [0,51,16,15,"mapHiddenBerth",false],
   [0,52,20,14,"mapHiddenFaraday",false]
]

This is the section of code that handles hidden maps (e.g. islands, secret places, etc) and we can manipulate it here to do what it is you're asking. If you want to make your own hidden map, you will need to add the following code to this section:
Code:
[x,zz,xx,yy,"YourMapName",true/false]
x = The region that this hidden map will appear in. Under most cases, should be 0
zz = The switch that needs to be turned "ON" for this map to appear. Set this as you like
xx = The X-Coordinate of where on the map this hidden map will appear
yy = The Y-Coordinate of where on the map this hidden map will appear
"YourMapName" = This is self-explanatory. This is the image of what will be put onto the map, and should be in the file /Graphics/Pictures
true/false = conditional that determines if this hidden map should always be shown on a town map. In this case, this should ALWAYS be false.

So, say we wanted to add a picture of Oak's Head to the map, called "OaksHead", that appears at coordinate (20,17) and is dependent on switch 75 being turned "ON", then we would do this:
Code:
[0,75,20,17,"OaksHead",false]
When you add this, make sure each entry is separated by a comma at the end, except for the last one. So fully implemented it should look like this:
Code:
REGIONMAPEXTRAS = [
   [0,51,16,15,"mapHiddenBerth",false],
   [0,52,20,14,"mapHiddenFaraday",false],
   [0,75,20,17,"OaksHead",false]
]

Let me know how this helps you!
 
Last edited:
Back
Top