summaryrefslogtreecommitdiff
path: root/maps/MrPokemonsHouse.asm
blob: a41e4a21d6dea19b967cb31e817b4fa1be18feaf (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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
MrPokemonsHouse_MapScriptHeader: ; 0x196e47
	; trigger count
	db 2

	; triggers
	dw UnknownScript_0x196e51, $0000
	dw UnknownScript_0x196e55, $0000

	; callback count
	db 0
; 0x196e51

UnknownScript_0x196e51: ; 0x196e51
	priorityjump UnknownScript_0x196e56
	end
; 0x196e55

UnknownScript_0x196e55: ; 0x196e55
	end
; 0x196e56

UnknownScript_0x196e56: ; 0x196e56
	showemote $0, $2, 15
	spriteface $2, $0
	loadfont
	2writetext UnknownText_0x196f66
	closetext
	loadmovesprites
	applymovement $0, MovementData_0x196f5a
	loadfont
	2writetext UnknownText_0x196fa8
	keeptextopen
	waitbutton
	giveitem MYSTERY_EGG, $1
	2writetext UnknownText_0x196fd2
	playsound $0091
	waitbutton
	itemnotify
	setevent EVENT_GOT_MYSTERY_EGG_FROM_MR_POKEMON
	blackoutmod GROUP_CHERRYGROVE_CITY, MAP_CHERRYGROVE_CITY
	2writetext UnknownText_0x196feb
	keeptextopen
	spriteface $2, $3
	2writetext UnknownText_0x197092
	keeptextopen
	spriteface $2, $0
	spriteface $3, $2
	2writetext UnknownText_0x1970b7
	closetext
	loadmovesprites
	2jump UnknownScript_0x196ec9
; 0x196e97

GentlemanScript_0x196e97: ; 0x196e97
	faceplayer
	loadfont
	checkitem RED_SCALE
	iftrue UnknownScript_0x196eb0
	checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
	iftrue UnknownScript_0x196eaa
	2writetext UnknownText_0x197134
	closetext
	loadmovesprites
	end
; 0x196eaa

UnknownScript_0x196eaa: ; 0x196eaa
	2writetext UnknownText_0x19714a
	closetext
	loadmovesprites
	end
; 0x196eb0

UnknownScript_0x196eb0: ; 0x196eb0
	2writetext UnknownText_0x197476
	yesorno
	iffalse UnknownScript_0x196ec3
	verbosegiveitem EXP_SHARE, 1
	iffalse UnknownScript_0x196ec7
	takeitem RED_SCALE, 1
	2jump UnknownScript_0x196eaa
; 0x196ec3

UnknownScript_0x196ec3: ; 0x196ec3
	2writetext UnknownText_0x19750d
	closetext
UnknownScript_0x196ec7: ; 0x196ec7
	loadmovesprites
	end
; 0x196ec9

UnknownScript_0x196ec9: ; 0x196ec9
	playmusic $001e
	applymovement $3, MovementData_0x196f5d
	spriteface $0, $3
	loadfont
	2writetext UnknownText_0x197185
	keeptextopen
	waitbutton
	2writetext UnknownText_0x1973cc
	playsound $0001
	waitbutton
	setflag $000b
	2writetext UnknownText_0x1973de
	closetext
	loadmovesprites
	spriteface $0, $0
	applymovement $3, MovementData_0x196f61
	playsound $0023
	disappear $3
	waitbutton
	special $003d
	pause 15
	spriteface $0, $1
	loadfont
	2writetext UnknownText_0x1970ed
	closetext
	loadmovesprites
	special $0030
	special $0033
	playmusic $000d
	special $009d
	special $001b
	pause 60
	special $0032
	special $003d
	loadfont
	2writetext UnknownText_0x197134
	closetext
	loadmovesprites
	setevent $06bd
	setevent $0792
	clearevent $0793
	dotrigger $1
	domaptrigger GROUP_CHERRYGROVE_CITY, MAP_CHERRYGROVE_CITY, $1
	domaptrigger GROUP_ELMS_LAB, MAP_ELMS_LAB, $3
	specialphonecall $2
	clearevent $0702
	checkevent EVENT_GOT_TOTODILE_FROM_ELM
	iftrue UnknownScript_0x196f49
	checkevent EVENT_GOT_CHIKORITA_FROM_ELM
	iftrue UnknownScript_0x196f4d
	setevent $0641
	end
; 0x196f49

UnknownScript_0x196f49: ; 0x196f49
	setevent $0642
	end
; 0x196f4d

UnknownScript_0x196f4d: ; 0x196f4d
	setevent $0640
	end
; 0x196f51

MapMrPokemonsHouseSignpost1Script: ; 0x196f51
	jumptext UnknownText_0x197543
; 0x196f54

MapMrPokemonsHouseSignpost3Script: ; 0x196f54
	jumptext UnknownText_0x197584
; 0x196f57

MapMrPokemonsHouseSignpost4Script: ; 0x196f57
	jumptext UnknownText_0x1975ac
; 0x196f5a

MovementData_0x196f5a: ; 0x196f5a
	step_right
	step_up
	step_end
; 0x196f5d

MovementData_0x196f5d: ; 0x196f5d
	step_down
	step_left
	step_left
	step_end
; 0x196f61

MovementData_0x196f61: ; 0x196f61
	step_down
	step_left
	turn_head_down
	db $3f ; movement
	step_end
; 0x196f66

UnknownText_0x196f66: ; 0x196f66
	text "Hello, hello! You"
	line "must be ", $14, "."

	para "PROF.ELM said that"
	line "you would visit."
	done
; 0x196fa8

UnknownText_0x196fa8: ; 0x196fa8
	text "This is what I"
	line "want PROF.ELM to"
	cont "examine."
	done
; 0x196fd2

UnknownText_0x196fd2: ; 0x196fd2
	text $52, " received"
	line "MYSTERY EGG."
	done
; 0x196feb

UnknownText_0x196feb: ; 0x196feb
	text "I know a couple"
	line "who run a #MON"
	cont "DAY-CARE service."

	para "They gave me that"
	line "EGG."

	para "I was intrigued,"
	line "so I sent mail to"
	cont "PROF.ELM."

	para "For #MON evolu-"
	line "tion, PROF.ELM is"
	cont "the authority."
	done
; 0x197092

UnknownText_0x197092: ; 0x197092
	text "Even PROF.OAK here"
	line "recognizes that."
	done
; 0x1970b7

UnknownText_0x1970b7: ; 0x1970b7
	text "If my assumption"
	line "is correct, PROF."
	cont "ELM will know it."
	done
; 0x1970ed

UnknownText_0x1970ed: ; 0x1970ed
	text "You are returning"
	line "to PROF.ELM?"

	para "Here. Your #MON"
	line "should have some"
	cont "rest."
	done
; 0x197134

UnknownText_0x197134: ; 0x197134
	text "I'm depending on"
	line "you!"
	done
; 0x19714a

UnknownText_0x19714a: ; 0x19714a
	text "Life is delight-"
	line "ful! Always, new"

	para "discoveries to be"
	line "made!"
	done
; 0x197185

UnknownText_0x197185: ; 0x197185
	text "OAK: Aha! So"
	line "you're ", $14, "!"

	para "I'm OAK! A #MON"
	line "researcher."

	para "I was just visit-"
	line "ing my old friend"
	cont "MR.#MON."

	para "I heard you were"
	line "running an errand"

	para "for PROF.ELM, so I"
	line "waited here."

	para "Oh! What's this?"
	line "A rare #MON!"

	para "Let's see…"

	para "Hm, I see!"

	para "I understand why"
	line "PROF.ELM gave you"

	para "a #MON for this"
	line "errand."

	para "To researchers"
	line "like PROF.ELM and"

	para "I, #MON are our"
	line "friends."

	para "He saw that you"
	line "would treat your"

	para "#MON with love"
	line "and care."

	para "…Ah!"

	para "You seem to be"
	line "dependable."

	para "How would you like"
	line "to help me out?"

	para "See? This is the"
	line "latest version of"
	cont "#DEX."

	para "It automatically"
	line "records data on"

	para "#MON you've"
	line "seen or caught."

	para "It's a hi-tech"
	line "encyclopedia!"
	done
; 0x1973cc

UnknownText_0x1973cc: ; 0x1973cc
	text $52, " received"
	line "#DEX!"
	done
; 0x1973de

UnknownText_0x1973de: ; 0x1973de
	text "Go meet many kinds"
	line "of #MON and"

	para "complete that"
	line "#DEX!"

	para "But I've stayed"
	line "too long."

	para "I have to get to"
	line "GOLDENROD for my"
	cont "usual radio show."

	para $14, ", I'm"
	line "counting on you!"
	done
; 0x197476

UnknownText_0x197476: ; 0x197476
	text "Hm? That SCALE!"
	line "What's that?"
	cont "A red GYARADOS?"

	para "That's rare! "
	line "I, I want it…"

	para $14, ", would you"
	line "care to trade it?"

	para "I can offer this"
	line "EXP.SHARE I got"
	cont "from PROF.OAK."
	done
; 0x19750d

UnknownText_0x19750d: ; 0x19750d
	text "That's disappoint-"
	line "ing. That happens"
	cont "to be very rare."
	done
; 0x197543

UnknownText_0x197543: ; 0x197543
	text "It's packed with"
	line "foreign magazines."

	para "Can't even read"
	line "their titles…"
	done
; 0x197584

UnknownText_0x197584: ; 0x197584
	text "It's a big com-"
	line "puter. Hmm. It's"
	cont "broken."
	done
; 0x1975ac

UnknownText_0x1975ac: ; 0x1975ac
	text "A whole pile of"
	line "strange coins!"

	para "Maybe they're from"
	line "another country…"
	done
; 0x1975ef

MrPokemonsHouse_MapEventHeader: ; 0x1975ef
	; filler
	db 0, 0

	; warps
	db 2
	warp_def $7, $2, 2, GROUP_ROUTE_30, MAP_ROUTE_30
	warp_def $7, $3, 2, GROUP_ROUTE_30, MAP_ROUTE_30

	; xy triggers
	db 0

	; signposts
	db 5
	signpost 1, 0, $0, MapMrPokemonsHouseSignpost1Script
	signpost 1, 1, $0, MapMrPokemonsHouseSignpost1Script
	signpost 1, 6, $0, MapMrPokemonsHouseSignpost3Script
	signpost 1, 7, $0, MapMrPokemonsHouseSignpost3Script
	signpost 4, 6, $0, MapMrPokemonsHouseSignpost4Script

	; people-events
	db 2
	person_event SPRITE_GENTLEMAN, 9, 7, $9, $0, 255, 255, $0, 0, GentlemanScript_0x196e97, $ffff
	person_event SPRITE_OAK, 9, 10, $7, $0, 255, 255, $0, 0, ObjectEvent, $06c9
; 0x197632