-
Notifications
You must be signed in to change notification settings - Fork 993
Wild encounter slots
This tutorial is for how to increase the number of wild encounter slots.
- Introduction
- 1. Adding the slots to each map
- 2. Increasing the slot number
- 3. Change the number of wild Pokemon constant
- 4. Edit the RAM
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.
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.
The wild encounter slots can be found in data/wild/probabilities.asm. Edit
db 50, $00 ; 51/256 = 19.9% chance of slot 0
db 101, $02 ; 51/256 = 19.9% chance of slot 1
- db 140, $04 ; 39/256 = 15.2% chance of slot 2
+ db 126, $04 ; 25/256 = 9.8% chance of slot 2
- db 165, $06 ; 25/256 = 9.8% chance of slot 3
+ db 151, $06 ; 25/256 = 9.8% chance of slot 3
- db 190, $08 ; 25/256 = 9.8% chance of slot 4
+ db 176, $08 ; 25/256 = 9.8% chance of slot 4
- db 215, $0A ; 25/256 = 9.8% chance of slot 5
+ db 201, $0A ; 25/256 = 9.8% chance of slot 5
- db 228, $0C ; 13/256 = 5.1% chance of slot 6
+ db 214, $0C ; 13/256 = 5.1% chance of slot 6
- db 241, $0E ; 13/256 = 5.1% chance of slot 7
+ db 227, $0E ; 13/256 = 5.1% chance of slot 7
- db 252, $10 ; 11/256 = 4.3% chance of slot 8
+ db 238, $10 ; 11/256 = 4.3% chance of slot 8
- db 255, $12 ; 3/256 = 1.2% chance of slot 9
+ db 249, $12 ; 11/256 = 4.3% chance of slot 9
+ db 252, $14 ; 3/256 = 1.2% chance of slot 10
+ db 255, $16 ; 3/256 = 1.2% chance of slot 11
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
Last, but not least, go to engine/overworld/wild_mons.asm, and change every instance of "ld bc, $14" you find there to "ld bc, $18".