Wild encounter slots - pret/pokered GitHub Wiki
This tutorial is for how to increase the number of wild encounter slots.
Contents
- Introduction
- 1. Adding the slots to each map
- 2. Increasing the slot number
- 3. Change the number of wild Pokemon constant
Introduction
You may use this tutorial to increase the number of wild encounter slots to any number you like, but for the purposes of this tutorial, we will learn how to expand the number of slots from 10 to 12, as it was in Generation III.
1. Adding the slots to each map
As mentioned in the tutorial for simply editing wild encounters, 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. Anyway, in this step, all you have to do is add to each list one Pokemon per slot you wish to add. So, if you want to add two wild encounter slots, you add two Pokemon at the end of each list.
2. Increasing the slot number.
The wild encounter slots can be found in data/wild/probabilities.asm. Edit
wild_chance 51 ; 51/256 = 19.9% chance of slot 0
wild_chance 51 ; 51/256 = 19.9% chance of slot 1
- wild_chance 39 ; 39/256 = 15.2% chance of slot 2
+ wild_chance 25 ; 25/256 = 9.8% chance of slot 2
- wild_chance 25 ; 25/256 = 9.8% chance of slot 3
+ wild_chance 25 ; 25/256 = 9.8% chance of slot 3
- wild_chance 25 ; 25/256 = 9.8% chance of slot 4
+ wild_chance 25 ; 25/256 = 9.8% chance of slot 4
- wild_chance 25 ; 25/256 = 9.8% chance of slot 5
+ wild_chance 25 ; 25/256 = 9.8% chance of slot 5
- wild_chance 13 ; 13/256 = 5.1% chance of slot 6
+ wild_chance 13 ; 13/256 = 5.1% chance of slot 6
- wild_chance 13 ; 13/256 = 5.1% chance of slot 7
+ wild_chance 13 ; 13/256 = 5.1% chance of slot 7
- wild_chance 11 ; 11/256 = 4.3% chance of slot 8
+ wild_chance 11 ; 11/256 = 4.3% chance of slot 8
- wild_chance 3 ; 3/256 = 1.2% chance of slot 9
+ wild_chance 11 ; 11/256 = 4.3% chance of slot 9
+ wild_chance 3 ; 3/256 = 1.2% chance of slot 10
+ wild_chance 3 ; 3/256 = 1.2% chance of slot 11
3. Change the number of wild Pokemon constant
In constants/pokemon_data_constants.asm change the number of wild pokemon from 10 to 12,
...
; wild data (see data/wild/maps/*.asm)
-DEF NUM_WILDMONS EQU 10
+DEF NUM_WILDMONS EQU 12
DEF WILDDATA_LENGTH EQU 1 + NUM_WILDMONS * 2