summaryrefslogtreecommitdiff
path: root/data/scripts/script_08014E14.inc
blob: 1b70d789b8f024b6c451cb324f3a3bd2ff135f74 (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
SCRIPT_START script_08014E14
	BeginBlock 
	_0807EB44 0x0004
	_0807E9D4 
	DoPostScriptAction 0x000a
	CallWithArg sub_0807F3D8, 0x00000000
	EndBlock 
script_08014E2C:
	CheckEntityInteractType 
	JumpIfNot script_08014E2C
	_0807E864 
	_0807EB74 
	CallWithArg sub_0807F3D8, 0x00000000
	Call sub_08064428
	_0807EA94 
	_0807E878 
	Jump script_08014E2C
	.2byte 0x0000
SCRIPT_START script_08014E50
	BeginBlock 
	DoPostScriptAction 0x000a
	DoPostScriptAction 0x0007
	_0807EB44 0x0004
	DoPostScriptAction 0x0000
	EndBlock 
script_08014E64:
	CheckEntityInteractType 
	JumpIfNot script_08014E64
	_0807E864 
	Call sub_0807DF28
	_0807EB74 
	CallWithArg sub_0807F78C, 0x00000022
	_0807EA94 
	_0807E3E8 
	JumpIfNot script_08014EBC
	CallWithArg sub_0807F7C4, 0x00000022
	JumpIfNot script_08014EB0
	_0807E48C 0x0020
	JumpIfNot script_08014EB8
	CallWithArg sub_0807F800, 0x00000022
	WaitPlayerAction8 
	TextboxNoOverlap 0x0a04
	Jump script_08014EBC
script_08014EB0:
	TextboxNoOverlap 0x0a03
	Jump script_08014EBC
script_08014EB8:
	TextboxNoOverlap 0x0a02
script_08014EBC:
	_0807EA94 
	Call sub_0807DF50
	_0807E878 
	Jump script_08014E64
	.2byte 0x0000
SCRIPT_START script_08014ECC
	BeginBlock 
	DoPostScriptAction 0x000a
	DoPostScriptAction 0x0007
	_0807EB44 0x0004
	DoPostScriptAction 0x0000
	EndBlock 
script_08014EE0:
	CheckEntityInteractType 
	JumpIfNot script_08014EE0
	_0807E864 
	_0807EB74 
	TextboxNoOverlap 0x200d
	_0807EA94 
	_0807E878 
	Jump script_08014EE0
	.2byte 0x0000
SCRIPT_START script_08014EF8
	BeginBlock 
	DoPostScriptAction 0x000a
	DoPostScriptAction 0x0007
	_0807EB44 0x0004
	_0807E930 0x000a
	EndBlock 
script_08014F0C:
	CheckEntityInteractType 
	JumpIfNot script_08014F0C
	_0807E864 
	_0807EB74 
	DoPostScriptAction 0x0000
	TextboxNoOverlap 0x200e
	_0807EA94 
	_0807E878 
	_0807EB44 0x0004
	_0807E930 0x000a
	Jump script_08014F0C
	.2byte 0x0000
SCRIPT_START script_08014F30
	BeginBlock 
	DoPostScriptAction 0x000a
	DoPostScriptAction 0x0007
	_0807EB44 0x0004
	_0807E930 0x000e
	EndBlock 
	Call sub_08065914
script_08014F4A:
	CheckEntityInteractType 
	JumpIfNot script_08014F4A
	_0807E864 
	Call sub_0807DF28
	_0807EB74 
	DoPostScriptAction 0x0000
	BeginBlock 
	TextboxNoOverlap 0x3b0b
	CallWithArg sub_0807F854, 0x00010064
	EndBlock 
	_0807EA94 
	_0807E3E8 
	JumpIfNot script_08014FA6
	HasRupees 0x0064
	JumpIfNot script_08014F9A
	_0807E48C 0x0020
	JumpIfNot script_08014FA2
	ModRupees 0xff9c
	_0807F034 0x0022
	WaitPlayerAction8 
	TextboxNoOverlap 0x3b11
	Jump script_08014FA6
script_08014F9A:
	TextboxNoOverlap 0x3b0e
	Jump script_08014FA6
script_08014FA2:
	TextboxNoOverlap 0x3b0f
script_08014FA6:
	_0807EA94 
	Call sub_0807DF50
	_0807E878 
	_0807EB44 0x0004
	_0807E930 0x000e
	Jump script_08014F4A
SCRIPT_START script_08014FBC
	BeginBlock 
	SetEntityPositionRelative 0x01f8, 0x00e0
	Call sub_08054564
	EndBlock 
script_08014FCC:
	CheckPlayerInRegion 0x01f8, 0x00a0, 0x2040
	JumpIfNot script_08014FCC
	_0807E864 
	Call sub_0807F9A4
	Call sub_0807DF28
	StopBgm
	_0807F0B4 0x0001
	CameraTargetEntity 
	StartPlayerScript script_080152B4
	WaitForSomething2 0x00000001
	TextboxNoOverlapFollowPos 0x1301, 0x0002
	_0807EA94 
	Call sub_0807F3F8
	Wait 0x003c
	_0807E5F8 0x00000002
	WaitForSomething2 0x00000004
	_0807E5F8 0x00000002
	WaitForSomething2 0x00000004
	PlayBgm BGM_VAATI_THEME
	_0807EB28 0x1302
	_0807EA94 
	TextboxNoOverlapFollowPos 0x1303, 0x0002
	_0807EA94 
	_0807EB28 0x1304
	_0807EA94 
	TextboxNoOverlapFollowPos 0x1305, 0x0002
	_0807EA94 
	_0807E5F8 0x00000002
	WaitForSomething2 0x00000004
	_0807EB28 0x1306
	_0807EA94 
	StopBgm
	StartPlayerScript script_080152DC
	CameraTargetEntity 
	_0807F0B4 0x0003
	SetEntityPositionRelative 0x01f8, 0x0148
	WaitForSomething2 0x00000001
	Call sub_0804F6A8
	Wait 0x0004
	Call sub_0804F808
	PlaySound SFX_10B
	StartPlayerScript script_08015304
	Call sub_0804F6C8
	Wait 0x0004
	Call sub_0804F830
	PlaySound SFX_10B
	Call sub_0804F6E8
	Wait 0x0004
	Call sub_0804F854
	PlaySound SFX_10B
	Call sub_0804F724
	Wait 0x0004
	Call sub_0804F89C
	PlaySound SFX_10B
	Call sub_0804F760
	Wait 0x0004
	Call sub_0804F8E0
	PlaySound SFX_10B
	Wait 0x003c
	WaitForSomething2 0x00000001
	PlaySound SFX_1B0
	Call sub_0804F79C
	Wait 0x000a
	LoadRoomEntityList gUnk_080F7FC0
	PlayBgm BGM_FIGHT_THEME
	Call sub_0807DF50
	_0807E878 
script_08015104:
	CheckRoomFlag 0x0000
	JumpIfNot script_08015104
	_0807E864 
	Call sub_0807F9A4
	Call sub_0807DF28
	StopBgm
	StartPlayerScript script_08015338
	WaitForSomething2 0x00000001
	Wait 0x003c
	Call sub_0804F6A8
	Wait 0x0004
	Call sub_0804F928
	PlaySound SFX_10B
	Call sub_0804F6C8
	Wait 0x0004
	Call sub_0804F944
	PlaySound SFX_10B
	Call sub_0804F6E8
	Wait 0x0004
	Call sub_0804F960
	PlaySound SFX_10B
	Call sub_0804F724
	Wait 0x0004
	Call sub_0804F994
	PlaySound SFX_10B
	Call sub_0804F760
	Wait 0x0004
	Call sub_0804F9C8
	PlaySound SFX_10B
	Wait 0x003c
	PlaySound SFX_SECRET
	_0807F0B4 0x0004
	CameraTargetPlayer 
.ifdef JP
	SetLocalFlag 0x008a
.else
.ifdef EU
	SetLocalFlag 0x008a
.else
	SetLocalFlag 0x008c
.endif
.endif
	_0807EB28 0x130c
	_0807EA94 
	CameraTargetPlayer 
	_0807E778 0x0004
	_0807E80C 0x00000000
	WaitFor_2 
	Call sub_08053B3C
	BeginBlock 
	_0807E864 
	CallWithArg sub_0807F6E8, 0x00000008
	MoveEntityToPlayer 
	_0807F0B4 0x0004
	CameraTargetEntity 
	_0807E778 0x0100
	DoFade4 
	_0807E80C 0x00000000
	EndBlock 
	StartPlayerScript script_08015360
	WaitForSomething2 0x00000001
	LoadRoomEntityList gUnk_080F7CB0
	_0807E778 0x0004
	_0807E800 0x00000000
	WaitFor_2 
	_0807E5F8 0x00000008
	WaitForSomething2 0x00000010
	BeginBlock 
	_0807E8E4_2 
	_0807EB28 0x1315
	EndBlock 
	_0807EA94 
	_0807F0B4 0x0004
	CameraTargetPlayer 
	Call sub_08054570
	PlayBGM
	Call sub_0807DF50
	_0807E878 
	DoPostScriptAction 0x0006
SCRIPT_END