summaryrefslogtreecommitdiff
path: root/maps/Route43Gate.asm
blob: cf5ea9324abeac4f565a6612f8658820123fcb90 (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
Route43Gate_MapScriptHeader: ; 0x19abb8
	; trigger count
	db 2

	; triggers
	dw UnknownScript_0x19abc5, $0000
	dw UnknownScript_0x19abc9, $0000

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x19abca
; 0x19abc5

UnknownScript_0x19abc5: ; 0x19abc5
	priorityjump UnknownScript_0x19abda
	end
; 0x19abc9

UnknownScript_0x19abc9: ; 0x19abc9
	end
; 0x19abca

UnknownScript_0x19abca: ; 0x19abca
	checkevent EVENT_CLEARED_ROCKET_HIDEOUT
	iftrue UnknownScript_0x19abd5
	domaptrigger GROUP_ROUTE_43, MAP_ROUTE_43, $0
	return
; 0x19abd5

UnknownScript_0x19abd5: ; 0x19abd5
	domaptrigger GROUP_ROUTE_43, MAP_ROUTE_43, $1
	return
; 0x19abda

UnknownScript_0x19abda: ; 0x19abda
	playmusic $0039
	checkcode $9
	if_equal $0, UnknownScript_0x19abea
	if_equal $1, UnknownScript_0x19ac38
	dotrigger $1
	end
; 0x19abea

UnknownScript_0x19abea: ; 0x19abea
	applymovement $0, MovementData_0x19aca2
	showemote $0, $4, 15
	applymovement $4, MovementData_0x19acbb
	spriteface $3, $1
	showemote $0, $3, 15
	applymovement $3, MovementData_0x19aca4
	loadfont
	2writetext UnknownText_0x19acd2
	keeptextopen
	checkmoney $0, 999
	if_equal $0, UnknownScript_0x19ac12
	2jump UnknownScript_0x19ac1d
; 0x19ac12

UnknownScript_0x19ac12: ; 0x19ac12
	takemoney $0, 1000
	2writetext UnknownText_0x19ad0a
	2jump UnknownScript_0x19ac28
; 0x19ac1d

UnknownScript_0x19ac1d: ; 0x19ac1d
	takemoney $0, 1000
	2writetext UnknownText_0x19ad20
	2jump UnknownScript_0x19ac28
; 0x19ac28

UnknownScript_0x19ac28: ; 0x19ac28
	keeptextopen
	loadmovesprites
	applymovement $3, MovementData_0x19acaa
	applymovement $4, MovementData_0x19acc1
	dotrigger $1
	special $003d
	end
; 0x19ac38

UnknownScript_0x19ac38: ; 0x19ac38
	showemote $0, $3, 15
	applymovement $3, MovementData_0x19acaf
	spriteface $4, $0
	showemote $0, $4, 15
	applymovement $4, MovementData_0x19acc7
	loadfont
	2writetext UnknownText_0x19acd2
	keeptextopen
	checkmoney $0, 999
	if_equal $0, UnknownScript_0x19ac5c
	2jump UnknownScript_0x19ac67
; 0x19ac5c

UnknownScript_0x19ac5c: ; 0x19ac5c
	takemoney $0, 1000
	2writetext UnknownText_0x19ad0a
	2jump UnknownScript_0x19ac72
; 0x19ac67

UnknownScript_0x19ac67: ; 0x19ac67
	takemoney $0, 1000
	2writetext UnknownText_0x19ad20
	2jump UnknownScript_0x19ac72
; 0x19ac72

UnknownScript_0x19ac72: ; 0x19ac72
	keeptextopen
	loadmovesprites
	applymovement $4, MovementData_0x19accd
	applymovement $3, MovementData_0x19acb5
	dotrigger $1
	special $003d
	end
; 0x19ac82

RocketScript_0x19ac82: ; 0x19ac82
	jumptextfaceplayer UnknownText_0x19ad41
; 0x19ac85

OfficerScript_0x19ac85: ; 0x19ac85
	faceplayer
	loadfont
	checkevent EVENT_GOT_TM36_SLUDGE_BOMB
	iftrue UnknownScript_0x19ac9c
	2writetext UnknownText_0x19ad9b
	keeptextopen
	verbosegiveitem TM_36, 1
	iffalse UnknownScript_0x19aca0
	setevent EVENT_GOT_TM36_SLUDGE_BOMB
	loadmovesprites
	end
; 0x19ac9c

UnknownScript_0x19ac9c: ; 0x19ac9c
	2writetext UnknownText_0x19ae2d
	closetext
UnknownScript_0x19aca0: ; 0x19aca0
	loadmovesprites
	end
; 0x19aca2

MovementData_0x19aca2: ; 0x19aca2
	step_down
	step_end
; 0x19aca4

MovementData_0x19aca4: ; 0x19aca4
	big_step_up
	big_step_up
	big_step_right
	big_step_right
	turn_head_up
	step_end
; 0x19acaa

MovementData_0x19acaa: ; 0x19acaa
	big_step_left
	big_step_left
	big_step_down
	big_step_down
	step_end
; 0x19acaf

MovementData_0x19acaf: ; 0x19acaf
	big_step_down
	big_step_down
	big_step_right
	big_step_right
	turn_head_down
	step_end
; 0x19acb5

MovementData_0x19acb5: ; 0x19acb5
	big_step_left
	big_step_left
	big_step_up
	big_step_up
	turn_head_down
	step_end
; 0x19acbb

MovementData_0x19acbb: ; 0x19acbb
	big_step_up
	big_step_up
	big_step_left
	big_step_left
	turn_head_up
	step_end
; 0x19acc1

MovementData_0x19acc1: ; 0x19acc1
	big_step_right
	big_step_right
	big_step_down
	big_step_down
	turn_head_up
	step_end
; 0x19acc7

MovementData_0x19acc7: ; 0x19acc7
	big_step_down
	big_step_down
	big_step_left
	big_step_left
	turn_head_down
	step_end
; 0x19accd

MovementData_0x19accd: ; 0x19accd
	big_step_right
	big_step_right
	big_step_up
	big_step_up
	step_end
; 0x19acd2

UnknownText_0x19acd2: ; 0x19acd2
	text "Hold it there,"
	line "kiddo!"

	para "The toll is ¥1000"
	line "to go through."
	done
; 0x19ad0a

UnknownText_0x19ad0a: ; 0x19ad0a
	text "Thank you very"
	line "much!"
	done
; 0x19ad20

UnknownText_0x19ad20: ; 0x19ad20
	text "Then pay what you"
	line "have, please."
	done
; 0x19ad41

UnknownText_0x19ad41: ; 0x19ad41
	text "He-he-he. We're"
	line "making a bundle."

	para "Everyone wants to"
	line "see what's going"

	para "on up at LAKE OF"
	line "RAGE."
	done
; 0x19ad9b

UnknownText_0x19ad9b: ; 0x19ad9b
	text "I got chased from"
	line "my post by these"
	cont "thugs in black."

	para "They left this"
	line "behind."

	para "It makes me uncom-"
	line "fortable. Could"
	cont "you take it away?"
	done
; 0x19ae1b

UnknownText_0x19ae1b: ; 0x19ae1b
	text $52, " received"
	line "TM30."
	done
; 0x19ae2d

UnknownText_0x19ae2d: ; 0x19ae2d
	text "Use this gate to"
	line "avoid walking in"
	cont "the grass."
	done
; 0x19ae5b

Route43Gate_MapEventHeader: ; 0x19ae5b
	; filler
	db 0, 0

	; warps
	db 4
	warp_def $0, $4, 4, GROUP_ROUTE_43, MAP_ROUTE_43
	warp_def $0, $5, 5, GROUP_ROUTE_43, MAP_ROUTE_43
	warp_def $7, $4, 3, GROUP_ROUTE_43, MAP_ROUTE_43
	warp_def $7, $5, 3, GROUP_ROUTE_43, MAP_ROUTE_43

	; xy triggers
	db 0

	; signposts
	db 0

	; people-events
	db 3
	person_event SPRITE_OFFICER, 8, 4, $9, $0, 255, 255, $80, 0, OfficerScript_0x19ac85, $0735
	person_event SPRITE_ROCKET, 8, 6, $6, $0, 255, 255, $0, 0, RocketScript_0x19ac82, $06dc
	person_event SPRITE_ROCKET, 8, 11, $7, $0, 255, 255, $0, 0, RocketScript_0x19ac82, $06dc
; 0x19ae9c