pokered/scripts/CinnabarLabTradeRoom.asm
vulcandth d001ced41b
Add macros, constants, and labels for map scripts and text (#367)
This introduces `def_script_pointers`, `def_text_pointers`, and `object_const_def` macros, and applies them to all maps. Most other map labels have also been identified.
2023-07-13 21:27:56 -04:00

26 lines
728 B
NASM

CinnabarLabTradeRoom_Script:
jp EnableAutoTextBoxDrawing
CinnabarLabTradeRoom_TextPointers:
def_text_pointers
dw_const CinnabarLabTradeRoomSuperNerdText, TEXT_CINNABARLABTRADEROOM_SUPER_NERD
dw_const CinnabarLabTradeRoomGrampsText, TEXT_CINNABARLABTRADEROOM_GRAMPS
dw_const CinnabarLabTradeRoomBeautyText, TEXT_CINNABARLABTRADEROOM_BEAUTY
CinnabarLabTradeRoomSuperNerdText:
text_far _CinnabarLabTradeRoomSuperNerdText
text_end
CinnabarLabTradeRoomGrampsText:
text_asm
ld a, TRADE_FOR_DORIS
ld [wWhichTrade], a
jr CinnabarLabTradeRoomDoTrade
CinnabarLabTradeRoomBeautyText:
text_asm
ld a, TRADE_FOR_CRINKLES
ld [wWhichTrade], a
CinnabarLabTradeRoomDoTrade:
predef DoInGameTradeDialogue
jp TextScriptEnd