summaryrefslogtreecommitdiff
path: root/data/scripts/maps/Route118.inc
blob: 42c3d6d573a421cfbd570cd67ea0b5dd52b2439b (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
Route118_MapScripts:: @ 81F3DBC
	map_script 3, Route118_MapScript1_1F3DCC
	map_script 1, Route118_MapScript1_1F3DF3
	map_script 2, Route118_MapScript2_1F3E0A
	.byte 0

Route118_MapScript1_1F3DCC: @ 81F3DCC
	call Route118_EventScript_28CCC7
	compare_var_to_value VAR_0x4039, 1
	call_if 1, Route118_EventScript_273D13
	compare_var_to_value VAR_0x4037, 7
	call_if 1, Route118_EventScript_273D1B
	compare_var_to_value VAR_0x4037, 8
	call_if 1, Route118_EventScript_273D1B
	end

Route118_MapScript1_1F3DF3: @ 81F3DF3
	compare_var_to_value VAR_0x4037, 7
	call_if 1, Route118_EventScript_273985
	compare_var_to_value VAR_0x4037, 8
	call_if 1, Route118_EventScript_273998
	end

Route118_MapScript2_1F3E0A: @ 81F3E0A
	map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
	.2byte 0

Route118_EventScript_1F3E14:: @ 81F3E14
	lock
	faceplayer
	checkflag FLAG_0x0E3
	goto_eq Route118_EventScript_1F3E69
	msgbox Route118_Text_1F427B, 5
	compare_var_to_value VAR_RESULT, 1
	goto_eq Route118_EventScript_1F3E3E
	compare_var_to_value VAR_RESULT, 0
	goto_eq Route118_EventScript_1F3E5F
	end

Route118_EventScript_1F3E3E:: @ 81F3E3E
	msgbox Route118_Text_1F42AF, 4
	giveitem_std ITEM_GOOD_ROD
	setflag FLAG_0x0E3
	msgbox Route118_Text_1F42E7, 4
	release
	end

Route118_EventScript_1F3E5F:: @ 81F3E5F
	msgbox Route118_Text_1F4319, 4
	release
	end

Route118_EventScript_1F3E69:: @ 81F3E69
	msgbox Route118_Text_1F4331, 4
	release
	end

Route118_EventScript_1F3E73:: @ 81F3E73
	msgbox Route118_Text_1F4367, 2
	end

Route118_EventScript_1F3E7C:: @ 81F3E7C
	msgbox Route118_Text_1F43F4, 3
	end

Route118_EventScript_1F3E85:: @ 81F3E85
	msgbox Route118_Text_1F440E, 3
	end

Route118_EventScript_1F3E8E:: @ 81F3E8E
	lockall
	setvar VAR_0x8008, 0
	applymovement 255, Route118_Movement_2725B2
	waitmovement 0
	applymovement 19, Route118_Movement_1F3F61
	waitmovement 0
	goto Route118_EventScript_1F3EE4
	end

Route118_EventScript_1F3EAE:: @ 81F3EAE
	lockall
	setvar VAR_0x8008, 1
	applymovement 255, Route118_Movement_2725B2
	waitmovement 0
	goto Route118_EventScript_1F3EE4
	end

Route118_EventScript_1F3EC4:: @ 81F3EC4
	lockall
	setvar VAR_0x8008, 2
	applymovement 255, Route118_Movement_2725B2
	waitmovement 0
	applymovement 19, Route118_Movement_1F3F63
	waitmovement 0
	goto Route118_EventScript_1F3EE4
	end

Route118_EventScript_1F3EE4:: @ 81F3EE4
	playse SE_DANSA
	applymovement 19, Route118_Movement_1F3F65
	waitmovement 0
	delay 30
	msgbox Route118_Text_1F40BE, 4
	closemessage
	compare_var_to_value VAR_0x8008, 0
	call_if 1, Route118_EventScript_1F3F28
	compare_var_to_value VAR_0x8008, 1
	call_if 1, Route118_EventScript_1F3F3A
	compare_var_to_value VAR_0x8008, 2
	call_if 1, Route118_EventScript_1F3F4C
	setvar VAR_0x4071, 1
	removeobject 19
	releaseall
	end

Route118_EventScript_1F3F28:: @ 81F3F28
	applymovement 255, Route118_Movement_1F3F5E
	applymovement 19, Route118_Movement_1F3F69
	waitmovement 0
	return

Route118_EventScript_1F3F3A:: @ 81F3F3A
	applymovement 255, Route118_Movement_1F3F5E
	applymovement 19, Route118_Movement_1F3F74
	waitmovement 0
	return

Route118_EventScript_1F3F4C:: @ 81F3F4C
	applymovement 255, Route118_Movement_1F3F5E
	applymovement 19, Route118_Movement_1F3F7E
	waitmovement 0
	return

Route118_Movement_1F3F5E: @ 81F3F5E
	step_14
	step_28
	step_end

Route118_Movement_1F3F61: @ 81F3F61
	step_left
	step_end

Route118_Movement_1F3F63: @ 81F3F63
	step_right
	step_end

Route118_Movement_1F3F65: @ 81F3F65
	fast_step_down
	step_14
	step_down
	step_end

Route118_Movement_1F3F69: @ 81F3F69
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_end

Route118_Movement_1F3F74: @ 81F3F74
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_end

Route118_Movement_1F3F7E: @ 81F3F7E
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_end

Route118_EventScript_1F3F87:: @ 81F3F87
	trainerbattle 2, TRAINER_ROSE_1, 0, Route118_Text_29D290, Route118_Text_29D2D8, Route118_EventScript_1F3FB3
	specialvar VAR_RESULT, sub_80B226C
	compare_var_to_value VAR_RESULT, 1
	goto_eq Route118_EventScript_1F3FD2
	msgbox Route118_Text_29D2FA, 4
	release
	end

Route118_EventScript_1F3FB3:: @ 81F3FB3
	special sub_80B4808
	waitmovement 0
	msgbox Route118_Text_29D343, 4
	setvar VAR_0x8004, 37
	special sub_81D1C20
	setorcopyvar VAR_0x8000, 37
	callstd 8
	release
	end

Route118_EventScript_1F3FD2:: @ 81F3FD2
	trainerbattle 5, TRAINER_ROSE_1, 0, Route118_Text_29D382, Route118_Text_29D3AA
	msgbox Route118_Text_29D3D9, 6
	end

Route118_EventScript_1F3FE9:: @ 81F3FE9
	trainerbattle 0, TRAINER_BARNY, 0, Route118_Text_29D515, Route118_Text_29D55C
	msgbox Route118_Text_29D587, 6
	end

Route118_EventScript_1F4000:: @ 81F4000
	trainerbattle 0, TRAINER_WADE, 0, Route118_Text_29D5DF, Route118_Text_29D64C
	msgbox Route118_Text_29D663, 6
	end

Route118_EventScript_1F4017:: @ 81F4017
	trainerbattle 2, TRAINER_DALTON_1, 0, Route118_Text_29D6AF, Route118_Text_29D6CD, Route118_EventScript_1F4043
	specialvar VAR_RESULT, sub_80B226C
	compare_var_to_value VAR_RESULT, 1
	goto_eq Route118_EventScript_1F4062
	msgbox Route118_Text_29D6D8, 4
	release
	end

Route118_EventScript_1F4043:: @ 81F4043
	special sub_80B4808
	waitmovement 0
	msgbox Route118_Text_29D74A, 4
	setvar VAR_0x8004, 196
	special sub_81D1C20
	setorcopyvar VAR_0x8000, 196
	callstd 8
	release
	end

Route118_EventScript_1F4062:: @ 81F4062
	trainerbattle 5, TRAINER_DALTON_1, 0, Route118_Text_29D789, Route118_Text_29D7CA
	msgbox Route118_Text_29D7D5, 6
	end

Route118_EventScript_1F4079:: @ 81F4079
	trainerbattle 0, TRAINER_PERRY, 0, Route118_Text_29D41D, Route118_Text_29D45B
	msgbox Route118_Text_29D46C, 6
	end

Route118_EventScript_1F4090:: @ 81F4090
	trainerbattle 0, TRAINER_CHESTER, 0, Route118_Text_29D4A6, Route118_Text_29D4C4
	msgbox Route118_Text_29D4DA, 6
	end

Route118_EventScript_1F40A7:: @ 81F40A7
	trainerbattle 0, TRAINER_DEANDRE, 0, Route118_Text_29D81B, Route118_Text_29D83C
	msgbox Route118_Text_29D872, 6
	end

Route118_Text_1F40BE: @ 81F40BE
	.string "STEVEN: Hi, {PLAYER}{KUN}!\p"
	.string "It’s me, STEVEN!\n"
	.string "We met in the cave near DEWFORD.\p"
	.string "Have you met many kinds of POKéMON\n"
	.string "since I last saw you?\p"
	.string "There are many, many kinds of POKéMON\n"
	.string "in this wide world of ours.\p"
	.string "If you wanted to raise only your\n"
	.string "favorites, that’s fine.\p"
	.string "Perhaps you find it more fun to raise\n"
	.string "all sorts of POKéMON.\p"
	.string "As a TRAINER of POKéMON,\n"
	.string "what do you think?\p"
	.string "Of course, it’s not any of my business.\p"
	.string "It would be nice if we were to meet\n"
	.string "again somewhere.$"

Route118_Text_1F427B: @ 81F427B
	.string "Hmm!\n"
	.string "A GOOD ROD is really good!\p"
	.string "Wouldn’t you agree?$"

Route118_Text_1F42AF: @ 81F42AF
	.string "Hmm!\n"
	.string "We’re of identical minds!\p"
	.string "Hmm!\n"
	.string "Take this GOOD ROD!$"

Route118_Text_1F42E7: @ 81F42E7
	.string "Wherever there’s water, try your luck\n"
	.string "at fishing.$"

Route118_Text_1F4319: @ 81F4319
	.string "Don’t you like to fish?$"

Route118_Text_1F4331: @ 81F4331
	.string "Try catching all sorts of POKéMON\n"
	.string "with your GOOD ROD.$"

Route118_Text_1F4367: @ 81F4367
	.string "Even if there isn’t a boat, you can\n"
	.string "cross rivers and the sea if you have\l"
	.string "a POKéMON that knows SURF.\p"
	.string "POKéMON can be counted on to do so\n"
	.string "much!$"

Route118_Text_1F43F4: @ 81F43F4
	.string "ROUTE 118\n"
	.string "{0x7B} MAUVILLE CITY$"

Route118_Text_1F440E: @ 81F440E
	.string "ROUTE 118\n"
	.string "{0x79} ROUTE 119$"