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
/
mtmoon1.asm
224 lines (185 loc) · 4.79 KB
/
mtmoon1.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
MtMoon1Script:
call EnableAutoTextBoxDrawing
ld hl, MtMoon1TrainerHeader0
ld de, MtMoon1ScriptPointers
ld a, [wMtMoon1CurScript]
call ExecuteCurMapScriptInTable
ld [wMtMoon1CurScript], a
ret
MtMoon1ScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBattle
dw EndTrainerBattle
MtMoon1TextPointers:
dw MtMoon1Text1
dw MtMoon1Text2
dw MtMoon1Text3
dw MtMoon1Text4
dw MtMoon1Text5
dw MtMoon1Text6
dw MtMoon1Text7
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw MtMoon1Text14
MtMoon1TrainerHeader0:
dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_0
db ($2 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_0
dw MtMoon1BattleText2 ; TextBeforeBattle
dw MtMoon1AfterBattleText2 ; TextAfterBattle
dw MtMoon1EndBattleText2 ; TextEndBattle
dw MtMoon1EndBattleText2 ; TextEndBattle
MtMoon1TrainerHeader1:
dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_1
db ($3 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_1
dw MtMoon1BattleText3 ; TextBeforeBattle
dw MtMoon1AfterBattleText3 ; TextAfterBattle
dw MtMoon1EndBattleText3 ; TextEndBattle
dw MtMoon1EndBattleText3 ; TextEndBattle
MtMoon1TrainerHeader2:
dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_2
db ($3 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_2
dw MtMoon1BattleText4 ; TextBeforeBattle
dw MtMoon1AfterBattleText4 ; TextAfterBattle
dw MtMoon1EndBattleText4 ; TextEndBattle
dw MtMoon1EndBattleText4 ; TextEndBattle
MtMoon1TrainerHeader3:
dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_3
db ($3 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_3
dw MtMoon1BattleText5 ; TextBeforeBattle
dw MtMoon1AfterBattleText5 ; TextAfterBattle
dw MtMoon1EndBattleText5 ; TextEndBattle
dw MtMoon1EndBattleText5 ; TextEndBattle
MtMoon1TrainerHeader4:
dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_4
db ($3 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_4
dw MtMoon1BattleText6 ; TextBeforeBattle
dw MtMoon1AfterBattleText6 ; TextAfterBattle
dw MtMoon1EndBattleText6 ; TextEndBattle
dw MtMoon1EndBattleText6 ; TextEndBattle
MtMoon1TrainerHeader5:
dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_5
db ($3 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_5
dw MtMoon1BattleText7 ; TextBeforeBattle
dw MtMoon1AfterBattleText7 ; TextAfterBattle
dw MtMoon1EndBattleText7 ; TextEndBattle
dw MtMoon1EndBattleText7 ; TextEndBattle
MtMoon1TrainerHeader6:
dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_6
db ($3 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_6
dw MtMoon1BattleText8 ; TextBeforeBattle
dw MtMoon1AfterBattleText8 ; TextAfterBattle
dw MtMoon1EndBattleText8 ; TextEndBattle
dw MtMoon1EndBattleText8 ; TextEndBattle
db $ff
MtMoon1Text1:
TX_ASM
ld hl, MtMoon1TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
MtMoon1Text2:
TX_ASM
ld hl, MtMoon1TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
MtMoon1Text3:
TX_ASM
ld hl, MtMoon1TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
MtMoon1Text4:
TX_ASM
ld hl, MtMoon1TrainerHeader3
call TalkToTrainer
jp TextScriptEnd
MtMoon1Text5:
TX_ASM
ld hl, MtMoon1TrainerHeader4
call TalkToTrainer
jp TextScriptEnd
MtMoon1Text6:
TX_ASM
ld hl, MtMoon1TrainerHeader5
call TalkToTrainer
jp TextScriptEnd
MtMoon1Text7:
TX_ASM
ld hl, MtMoon1TrainerHeader6
call TalkToTrainer
jp TextScriptEnd
MtMoon1BattleText2:
TX_FAR _MtMoon1BattleText2
db "@"
MtMoon1EndBattleText2:
TX_FAR _MtMoon1EndBattleText2
db "@"
MtMoon1AfterBattleText2:
TX_FAR _MtMoon1AfterBattleText2
db "@"
MtMoon1BattleText3:
TX_FAR _MtMoon1BattleText3
db "@"
MtMoon1EndBattleText3:
TX_FAR _MtMoon1EndBattleText3
db "@"
MtMoon1AfterBattleText3:
TX_FAR _MtMoon1AfterBattleText3
db "@"
MtMoon1BattleText4:
TX_FAR _MtMoon1BattleText4
db "@"
MtMoon1EndBattleText4:
TX_FAR _MtMoon1EndBattleText4
db "@"
MtMoon1AfterBattleText4:
TX_FAR _MtMoon1AfterBattleText4
db "@"
MtMoon1BattleText5:
TX_FAR _MtMoon1BattleText5
db "@"
MtMoon1EndBattleText5:
TX_FAR _MtMoon1EndBattleText5
db "@"
MtMoon1AfterBattleText5:
TX_FAR _MtMoon1AfterBattleText5
db "@"
MtMoon1BattleText6:
TX_FAR _MtMoon1BattleText6
db "@"
MtMoon1EndBattleText6:
TX_FAR _MtMoon1EndBattleText6
db "@"
MtMoon1AfterBattleText6:
TX_FAR _MtMoon1AfterBattleText6
db "@"
MtMoon1BattleText7:
TX_FAR _MtMoon1BattleText7
db "@"
MtMoon1EndBattleText7:
TX_FAR _MtMoon1EndBattleText7
db "@"
MtMoon1AfterBattleText7:
TX_FAR _MtMoon1AfterBattleText7
db "@"
MtMoon1BattleText8:
TX_FAR _MtMoon1BattleText8
db "@"
MtMoon1EndBattleText8:
TX_FAR _MtMoon1EndBattleText8
db "@"
MtMoon1AfterBattleText8:
TX_FAR _MtMoon1AfterBattleText8
db "@"
MtMoon1Text14:
TX_FAR _MtMoon1Text14
db "@"