blob: 5929b6235be151317d94e13a2fbb31a4adfe3dbb (
plain) (
blame)
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
|
Route16FlyHouse_Script:
jp EnableAutoTextBoxDrawing
Route16FlyHouse_TextPointers:
def_text_pointers
dw_const Route16FlyHouseBrunetteGirlText, TEXT_ROUTE16FLYHOUSE_BRUNETTE_GIRL
dw_const Route16FlyHouseFearowText, TEXT_ROUTE16FLYHOUSE_FEAROW
Route16FlyHouseBrunetteGirlText:
text_asm
CheckEvent EVENT_GOT_HM02
ld hl, .HM02ExplanationText
jr nz, .got_item
ld hl, .Text
call PrintText
lb bc, HM_FLY, 1
call GiveItem
jr nc, .bag_full
SetEvent EVENT_GOT_HM02
ld hl, .ReceivedHM02Text
jr .got_item
.bag_full
ld hl, .HM02NoRoomText
.got_item
call PrintText
jp TextScriptEnd
.Text:
text_far _Route16FlyHouseBrunetteGirlText
text_end
.ReceivedHM02Text:
text_far _Route16FlyHouseBrunetteGirlReceivedHM02Text
sound_get_key_item
text_end
.HM02ExplanationText:
text_far _Route16FlyHouseBrunetteGirlHM02ExplanationText
text_end
.HM02NoRoomText:
text_far _Route16FlyHouseBrunetteGirlHM02NoRoomText
text_end
Route16FlyHouseFearowText:
text_asm
ld hl, .Text
call PrintText
ld a, FEAROW
call PlayCry
call WaitForSoundToFinish
jp TextScriptEnd
.Text:
text_far _Route16FlyHouseFearowText
text_end
|