summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInfernoGear <32606575+InfernoGear@users.noreply.github.com>2019-10-05 11:19:24 -0500
committerInfernoGear <32606575+InfernoGear@users.noreply.github.com>2019-10-05 11:19:24 -0500
commitbe23cb9165d9bad8ff343ebf28d2979d1cf20596 (patch)
tree360e117b8332f31d16e9d9ec40071d269a45b2f6
parent49876f5aea61e8af5ea836aa7a83bac621d2f9e4 (diff)
Created the page.
-rw-r--r--Edit-the-wild-encounters.md65
1 files changed, 65 insertions, 0 deletions
diff --git a/Edit-the-wild-encounters.md b/Edit-the-wild-encounters.md
new file mode 100644
index 0000000..d4295ea
--- /dev/null
+++ b/Edit-the-wild-encounters.md
@@ -0,0 +1,65 @@
+This tutorial is for how to edit the wild encounters of a map.
+## Contents
+- [Understanding how wild encounters work](#understanding-how-wild-encounters-work)
+- [1. Picking the map to edit](#1-picking-the-map-to-edit)
+- [2. Modifying the list](#2-modifying-the-list)
+
+## Understanding how wild encounters work
+Each slot in a wild encounter list has a set percentage, as shown below:
+``diff
+ 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:
+```diff
+ Route1Mons:
+ db $19
+ 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%
+ db $00
+```
+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/wildPokemon](../blob/master/data/wildPokemon). 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/wildPokemon/route1.asm](../blob/master/data/wildPokemon/route1.asm)
+```diff
+ Route1Mons:
+ db $19
+ 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
+ db $00
+```
+You should now have a grasp on how to edit wild encounter lists. \ No newline at end of file