summaryrefslogtreecommitdiff
path: root/maps/Route2.asm
blob: f9929d677853de2fb60b0616f7d5247bc085c426 (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
Route2_MapScriptHeader:
	; trigger count
	db 0

	; callback count
	db 0

TrainerBug_catcherRob:
	; bit/flag number
	dw EVENT_BEAT_BUG_CATCHER_ROB

	; trainer group && trainer id
	db BUG_CATCHER, ROB

	; text when seen
	dw Bug_catcherRobSeenText

	; text when trainer beaten
	dw Bug_catcherRobBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw Bug_catcherRobScript

Bug_catcherRobScript:
	talkaftercancel
	loadfont
	writetext UnknownText_0x1ac34d
	closetext
	loadmovesprites
	end

TrainerBug_catcherEd:
	; bit/flag number
	dw EVENT_BEAT_BUG_CATCHER_ED

	; trainer group && trainer id
	db BUG_CATCHER, ED

	; text when seen
	dw Bug_catcherEdSeenText

	; text when trainer beaten
	dw Bug_catcherEdBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw Bug_catcherEdScript

Bug_catcherEdScript:
	talkaftercancel
	loadfont
	writetext UnknownText_0x1ac3cf
	closetext
	loadmovesprites
	end

TrainerBug_catcherDoug:
	; bit/flag number
	dw EVENT_BEAT_BUG_CATCHER_DOUG

	; trainer group && trainer id
	db BUG_CATCHER, DOUG

	; text when seen
	dw Bug_catcherDougSeenText

	; text when trainer beaten
	dw Bug_catcherDougBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw Bug_catcherDougScript

Bug_catcherDougScript:
	talkaftercancel
	loadfont
	writetext UnknownText_0x1ac423
	closetext
	loadmovesprites
	end

MapRoute2Signpost0Script:
	jumptext UnknownText_0x1ac47a

MapRoute2Signpost1Script:
	jumptext UnknownText_0x1ac49f

ItemFragment_0x1ac2fe:
	db DIRE_HIT, 1

ItemFragment_0x1ac300:
	db MAX_POTION, 1

ItemFragment_0x1ac302:
	db CARBOS, 1

ItemFragment_0x1ac304:
	db ELIXER, 1

FruitTreeScript_0x1ac306:
	fruittree $19

MapRoute2SignpostItem2:
	dw $00ed
	db MAX_ETHER
	

MapRoute2SignpostItem3:
	dw $00ee
	db FULL_HEAL
	

MapRoute2SignpostItem4:
	dw $00ef
	db FULL_RESTORE
	

MapRoute2SignpostItem5:
	dw $00f0
	db REVIVE
	

Bug_catcherRobSeenText:
	text "My bug #MON are"
	line "tough. Prepare to"
	cont "lose!"
	done

Bug_catcherRobBeatenText:
	text "I was whipped…"
	done

UnknownText_0x1ac34d:
	text "I'm going to look"
	line "for stronger bug"
	cont "#MON."
	done

Bug_catcherEdSeenText:
	text "If you walk in"
	line "tall grass wearing"

	para "shorts, do you get"
	line "nicks and cuts?"
	done

Bug_catcherEdBeatenText:
	text "Ouch, ouch, ouch!"
	done

UnknownText_0x1ac3cf:
	text "They'll really"
	line "sting when you"
	cont "take a bath."
	done

Bug_catcherDougSeenText:
	text "Why don't girls"
	line "like bug #MON?"
	done

Bug_catcherDougBeatenText:
	text "No good!"
	done

UnknownText_0x1ac423:
	text "Bug #MON squish"
	line "like plush toys"

	para "when you squeeze"
	line "their bellies."

	para "I love how they"
	line "feel!"
	done

UnknownText_0x1ac47a:
	text "ROUTE 2"

	para "VIRIDIAN CITY -"
	line "PEWTER CITY"
	done

UnknownText_0x1ac49f:
	text "DIGLETT'S CAVE"
	done

Route2_MapEventHeader:
	; filler
	db 0, 0

	; warps
	db 5
	warp_def $f, $f, 1, GROUP_ROUTE_2_NUGGET_SPEECH_HOUSE, MAP_ROUTE_2_NUGGET_SPEECH_HOUSE
	warp_def $1f, $f, 3, GROUP_ROUTE_2_GATE, MAP_ROUTE_2_GATE
	warp_def $1b, $10, 1, GROUP_ROUTE_2_GATE, MAP_ROUTE_2_GATE
	warp_def $1b, $11, 2, GROUP_ROUTE_2_GATE, MAP_ROUTE_2_GATE
	warp_def $7, $c, 3, GROUP_DIGLETTS_CAVE, MAP_DIGLETTS_CAVE

	; xy triggers
	db 0

	; signposts
	db 6
	signpost 51, 7, SIGNPOST_READ, MapRoute2Signpost0Script
	signpost 9, 11, SIGNPOST_READ, MapRoute2Signpost1Script
	signpost 23, 7, SIGNPOST_ITEMIFSET, MapRoute2SignpostItem2
	signpost 14, 4, SIGNPOST_ITEMIFSET, MapRoute2SignpostItem3
	signpost 27, 4, SIGNPOST_ITEMIFSET, MapRoute2SignpostItem4
	signpost 30, 11, SIGNPOST_ITEMIFSET, MapRoute2SignpostItem5

	; people-events
	db 8
	person_event SPRITE_BUG_CATCHER, 49, 14, LEFT << 2 | $0, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 5, TrainerBug_catcherRob, -1
	person_event SPRITE_BUG_CATCHER, 8, 10, RIGHT << 2 | $13, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 3, TrainerBug_catcherEd, -1
	person_event SPRITE_BUG_CATCHER, 44, 4, LEFT << 2 | $1, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 3, TrainerBug_catcherDoug, -1
	person_event SPRITE_POKE_BALL, 33, 4, DOWN << 2 | $1, $0, -1, -1, $1, 0, ItemFragment_0x1ac2fe, EVENT_783
	person_event SPRITE_POKE_BALL, 27, 6, DOWN << 2 | $1, $0, -1, -1, $1, 0, ItemFragment_0x1ac300, EVENT_784
	person_event SPRITE_POKE_BALL, 6, 23, DOWN << 2 | $1, $0, -1, -1, $1, 0, ItemFragment_0x1ac302, EVENT_785
	person_event SPRITE_POKE_BALL, 54, 18, DOWN << 2 | $1, $0, -1, -1, $1, 0, ItemFragment_0x1ac304, EVENT_786
	person_event SPRITE_FRUIT_TREE, 18, 14, DOWN << 2 | $1, $0, -1, -1, $0, 0, FruitTreeScript_0x1ac306, -1