summaryrefslogtreecommitdiff
path: root/maps/NewBarkTown.asm
blob: 2f2ebc0a18854eca404870b0c5818ce3a3733b1c (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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
NewBarkTown_MapScriptHeader: ; 0x1a8000
	; trigger count
	db 2

	; triggers
	dw UnknownScript_0x1a800d, $0000
	dw UnknownScript_0x1a800e, $0000

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x1a800f
; 0x1a800d

UnknownScript_0x1a800d: ; 0x1a800d
	end
; 0x1a800e

UnknownScript_0x1a800e: ; 0x1a800e
	end
; 0x1a800f

UnknownScript_0x1a800f: ; 0x1a800f
	setflag $0041
	clearevent $0076
	return
; 0x1a8016

UnknownScript_0x1a8016: ; 0x1a8016
	playmusic $004e
	spriteface $2, $2
	loadfont
	2writetext UnknownText_0x1a8134
	closetext
	loadmovesprites
	spriteface $0, $3
	applymovement $2, MovementData_0x1a80d4
	loadfont
	2writetext UnknownText_0x1a813e
	closetext
	loadmovesprites
	follow $2, $0
	applymovement $2, MovementData_0x1a80e0
	stopfollow
	loadfont
	2writetext UnknownText_0x1a815e
	closetext
	loadmovesprites
	special $003d
	end
; 0x1a8041

UnknownScript_0x1a8041: ; 0x1a8041
	playmusic $004e
	spriteface $2, $2
	loadfont
	2writetext UnknownText_0x1a8134
	closetext
	loadmovesprites
	spriteface $0, $3
	applymovement $2, MovementData_0x1a80d9
	spriteface $0, $1
	loadfont
	2writetext UnknownText_0x1a813e
	closetext
	loadmovesprites
	follow $2, $0
	applymovement $2, MovementData_0x1a80e6
	stopfollow
	loadfont
	2writetext UnknownText_0x1a815e
	closetext
	loadmovesprites
	special $003d
	end
; 0x1a806f

TeacherScript_0x1a806f: ; 0x1a806f
	faceplayer
	loadfont
	checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
	iftrue UnknownScript_0x1a8095
	checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
	iftrue UnknownScript_0x1a808f
	checkevent EVENT_GOT_A_POKEMON_FROM_ELM
	iftrue UnknownScript_0x1a8089
	2writetext UnknownText_0x1a80f7
	closetext
	loadmovesprites
	end
; 0x1a8089

UnknownScript_0x1a8089: ; 0x1a8089
	2writetext UnknownText_0x1a81c4
	closetext
	loadmovesprites
	end
; 0x1a808f

UnknownScript_0x1a808f: ; 0x1a808f
	2writetext UnknownText_0x1a81f2
	closetext
	loadmovesprites
	end
; 0x1a8095

UnknownScript_0x1a8095: ; 0x1a8095
	2writetext UnknownText_0x1a8236
	closetext
	loadmovesprites
	end
; 0x1a809b

FisherScript_0x1a809b: ; 0x1a809b
	jumptextfaceplayer UnknownText_0x1a8274
; 0x1a809e

SilverScript_0x1a809e: ; 0x1a809e
	loadfont
	2writetext UnknownText_0x1a82a6
	closetext
	loadmovesprites
	spriteface $4, $2
	loadfont
	2writetext UnknownText_0x1a82cd
	closetext
	loadmovesprites
	follow $0, $4
	applymovement $0, MovementData_0x1a80ed
	stopfollow
	pause 5
	spriteface $4, $0
	pause 5
	playsound $0041
	applymovement $0, MovementData_0x1a80f0
	applymovement $4, MovementData_0x1a80f5
	end
; 0x1a80c8

MapNewBarkTownSignpost0Script: ; 0x1a80c8
	jumptext UnknownText_0x1a82e8
; 0x1a80cb

MapNewBarkTownSignpost1Script: ; 0x1a80cb
	jumptext UnknownText_0x1a8328
; 0x1a80ce

MapNewBarkTownSignpost2Script: ; 0x1a80ce
	jumptext UnknownText_0x1a8332
; 0x1a80d1

MapNewBarkTownSignpost3Script: ; 0x1a80d1
	jumptext UnknownText_0x1a8340
; 0x1a80d4

MovementData_0x1a80d4: ; 0x1a80d4
	step_left
	step_left
	step_left
	step_left
	step_end
; 0x1a80d9

MovementData_0x1a80d9: ; 0x1a80d9
	step_left
	step_left
	step_left
	step_left
	step_left
	turn_head_down
	step_end
; 0x1a80e0

MovementData_0x1a80e0: ; 0x1a80e0
	step_right
	step_right
	step_right
	step_right
	turn_head_left
	step_end
; 0x1a80e6

MovementData_0x1a80e6: ; 0x1a80e6
	step_right
	step_right
	step_right
	step_right
	step_right
	turn_head_left
	step_end
; 0x1a80ed

MovementData_0x1a80ed: ; 0x1a80ed
	turn_head_up
	step_down
	step_end
; 0x1a80f0

MovementData_0x1a80f0: ; 0x1a80f0
	turn_head_up
	fix_facing
	jump_step_down
	remove_fixed_facing
	step_end
; 0x1a80f5

MovementData_0x1a80f5: ; 0x1a80f5
	step_right
	step_end
; 0x1a80f7

UnknownText_0x1a80f7: ; 0x1a80f7
	text "Wow, your #GEAR"
	line "is impressive!"

	para "Did your mom get"
	line "it for you?"
	done
; 0x1a8134

UnknownText_0x1a8134: ; 0x1a8134
	text "Wait, ", $14, "!"
	done
; 0x1a813e

UnknownText_0x1a813e: ; 0x1a813e
	text "What do you think"
	line "you're doing?"
	done
; 0x1a815e

UnknownText_0x1a815e: ; 0x1a815e
	text "It's dangerous to"
	line "go out without a"
	cont "#MON!"

	para "Wild #MON"
	line "jump out of the"

	para "grass on the way"
	line "to the next town."
	done
; 0x1a81c4

UnknownText_0x1a81c4: ; 0x1a81c4
	text "Oh! Your #MON"
	line "is adorable!"
	cont "I wish I had one!"
	done
; 0x1a81f2

UnknownText_0x1a81f2: ; 0x1a81f2
	text "Hi, ", $14, "!"
	line "Leaving again?"

	para "You should tell"
	line "your mom if you"
	cont "are leaving."
	done
; 0x1a8236

UnknownText_0x1a8236: ; 0x1a8236
	text "Call your mom on"
	line "your #GEAR to"

	para "let her know how"
	line "you're doing."
	done
; 0x1a8274

UnknownText_0x1a8274: ; 0x1a8274
	text "Yo, ", $52, "!"

	para "I hear PROF.ELM"
	line "discovered some"
	cont "new #MON."
	done
; 0x1a82a6

UnknownText_0x1a82a6: ; 0x1a82a6
	text $56

	para "So this is the"
	line "famous ELM #MON"
	cont "LAB…"
	done
; 0x1a82cd

UnknownText_0x1a82cd: ; 0x1a82cd
	text "…What are you"
	line "staring at?"
	done
; 0x1a82e8

UnknownText_0x1a82e8: ; 0x1a82e8
	text "NEW BARK TOWN"

	para "The Town Where the"
	line "Winds of a New"
	cont "Beginning Blow"
	done
; 0x1a8328

UnknownText_0x1a8328: ; 0x1a8328
	text $52, "'s House"
	done
; 0x1a8332

UnknownText_0x1a8332: ; 0x1a8332
	text "ELM #MON LAB"
	done
; 0x1a8340

UnknownText_0x1a8340: ; 0x1a8340
	text "ELM'S HOUSE"
	done
; 0x1a834d

NewBarkTown_MapEventHeader: ; 0x1a834d
	; filler
	db 0, 0

	; warps
	db 4
	warp_def $3, $6, 1, GROUP_ELMS_LAB, MAP_ELMS_LAB
	warp_def $5, $d, 1, GROUP_KRISS_HOUSE_1F, MAP_KRISS_HOUSE_1F
	warp_def $b, $3, 1, GROUP_KRISS_NEIGHBORS_HOUSE, MAP_KRISS_NEIGHBORS_HOUSE
	warp_def $d, $b, 1, GROUP_ELMS_HOUSE, MAP_ELMS_HOUSE

	; xy triggers
	db 2
	xy_trigger 0, $8, $1, $0, UnknownScript_0x1a8016, $0, $0
	xy_trigger 0, $9, $1, $0, UnknownScript_0x1a8041, $0, $0

	; signposts
	db 4
	signpost 8, 8, $0, MapNewBarkTownSignpost0Script
	signpost 5, 11, $0, MapNewBarkTownSignpost1Script
	signpost 3, 3, $0, MapNewBarkTownSignpost2Script
	signpost 13, 9, $0, MapNewBarkTownSignpost3Script

	; people-events
	db 3
	person_event SPRITE_TEACHER, 12, 10, $3, $1, 255, 255, $0, 0, TeacherScript_0x1a806f, $ffff
	person_event SPRITE_FISHER, 13, 16, $4, $10, 255, 255, $a0, 0, FisherScript_0x1a809b, $ffff
	person_event SPRITE_SILVER, 6, 7, $9, $0, 255, 255, $0, 0, SilverScript_0x1a809e, $06bd
; 0x1a83b2