summaryrefslogtreecommitdiff
path: root/data/scripts/cutscene/ezlo/script_EzloCap.inc
blob: 9bd3aed25404e4b3713455d98a38bd1331b08212 (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
@ First look at Ezlo EzloCap
SCRIPT_START script_EzloCap
	BeginBlock
	SetEntitySpeed 0x0040
	DoPostScriptAction 0x0007
	EndBlock
	SetAnimation 0x0020
	WaitForSyncFlagAndClear 0x00000004
	SetAnimation 0x0022
	Call sub_0807F3C8
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x02, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0020
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	SetAnimation 0x0021
	Call sub_0807F3C8
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x03, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0020
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	DoPostScriptAction 0x0004
	Wait 0x003c
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	DoPostScriptAction 0x0011
	SetAnimation 0x001c
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x05, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0020
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	SetAnimation 0x0022
	Call sub_0807F3C8
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x06, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x001c
	Call sub_0806D96C
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x07, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0020
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	SetAnimation 0x0021
	Call sub_0807F3C8
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x08, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x001c
	Call sub_0806D96C
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x09, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0020
	DoPostScriptAction 0x000a
	_0807E9D4
	SetSyncFlag 0x00000008
script_080127F2:
	EndBlock
	BeginBlock
	CheckRoomFlag 0x0000
	JumpIf script_08012824
	CheckEntityInteractType
	JumpIfNot script_080127F2
	EndBlock
	SetPlayerIdle
	Call sub_0806D944
	SetAnimation 0x0010
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x14, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0020
	EnablePlayerControl
	Jump script_080127F2
script_08012824:
	SetPlayerIdle
	_0807E9DC
	CallWithArg sub_0807F5B0, 0x0000003c
	Call ResetPlayerAnimationAndAction
	EndBlock
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	DoPostScriptAction 0x000b
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	Call sub_0806D944
	SetAnimation 0x0010
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x0a, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x001f
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	SetAnimation 0x0010
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x0b, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x001f
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	DoPostScriptAction 0x0004
	Wait 0x003c
	SetAnimation 0x0010
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x0c, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x001f
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	SetAnimation 0x0010
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x0d, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x001f
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
	SetAnimation 0x0010
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x0e, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0018
	SetEntitySpeed 0x0080
	Call sub_0806D908
	WalkForward 0x0010
	DoPostScriptAction 0x000a
	_0807E9D4
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
script_08012904:
	EndBlock
	BeginBlock
	Call sub_0806D944
	CheckEntityInteractType
	JumpIf script_08012920
	CheckPlayerInRegion2 0x3030
	JumpIfNot script_0801293A
	Jump script_08012904
script_08012920:
	SetPlayerIdle
	SetAnimation 0x0010
	EndBlock
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x15, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0018
	EnablePlayerControl
	Jump script_08012904
script_0801293A:
	EndBlock
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	FaceAwayFromPlayer
	Call sub_0806D944
	SetAnimation 0x0010
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x0f, 0x000c
	SetAnimation 0x0018
	SetEntitySpeed 0x0080
	Call sub_0806D908
	WalkForward 0x0050
	WaitUntilTextboxCloses
	Call EnablePauseMenu
	EnablePlayerControl
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
script_08012984:
	EndBlock
	BeginBlock
	Call sub_0806D944
	CheckEntityInteractType
	JumpIf script_080129A0
	CheckPlayerInRegion2 0x3030
	JumpIfNot script_080129BA
	Jump script_08012984
script_080129A0:
	SetPlayerIdle
	SetAnimation 0x0010
	EndBlock
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x15, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0018
	EnablePlayerControl
	Jump script_08012984
script_080129BA:
	EndBlock
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	FaceAwayFromPlayer
	Call sub_0806D944
	SetAnimation 0x0010
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x10, 0x000c
	SetAnimation 0x0018
	SetEntitySpeed 0x0080
	Call sub_0806D908
	WalkForward 0x0050
	SetAnimation 0x0018
	WaitUntilTextboxCloses
	Call EnablePauseMenu
	EnablePlayerControl
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000004
script_08012A08:
	EndBlock
	BeginBlock
	Call sub_0806D944
	CheckEntityInteractType
	JumpIf script_08012A24
	CheckPlayerInRegion2 0x3030
	JumpIfNot script_08012A3E
	Jump script_08012A08
script_08012A24:
	SetPlayerIdle
	SetAnimation 0x0010
	EndBlock
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x15, 0x000c
	WaitUntilTextboxCloses
	SetAnimation 0x0018
	EnablePlayerControl
	Jump script_08012A08
script_08012A3E:
	EndBlock
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	StopBgm
	DoPostScriptAction 0x000b
	FaceAwayFromPlayer
	Call sub_0806D944
	SetAnimation 0x0010
	MessageFromTargetPos TEXT_FINDING_EZLO, 0x11, 0x000c
	SetAnimation 0x0018
	SetEntitySpeed 0x0080
	Call sub_0806D8A0
script_08012A74:
	MoveTowardsTarget
	JumpIfNot script_08012A74
	SetAnimation 0x001f
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerGetEzloCap
	Call sub_0806D9A4
	DoPostScriptAction 0x0008
	Wait 0x0078
	PlayBgm BGM_EZLO_THEME
	BeginBlock
	_0807E8E4_2
	EzloMessage TEXT_FINDING_EZLO, 0x12
	EndBlock
	WaitUntilTextboxCloses
	SetSyncFlag 0x00000008
	DoPostScriptAction 0x0006
SCRIPT_END