summaryrefslogtreecommitdiff
path: root/data/scripts/maps/MauvilleCity.inc
blob: 1b2827f2a20f6201d24b2a784ce2761d7aa2e1b7 (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
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
MauvilleCity_MapScripts:: @ 814C032
	map_script 3, MauvilleCity_MapScript1_14C038
	.byte 0

MauvilleCity_MapScript1_14C038:: @ 814C038
	setflag 2072
	clearflag 961
	setflag 2098
	clearflag 99
	setvar 0x4093, 0
	checkflag 209
	callif 1, MauvilleCity_EventScript_14C053
	end

MauvilleCity_EventScript_14C053:: @ 814C053
	clearflag 913
	setflag 912
	return

MauvilleCity_EventScript_14C05A:: @ 814C05A
	msgbox MauvilleCity_Text_1664DF, 2
	end

MauvilleCity_EventScript_14C063:: @ 814C063
	msgbox MauvilleCity_Text_16655C, 2
	end

MauvilleCity_EventScript_14C06C:: @ 814C06C
	msgbox MauvilleCity_Text_1665DB, 2
	end

MauvilleCity_EventScript_14C075:: @ 814C075
	msgbox MauvilleCity_Text_16662A, 2
	end

MauvilleCity_EventScript_14C07E:: @ 814C07E
	msgbox MauvilleCity_Text_166665, 3
	end

MauvilleCity_EventScript_14C087:: @ 814C087
	msgbox MauvilleCity_Text_166697, 3
	end

MauvilleCity_EventScript_14C090:: @ 814C090
	msgbox MauvilleCity_Text_1666E4, 3
	end

MauvilleCity_EventScript_14C099:: @ 814C099
	msgbox MauvilleCity_Text_16671C, 3
	end

MauvilleCity_EventScript_14C0A2:: @ 814C0A2
	lock
	faceplayer
	checkflag 98
	jumpeq MauvilleCity_EventScript_14C0BA
	msgbox MauvilleCity_Text_16674A, 4
	setflag 98
	release
	end

MauvilleCity_EventScript_14C0BA:: @ 814C0BA
	msgbox MauvilleCity_Text_166879, 4
	release
	end

MauvilleCity_EventScript_14C0C4:: @ 814C0C4
	lock
	faceplayer
	checkflag 284
	jumpeq MauvilleCity_EventScript_14C0E4
	msgbox MauvilleCity_Text_165B76, 4
	closebutton
	move 7, MauvilleCity_Movement_1A083D
	waitmove 0
	release
	end

MauvilleCity_EventScript_14C0E4:: @ 814C0E4
	msgbox MauvilleCity_Text_165E45, 4
	closebutton
	move 7, MauvilleCity_Movement_1A083D
	waitmove 0
	release
	end

MauvilleCity_EventScript_14C0F9:: @ 814C0F9
	lockall
	checkflag 284
	jumpeq MauvilleCity_EventScript_14C292
	move 6, MauvilleCity_Movement_1A0843
	waitmove 0
	msgbox MauvilleCity_Text_165BE3, 4
	msgbox MauvilleCity_Text_165C57, 4
	msgbox MauvilleCity_Text_165D01, 4
	move 6, MauvilleCity_Movement_1A0839
	waitmove 0
	playsfx 21
	move 6, MauvilleCity_Movement_1A0833
	waitmove 0
	move 6, MauvilleCity_Movement_1A0835
	waitmove 0
	msgbox MauvilleCity_Text_165D50, 5
	jump MauvilleCity_EventScript_14C154
	end

MauvilleCity_EventScript_14C154:: @ 814C154
	compare RESULT, 1
	callif 1, MauvilleCity_EventScript_14C23C
	compare RESULT, 0
	jumpeq MauvilleCity_EventScript_14C285
	closebutton
	switch FACING
	case 2, MauvilleCity_EventScript_14C187
	case 4, MauvilleCity_EventScript_14C1D9
	end

MauvilleCity_EventScript_14C187:: @ 814C187
	move 6, MauvilleCity_Movement_14C2AA
	move 7, MauvilleCity_Movement_14C2CC
	waitmove 0
	move 6, MauvilleCity_Movement_1A0843
	waitmove 0
	pause 30
	move 7, MauvilleCity_Movement_14C2D8
	waitmove 0
	move 255, MauvilleCity_Movement_1A0845
	waitmove 0
	msgbox MauvilleCity_Text_1660FA, 4
	closebutton
	move 6, MauvilleCity_Movement_14C2B6
	move 7, MauvilleCity_Movement_14C2DF
	waitmove 0
	jump MauvilleCity_EventScript_14C22B
	end

MauvilleCity_EventScript_14C1D9:: @ 814C1D9
	move 6, MauvilleCity_Movement_14C2B0
	move 7, MauvilleCity_Movement_14C2D2
	waitmove 0
	move 6, MauvilleCity_Movement_1A0843
	waitmove 0
	pause 30
	move 7, MauvilleCity_Movement_14C2DC
	waitmove 0
	move 255, MauvilleCity_Movement_1A0845
	waitmove 0
	msgbox MauvilleCity_Text_1660FA, 4
	closebutton
	move 6, MauvilleCity_Movement_14C2C1
	move 7, MauvilleCity_Movement_14C2E8
	waitmove 0
	jump MauvilleCity_EventScript_14C22B
	end

MauvilleCity_EventScript_14C22B:: @ 814C22B
	disappear 6
	disappear 7
	clearflag 806
	clearflag 809
	setflag 190
	releaseall
	end

MauvilleCity_EventScript_14C23C:: @ 814C23C
	msgbox MauvilleCity_Text_165F0D, 4
	trainerbattle 3, OPPONENT_WALLY_2, 0, MauvilleCity_Text_165F38
	move 6, MauvilleCity_Movement_1A0843
	waitmove 0
	msgbox MauvilleCity_Text_165F85, 4
	move 6, MauvilleCity_Movement_1A0839
	waitmove 0
	msgbox MauvilleCity_Text_165FB3, 4
	move 6, MauvilleCity_Movement_1A0843
	waitmove 0
	msgbox MauvilleCity_Text_166050, 4
	return

MauvilleCity_EventScript_14C285:: @ 814C285
	setflag 284
	msgbox MauvilleCity_Text_165DE8, 4
	release
	end

MauvilleCity_EventScript_14C292:: @ 814C292
	move 6, MauvilleCity_Movement_1A0839
	waitmove 0
	msgbox MauvilleCity_Text_165EE2, 5
	jump MauvilleCity_EventScript_14C154
	end

MauvilleCity_Movement_14C2AA:: @ 814C2AA
	step_left
	step_left
	step_down
	step_down
	step_left
	step_end

MauvilleCity_Movement_14C2B0:: @ 814C2B0
	step_down
	step_down
	step_left
	step_left
	step_left
	step_end

MauvilleCity_Movement_14C2B6:: @ 814C2B6
	step_14
	step_14
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end

MauvilleCity_Movement_14C2C1:: @ 814C2C1
	step_14
	step_14
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end

MauvilleCity_Movement_14C2CC:: @ 814C2CC
	step_left
	step_left
	step_left
	step_down
	step_down
	step_end

MauvilleCity_Movement_14C2D2:: @ 814C2D2
	step_left
	step_down
	step_down
	step_left
	step_left
	step_end

MauvilleCity_Movement_14C2D8:: @ 814C2D8
	step_right
	step_right
	step_26
	step_end

MauvilleCity_Movement_14C2DC:: @ 814C2DC
	step_right
	step_up
	step_end

MauvilleCity_Movement_14C2DF:: @ 814C2DF
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end

MauvilleCity_Movement_14C2E8:: @ 814C2E8
	step_down
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end

MauvilleCity_EventScript_14C2F2:: @ 814C2F2
	lock
	faceplayer
	checkflag 209
	jumpeq MauvilleCity_EventScript_14C368
	compare 0x40ba, 2
	jumpeq MauvilleCity_EventScript_14C33C
	checkflag 208
	jumpeq MauvilleCity_EventScript_14C332
	msgbox MauvilleCity_Text_1661C1, 4
	giveitem ITEM_BASEMENT_KEY
	setflag 208
	msgbox MauvilleCity_Text_166331, 4
	release
	end

MauvilleCity_EventScript_14C332:: @ 814C332
	msgbox MauvilleCity_Text_166331, 4
	release
	end

MauvilleCity_EventScript_14C33C:: @ 814C33C
	msgbox MauvilleCity_Text_1663EB, 4
	giveitem ITEM_TM24
	compare RESULT, 0
	jumpeq MauvilleCity_EventScript_1A029B
	setflag 209
	msgbox MauvilleCity_Text_166488, 4
	release
	end

MauvilleCity_EventScript_14C368:: @ 814C368
	msgbox MauvilleCity_Text_166488, 4
	release
	end