-
Notifications
You must be signed in to change notification settings - Fork 266
A New Pokemon
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.
- Define a POKEMON Constant
- Give the POKEMON a Name
- Give the POKEDEX a Constant
- Add a POKEDEX Entry
- Add the POKEDEX Order
- Create the new File in Base stats
Edit constants/pokemon_constants.asm:
const_value = 1
const RHYDON ; $01
const KANGASKHAN ; $02
...
const TANGELA ; $1E
- const MISSINGNO_1F ; $1F
+ const TANGROWTH ; $1F
Edit data/pokemon/names.asm:
MonsterNames:
db "RHYDON@@@@"
db "KANGASKHAN"
...
db "TANGELA@@@"
- db "MISSINGNO."
+ db "TANGROWTH@"
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
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 "@"
Edit data/pokemon/dex_order.asm:
PokedexOrder:
db DEX_RHYDON
db DEX_KANGASKHAN
...
db DEX_TANGELA
- db 0 ; MISSINGNO.
+ db DEX_TANGROWTH
And that's it! You've added a new Pokemon ITEM into the game.