This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
celadoncity.asm
132 lines (110 loc) · 1.98 KB
/
celadoncity.asm
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
CeladonCityScript:
call EnableAutoTextBoxDrawing
ResetEvents EVENT_1B8, EVENT_1BF
ResetEvent EVENT_67F
ret
CeladonCityTextPointers:
dw CeladonCityText1
dw CeladonCityText2
dw CeladonCityText3
dw CeladonCityText4
dw CeladonCityText5
dw CeladonCityText6
dw CeladonCityText7
dw CeladonCityText8
dw CeladonCityText9
dw CeladonCityText10
dw CeladonCityText11
dw PokeCenterSignText
dw CeladonCityText13
dw CeladonCityText14
dw CeladonCityText15
dw CeladonCityText16
dw CeladonCityText17
dw CeladonCityText18
CeladonCityText1:
TX_FAR _CeladonCityText1
db "@"
CeladonCityText2:
TX_FAR _CeladonCityText2
db "@"
CeladonCityText3:
TX_FAR _CeladonCityText3
db "@"
CeladonCityText4:
TX_FAR _CeladonCityText4
db "@"
CeladonCityText5:
TX_ASM
CheckEvent EVENT_GOT_TM41
jr nz, .asm_7053f
ld hl, TM41PreText
call PrintText
lb bc, TM_41, 1
call GiveItem
jr c, .Success
ld hl, TM41NoRoomText
call PrintText
jr .Done
.Success
ld hl, ReceivedTM41Text
call PrintText
SetEvent EVENT_GOT_TM41
jr .Done
.asm_7053f
ld hl, TM41ExplanationText
call PrintText
.Done
jp TextScriptEnd
TM41PreText:
TX_FAR _TM41PreText
db "@"
ReceivedTM41Text:
TX_FAR _ReceivedTM41Text
TX_SFX_ITEM_1
db "@"
TM41ExplanationText:
TX_FAR _TM41ExplanationText
db "@"
TM41NoRoomText:
TX_FAR _TM41NoRoomText
db "@"
CeladonCityText6:
TX_FAR _CeladonCityText6
db "@"
CeladonCityText7:
TX_FAR _CeladonCityText7
TX_ASM
ld a, POLIWRATH
call PlayCry
jp TextScriptEnd
CeladonCityText8:
TX_FAR _CeladonCityText8
db "@"
CeladonCityText9:
TX_FAR _CeladonCityText9
db "@"
CeladonCityText10:
TX_FAR _CeladonCityText10
db "@"
CeladonCityText11:
TX_FAR _CeladonCityText11
db "@"
CeladonCityText13:
TX_FAR _CeladonCityText13
db "@"
CeladonCityText14:
TX_FAR _CeladonCityText14
db "@"
CeladonCityText15:
TX_FAR _CeladonCityText15
db "@"
CeladonCityText16:
TX_FAR _CeladonCityText16
db "@"
CeladonCityText17:
TX_FAR _CeladonCityText17
db "@"
CeladonCityText18:
TX_FAR _CeladonCityText18
db "@"