Skip to content

Edit the wild encounters

Daniel Harding edited this page Jun 29, 2022 · 5 revisions

This tutorial is for how to edit the wild encounters of a map.

Contents

Understanding how wild encounters work

Each slot in a wild encounter list has a set percentage, as shown below:

 db $32, $00 ; 20% Chance
 db $65, $02 ; 20% Chance
 db $8C, $04 ; 15% Chance
 db $A5, $06 ; 10% Chance
 db $BE, $08 ; 10% Chance
 db $D7, $0A ; 10% Chance
 db $E4, $0C ; 5% Chance
 db $F1, $0E ; 5% Chance
 db $FC, $10 ; 4% Chance
 db $FF, $12 ; 1% Chance

As such, when modifying a list of encounters for a map, these are the percentages each slot will have. For example, I´ll put the percentages in the comments of the Route 1 encounter list:

 Route1WildMons:
       	 def_grass_wildmons 25 ; encounter rate
	 db 3,PIDGEY ; 20%
	 db 3,RATTATA ; 20%
	 db 3,RATTATA ; 15%
	 db 2,RATTATA ; 10%
	 db 2,PIDGEY ; 10%
	 db 3,PIDGEY ; 10%
	 db 3,PIDGEY ; 5%
	 db 4,RATTATA ; 5%
	 db 4,PIDGEY ; 4%
	 db 5,PIDGEY ; 1%
	 end_grass_wildmons

	 def_water_wildmons 0 ; encounter rate
	 end_water_wildmons

Also, you may only have 10 wild encounters listed in a vanilla Pokered disassembly. Methods exist to increase the number of slots, but those methods are outside the purpose of this tutorial.

1. Picking the map to edit

All wild encounter lists are located in data/wild/maps. They are named based on the maps they are for. So, route1.asm is for Route 1, Route2.asm is for Route 2, etc.

2. Modifying the list

The list entries are formatted in this order: db LEVEL, POKEMON As such, modifying the level and Pokemon fields will make different Pokemon show up on that map. For example, say we wanted Route 1 to have some Spearow spawn. Edit data/wild/maps/Route1.asm

 Route1WildMons:
	 def_grass_wildmons 25
	 db 3,PIDGEY
	 db 3,RATTATA
	 db 3,RATTATA
	 db 2,RATTATA
	 db 2,PIDGEY
-	 db 3,PIDGEY
+        db 3,SPEAROW
	 db 3,PIDGEY
	 db 4,RATTATA
	 db 4,PIDGEY
-	 db 5,PIDGEY
+        db 10,SPEAROW
	 end_grass_wildmons

You should now have a grasp on how to edit wild encounter lists.

Clone this wiki locally