pokered/scripts/saffronhouse2.asm

45 lines
838 B
NASM
Raw Normal View History

2014-05-18 18:19:10 +00:00
SaffronHouse2Script: ; 1de3c (7:5e3c)
jp EnableAutoTextBoxDrawing
SaffronHouse2TextPointers: ; 1de3f (7:5e3f)
dw SaffronHouse2Text1
SaffronHouse2Text1: ; 1de41 (7:5e41)
2015-07-03 19:58:50 +00:00
TX_ASM
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_TM29
jr nz, .asm_9e72b
2014-05-18 18:19:10 +00:00
ld hl, TM29PreReceiveText
call PrintText
2015-08-05 21:20:29 +00:00
lb bc, TM_29, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .BagFull
ld hl, ReceivedTM29Text
call PrintText
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_TM29
jr .asm_fe4e1
2014-05-18 18:19:10 +00:00
.BagFull
ld hl, TM29NoRoomText
call PrintText
jr .asm_fe4e1
.asm_9e72b
2014-05-18 18:19:10 +00:00
ld hl, TM29ExplanationText
call PrintText
.asm_fe4e1
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
TM29PreReceiveText: ; 1de75 (7:5e75)
TX_FAR _TM29PreReceiveText
db "@"
ReceivedTM29Text: ; 1de7a (7:5e7a)
TX_FAR _ReceivedTM29Text
db $0B, "@"
TM29ExplanationText: ; 1de80 (7:5e80)
TX_FAR _TM29ExplanationText
db "@"
TM29NoRoomText: ; 1de85 (7:5e85)
TX_FAR _TM29NoRoomText
db "@"