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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
BluesHouse_Script:
call EnableAutoTextBoxDrawing
ld hl, BluesHouse_ScriptPointers
xor a
call CallFunctionInTable
ret
BluesHouse_ScriptPointers:
dw BluesHouseScript0
dw BluesHouseScript1
BluesHouseScript0:
SetEvent EVENT_ENTERED_BLUES_HOUSE
ld a, $1
ld [wBluesHouseCurScript], a
BluesHouseScript1:
ret
BluesHouse_TextPointers:
dw BluesHouseDaisySittingText
dw BluesHouseDaisyWalkingText
dw BluesHouseTownMapText
BluesHouseDaisySittingText:
text_asm
CheckEvent EVENT_GOT_TOWN_MAP
jr nz, .got_town_map
CheckEvent EVENT_GOT_POKEDEX
jr nz, .give_town_map
ld hl, DaisyInitialText
call PrintText
jr .done
.give_town_map
ld hl, DaisyOfferMapText
call PrintText
lb bc, TOWN_MAP, 1
call GiveItem
jr nc, .bag_full
ld a, HS_TOWN_MAP
ld [wMissableObjectIndex], a
predef HideObject
ld hl, GotMapText
call PrintText
SetEvent EVENT_GOT_TOWN_MAP
jr .done
.got_town_map
ld hl, DaisyUseMapText
call PrintText
jr .done
.bag_full
ld hl, DaisyBagFullText
call PrintText
.done
jp TextScriptEnd
DaisyInitialText:
text_far _DaisyInitialText
text_end
DaisyOfferMapText:
text_far _DaisyOfferMapText
text_end
GotMapText:
text_far _GotMapText
sound_get_key_item
text_end
DaisyBagFullText:
text_far _DaisyBagFullText
text_end
DaisyUseMapText:
text_far _DaisyUseMapText
text_end
BluesHouseDaisyWalkingText:
text_far _BluesHouseDaisyWalkingText
text_end
BluesHouseTownMapText:
text_far _BluesHouseTownMapText
text_end
|