summaryrefslogtreecommitdiff
path: root/maps/UnionCaveB1F.asm
blob: 378a4236e7b7f559f38f4b04b47ecb88dd370462 (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
UnionCaveB1F_MapScriptHeader: ; 0x59fc4
	; trigger count
	db 0

	; callback count
	db 0
; 0x59fc6

TrainerPokemaniacAndrew: ; 0x59fc6
	; bit/flag number
	dw $4e5

	; trainer group && trainer id
	db POKEMANIAC, ANDREW

	; text when seen
	dw PokemaniacAndrewSeenText

	; text when trainer beaten
	dw PokemaniacAndrewBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PokemaniacAndrewScript
; 0x59fd2

PokemaniacAndrewScript: ; 0x59fd2
	talkaftercancel
	loadfont
	2writetext UnknownText_0x5a181
	closetext
	loadmovesprites
	end
; 0x59fda

TrainerPokemaniacCalvin: ; 0x59fda
	; bit/flag number
	dw $4e6

	; trainer group && trainer id
	db POKEMANIAC, CALVIN

	; text when seen
	dw PokemaniacCalvinSeenText

	; text when trainer beaten
	dw PokemaniacCalvinBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw PokemaniacCalvinScript
; 0x59fe6

PokemaniacCalvinScript: ; 0x59fe6
	talkaftercancel
	loadfont
	2writetext UnknownText_0x5a230
	closetext
	loadmovesprites
	end
; 0x59fee

TrainerHikerPhillip: ; 0x59fee
	; bit/flag number
	dw $526

	; trainer group && trainer id
	db HIKER, PHILLIP

	; text when seen
	dw HikerPhillipSeenText

	; text when trainer beaten
	dw HikerPhillipBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw HikerPhillipScript
; 0x59ffa

HikerPhillipScript: ; 0x59ffa
	talkaftercancel
	loadfont
	2writetext UnknownText_0x5a073
	closetext
	loadmovesprites
	end
; 0x5a002

TrainerHikerLeonard: ; 0x5a002
	; bit/flag number
	dw $527

	; trainer group && trainer id
	db HIKER, LEONARD

	; text when seen
	dw HikerLeonardSeenText

	; text when trainer beaten
	dw HikerLeonardBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw HikerLeonardScript
; 0x5a00e

HikerLeonardScript: ; 0x5a00e
	talkaftercancel
	loadfont
	2writetext UnknownText_0x5a0fb
	closetext
	loadmovesprites
	end
; 0x5a016

ItemFragment_0x5a016: ; 0x5a016
	db TM_39, 1
; 0x5a018

ItemFragment_0x5a018: ; 0x5a018
	db X_DEFEND, 1
; 0x5a01a

BoulderScript_0x5a01a: ; 0x5a01a
	jumpstd $000e
; 0x5a01d

HikerPhillipSeenText: ; 0x5a01d
	text "It's been a while"
	line "since I last saw"
	cont "another person."

	para "Don't be shy."
	line "Let's battle!"
	done
; 0x5a06a

HikerPhillipBeatenText: ; 0x5a06a
	text "Uurggh…"
	done
; 0x5a073

UnknownText_0x5a073: ; 0x5a073
	text "I've been lost for"
	line "a long time…"

	para "I don't mind it"
	line "here, but I am"
	cont "soooo hungry!"
	done
; 0x5a0bf

HikerLeonardSeenText: ; 0x5a0bf
	text "What do you know!"
	line "A visitor!"
	done
; 0x5a0dd

HikerLeonardBeatenText: ; 0x5a0dd
	text "Wahahah! You're a"
	line "feisty one!"
	done
; 0x5a0fb

UnknownText_0x5a0fb: ; 0x5a0fb
	text "I live down here."

	para "You can, too, if"
	line "you'd like."

	para "There's plenty of"
	line "room, you see."
	done
; 0x5a14a

PokemaniacAndrewSeenText: ; 0x5a14a
	text "Who's there?"

	para "Leave me and my"
	line "#MON alone!"
	done
; 0x5a173

PokemaniacAndrewBeatenText: ; 0x5a173
	text "Go…"
	line "Go away!"
	done
; 0x5a181

UnknownText_0x5a181: ; 0x5a181
	text "Just me and my"
	line "#MON. I'm de-"
	cont "lirious with joy."
	done
; 0x5a1b0

PokemaniacCalvinSeenText: ; 0x5a1b0
	text "I came all the way"
	line "here to conduct my"
	cont "#MON research."

	para "Let me demonstrate"
	line "my findings in a"
	cont "real battle!"
	done
; 0x5a217

PokemaniacCalvinBeatenText: ; 0x5a217
	text "You demonstrated"
	line "on me!"
	done
; 0x5a230

UnknownText_0x5a230: ; 0x5a230
	text "I should compile"
	line "and announce my"
	cont "study findings."

	para "I might even be-"
	line "come famous like"
	cont "PROF.ELM."
	done
; 0x5a28e

UnionCaveB1F_MapEventHeader: ; 0x5a28e
	; filler
	db 0, 0

	; warps
	db 5
	warp_def $3, $3, 7, GROUP_RUINS_OF_ALPH_OUTSIDE, MAP_RUINS_OF_ALPH_OUTSIDE
	warp_def $b, $3, 8, GROUP_RUINS_OF_ALPH_OUTSIDE, MAP_RUINS_OF_ALPH_OUTSIDE
	warp_def $13, $7, 1, GROUP_UNION_CAVE_1F, MAP_UNION_CAVE_1F
	warp_def $21, $3, 2, GROUP_UNION_CAVE_1F, MAP_UNION_CAVE_1F
	warp_def $1f, $11, 1, GROUP_UNION_CAVE_B2F, MAP_UNION_CAVE_B2F

	; xy triggers
	db 0

	; signposts
	db 0

	; people-events
	db 7
	person_event SPRITE_POKEFAN_M, 8, 13, $a, $0, 255, 255, $b2, 3, TrainerHikerPhillip, $ffff
	person_event SPRITE_POKEFAN_M, 11, 20, $6, $0, 255, 255, $b2, 3, TrainerHikerLeonard, $ffff
	person_event SPRITE_SUPER_NERD, 36, 9, $8, $0, 255, 255, $92, 3, TrainerPokemaniacAndrew, $ffff
	person_event SPRITE_SUPER_NERD, 34, 21, $8, $0, 255, 255, $92, 3, TrainerPokemaniacCalvin, $ffff
	person_event SPRITE_POKE_BALL, 20, 6, $1, $0, 255, 255, $1, 0, ItemFragment_0x5a016, $065e
	person_event SPRITE_BOULDER, 14, 11, $19, $0, 255, 255, $0, 0, BoulderScript_0x5a01a, $ffff
	person_event SPRITE_POKE_BALL, 27, 21, $1, $0, 255, 255, $1, 0, ItemFragment_0x5a018, $065f
; 0x5a308