summaryrefslogtreecommitdiff
path: root/scripts/route12house.asm
blob: 7ee86731e48970fac1110d6545b0812ece0b39a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Route12HouseScript:
	jp EnableAutoTextBoxDrawing

Route12HouseTextPointers:
	dw Route12HouseText1

Route12HouseText1:
	TX_ASM
	ld a, [wd728]
	bit 5, a
	jr nz, .asm_b4cad
	ld hl, Route12HouseText_564c0
	call PrintText
	call YesNoChoice
	ld a, [wCurrentMenuItem]
	and a
	jr nz, .asm_a2d76
	lb bc, SUPER_ROD, 1
	call GiveItem
	jr nc, .BagFull
	ld hl, wd728
	set 5, [hl]
	ld hl, Route12HouseText_564c5
	jr .asm_df984
.BagFull
	ld hl, Route12HouseText_564d9
	jr .asm_df984
.asm_a2d76
	ld hl, Route12HouseText_564cf
	jr .asm_df984
.asm_b4cad
	ld hl, Route12HouseText_564d4
.asm_df984
	call PrintText
	jp TextScriptEnd

Route12HouseText_564c0:
	TX_FAR _Route12HouseText_564c0
	db "@"

Route12HouseText_564c5:
	TX_FAR _Route12HouseText_564c5
	db $0B
	TX_FAR _Route12HouseText_564ca
	db "@"

Route12HouseText_564cf:
	TX_FAR _Route12HouseText_564cf
	db "@"

Route12HouseText_564d4:
	TX_FAR _Route12HouseText_564d4
	db "@"

Route12HouseText_564d9:
	TX_FAR _Route12HouseText_564d9
	db "@"