-
Notifications
You must be signed in to change notification settings - Fork 273
A New Evolution Item
Ebernacher90 edited this page Dec 27, 2019
·
14 revisions
How To Add A New Evolution Item
This tutorial will go over how to add a new normal item. As an example, we'll be adding the metal_coat.
- Define a ITEM Constant
- Give the ITEM a Name
- Give the ITEM a Price
- Give the ITEM a effect
- Lets give the ITEM the effect to use in Menu
Edit constants/item_constants.asm:
const_value = 1
const MASTER_BALL ; $01
const ULTRA_BALL ; $02
const GREAT_BALL ; $03
...
const FLOOR_B4F ; $61
+ const METAL_COAT ; $62
Edit text/item_names.asm:
ItemNames:
db "MASTER BALL@"
db "ULTRA BALL@"
...
db "B4F@"
...
+ db "METAL COAT@"
Edit data/item_prices.asm:
ItemPrices:
money 0 ; MASTER_BALL
money 1200 ; ULTRA_BALL
...
money 0 ; FLOOR_B4F
...
+ money 2100 ; METAL_COAT
Edit engine/item/items.asm:
UseItem_:
ld a, 1
ld [wActionResultOrTookBattleTurn], a ; initialise to success value
...
ItemUsePtrTable:
dw ItemUseBall ; MASTER_BALL
dw ItemUseBall ; ULTRA_BALL
...
dw ItemUsePPRestore ; MAX_ELIXER
dw dw UnusableItem ; PEARL
Edit engine/menu/start_sub_menus.asm:
StartMenu_Pokedex:
predef ShowPokedexMenu
call LoadScreenTilesFromBuffer2 ; restore saved screen
...
; items which bring up the party menu when used
UsableItems_PartyMenu:
db MOON_STONE
db ANTIDOTE
...
db MAX_ELIXER
+ db FLOOR_B2F
+ db FLOOR_B2F
db $ff
And that's it! You've added a new normal ITEM into the game.