summaryrefslogtreecommitdiff
path: root/data/scripts/maps/Route101.inc
blob: 4d4334acaf9a487099f654e78bcd6a2424a7c64d (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
Route101_MapScripts:: @ 81EBCBA
	map_script 3, Route101_MapScript1_1EBCC5
	map_script 2, Route101_MapScript2_1EBCCB
	.byte 0

Route101_MapScript1_1EBCC5: @ 81EBCC5
	call Route101_EventScript_2720AD
	end

Route101_MapScript2_1EBCCB: @ 81EBCCB
	map_script_2 VAR_0x4060, 0, Route101_EventScript_1EBCD5
	.2byte 0

Route101_EventScript_1EBCD5:: @ 81EBCD5
	setflag FLAG_SPECIAL_FLAG_0x4000
	setvar VAR_0x4060, 1
	end

Route101_EventScript_1EBCDE:: @ 81EBCDE
	lockall
	playbgm MUS_EVENT0, 1
	msgbox Route101_Text_1EBE8F, 4
	closemessage
	setobjectxy 2, 0, 15
	setobjectxy 4, 0, 16
	applymovement 255, Route101_Movement_1EBDC2
	applymovement 2, Route101_Movement_1EBDE7
	applymovement 4, Route101_Movement_1EBDB5
	waitmovement 0
	applymovement 4, Route101_Movement_1EBD96
	applymovement 2, Route101_Movement_1EBDC8
	waitmovement 0
	applymovement 2, Route101_Movement_2725A8
	waitmovement 0
	applymovement 4, Route101_Movement_1EBDBD
	applymovement 2, Route101_Movement_1EBDEF
	waitmovement 0
	msgbox Route101_Text_1EBE9A, 4
	closemessage
	setvar VAR_0x4060, 2
	releaseall
	end

Route101_EventScript_1EBD4E:: @ 81EBD4E
	lockall
	msgbox Route101_Text_1EBEDF, 4
	closemessage
	applymovement 255, Route101_Movement_1EBD90
	waitmovement 0
	releaseall
	end

Route101_EventScript_1EBD64:: @ 81EBD64
	lockall
	msgbox Route101_Text_1EBEDF, 4
	closemessage
	applymovement 255, Route101_Movement_1EBD92
	waitmovement 0
	releaseall
	end

Route101_EventScript_1EBD7A:: @ 81EBD7A
	lockall
	msgbox Route101_Text_1EBEDF, 4
	closemessage
	applymovement 255, Route101_Movement_1EBD94
	waitmovement 0
	releaseall
	end

Route101_Movement_1EBD90: @ 81EBD90
	step_up
	step_end

Route101_Movement_1EBD92: @ 81EBD92
	step_right
	step_end

Route101_Movement_1EBD94: @ 81EBD94
	step_down
	step_end

Route101_Movement_1EBD96: @ 81EBD96
	step_16
	step_16
	step_16
	step_18
	step_18
	step_18
	step_15
	step_15
	step_17
	step_17
	step_17
	step_16
	step_16
	step_18
	step_18
	step_18
	step_15
	step_15
	step_17
	step_17
	step_17
	step_16
	step_16
	step_18
	step_18
	step_18
	step_15
	step_15
	step_17
	step_17
	step_end

Route101_Movement_1EBDB5: @ 81EBDB5
	step_16
	step_18
	step_18
	step_18
	step_18
	step_16
	step_end

Route101_Movement_1EBDBC: @ 81EBDBC
	step_end

Route101_Movement_1EBDBD: @ 81EBDBD
	step_23
	step_23
	step_23
	step_23
	step_end

Route101_Movement_1EBDC2: @ 81EBDC2
	step_16
	step_16
	step_16
	step_16
	step_27
	step_end

Route101_Movement_1EBDC8: @ 81EBDC8
	step_16
	step_16
	step_18
	step_18
	step_18
	step_15
	step_15
	step_17
	step_17
	step_17
	step_16
	step_16
	step_18
	step_18
	step_18
	step_15
	step_15
	step_17
	step_17
	step_17
	step_16
	step_16
	step_18
	step_18
	step_18
	step_15
	step_15
	step_17
	step_17
	step_17
	step_end

Route101_Movement_1EBDE7: @ 81EBDE7
	step_18
	step_18
	step_18
	step_18
	step_16
	step_16
	step_end

Route101_Movement_1EBDEE: @ 81EBDEE
	step_end

Route101_Movement_1EBDEF: @ 81EBDEF
	step_24
	step_24
	step_24
	step_24
	step_end

Route101_Movement_1EBDF4: @ 81EBDF4
	step_up
	step_up
	step_end

Route101_Movement_1EBDF7: @ 81EBDF7
	step_up
	step_left
	step_up
	step_end

Route101_EventScript_1EBDFB:: @ 81EBDFB
	msgbox Route101_Text_1EBFDD, 2
	end

Route101_EventScript_1EBE04:: @ 81EBE04
	msgbox Route101_Text_1EC04A, 2
	end

Route101_EventScript_1EBE0D:: @ 81EBE0D
	msgbox Route101_Text_1EC0C8, 3
	end

Route101_EventScript_1EBE16:: @ 81EBE16
	lock
	faceplayer
	setflag FLAG_SYS_POKEMON_GET
	setflag FLAG_0x052
	fadescreen 1
	removeobject 4
	setobjectxy 255, 6, 13
	applymovement 255, Route101_Movement_2725A4
	waitmovement 0
	special ChooseStarter
	waitstate
	applymovement 2, Route101_Movement_1EBE8D
	waitmovement 0
	msgbox Route101_Text_1EBF12, 4
	special HealPlayerParty
	setflag FLAG_0x2D0
	clearflag FLAG_0x2D1
	setflag FLAG_0x2BC
	setvar VAR_0x4084, 2
	setvar VAR_0x4060, 3
	clearflag FLAG_SPECIAL_FLAG_0x4000
	checkplayergender
	compare VAR_RESULT, 0
	call_if 1, Route101_EventScript_1EBE85
	compare VAR_RESULT, 1
	call_if 1, Route101_EventScript_1EBE89
	warp LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB, 255, 6, 5
	waitstate
	release
	end

Route101_EventScript_1EBE85:: @ 81EBE85
	setflag FLAG_0x2D2
	return

Route101_EventScript_1EBE89:: @ 81EBE89
	setflag FLAG_0x2F8
	return

Route101_Movement_1EBE8D: @ 81EBE8D
	step_right
	step_end

Route101_Text_1EBE8F: @ 81EBE8F
	.string "H-help me!$"

Route101_Text_1EBE9A: @ 81EBE9A
	.string "Hello! You over there!\n"
	.string "Please! Help!\p"
	.string "In my BAG!\n"
	.string "There’s a POKé BALL!$"

Route101_Text_1EBEDF: @ 81EBEDF
	.string "Wh-Where are you going?!\n"
	.string "Don’t leave me like this!$"

Route101_Text_1EBF12: @ 81EBF12
	.string "PROF. BIRCH: Whew…\p"
	.string "I was in the tall grass studying wild\n"
	.string "POKéMON when I was jumped.\p"
	.string "You saved me.\n"
	.string "Thanks a lot!\p"
	.string "Oh?\p"
	.string "Hi, you’re {PLAYER}{KUN}!\p"
	.string "This is not the place to chat, so come\n"
	.string "by my POKéMON LAB later, okay?$"

Route101_Text_1EBFDD: @ 81EBFDD
	.string "If POKéMON get tired, take them to\n"
	.string "a POKéMON CENTER.\p"
	.string "There’s a POKéMON CENTER in OLDALE\n"
	.string "TOWN right close by.$"

Route101_Text_1EC04A: @ 81EC04A
	.string "Wild POKéMON will jump out at you in\n"
	.string "tall grass.\p"
	.string "If you want to catch POKéMON, you have\n"
	.string "to go into the tall grass and search.$"

Route101_Text_1EC0C8: @ 81EC0C8
	.string "ROUTE 101\n"
	.string "{0x79} OLDALE TOWN$"