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

How To Add A Pokemon

This tutorial will go over how to add a new pokemon. As an example, we'll be adding the tangrowth.

Contents

  1. Define a POKEMON Constant
  2. Give the POKEMON a Name
  3. Give the POKEDEX a Constant
  4. Add a POKEDEX Entry
  5. Add the POKEDEX Order
  6. Create the new File in Base stats

1. Define a POKEMON Constant

Edit constants/pokemon_constants.asm:

     const_value = 1

	const RHYDON       ; $01
	const KANGASKHAN   ; $02
        ...
        const TANGELA      ; $1E
-       const MISSINGNO_1F ; $1F
+       const TANGROWTH    ; $1F

2. Give The POKEMON a Name

Edit data/pokemon/names.asm:

       MonsterNames:
       db "RHYDON@@@@"
       db "KANGASKHAN"
       ...
       db "TANGELA@@@"
-      db "MISSINGNO."
+      db "TANGROWTH@"

3. Give the POKEDEX a Constant

Edit constant/pokedex_constants.asm:

       const_value = 1

       const DEX_BULBASAUR  ; 1
       const DEX_IVYSAUR    ; 2
       ...
       const DEX_MEW        ; 151
+      const DEX_TANGROWTH  ; 152

- NUM_POKEMON    EQU 151
+ NUM_POKEMON    EQU 152

4. Add a Pokedex Entry

Edit data/pokemon/dex_entries.asm:

       PokedexEntryPointers:
	     dw RhydonDexEntry
	     dw KangaskhanDexEntry
             ...
	     dw TangelaDexEntry
-	     dw MissingNoDexEntry
+            dw TangrowthDexEntry
             ...
      ; string: species name
      ; height in feet, inches
      ; weight in pounds
      ; text entry

 BulbasaurDexEntry:
	db "SEED@"
	db 2,4
	dw 150
	TX_FAR _BulbasaurDexEntry
	db "@"
 IvysaurDexEntry:
	db "SEED@"
	db 3,3
	dw 290
	TX_FAR _IvysaurDexEntry
	db "@"
 ...

+ TangrowthDexEntry:
	db "Vine@"
	db 6,7
	dw 2835
	TX_FAR _TangrowthDexEntry
	db "@"

5. Add the POKEDEX Order

Edit data/pokemon/dex_order.asm:

       PokedexOrder:
	      db DEX_RHYDON
	      db DEX_KANGASKHAN
              ...
              db DEX_TANGELA
-	      db 0 ; MISSINGNO.
+             db DEX_TANGROWTH

6. Create the new File in Base stats

And that's it! You've added a new Pokemon ITEM into the game.