summaryrefslogtreecommitdiff
path: root/data/scripts/cutscene/outro/script_Npc4EMinishPortalClosing.inc
blob: b20b51720e513540a1259e93fa80f774f8cc12d2 (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
@ Outro NPC4E Minish Portal is closing
SCRIPT_START script_Npc4EMinishPortalClosing
	Call sub_0808D2CC
	SetSyncFlag 0x00000002
	WaitForSyncFlagAndClear 0x00000004
	_0807E8E4_0
	SetSyncFlag 0x00000040
	WaitForSyncFlagAndClear 0x00000080
	OffsetEntityPosition 0x0000, 0xffe0
	Call WaitForCameraTouchRoomBorder
	Wait 0x003c
	CallWithArg DeleteRepeatedSoundManager, 0x00000001
	_0807F0C8 0x0000, 0x0000
	Wait 0x003c
	SetSyncFlag 0x00000002
	WaitForSyncFlagAndClear 0x00000004
	MessageFromTargetPos TEXT_VAATI2, 0x5f, 0x000e
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerAtEzlo
	WaitForSyncFlagAndClear 0x00000001
	MessageFromTargetPos TEXT_VAATI2, 0x60, 0x000e
	WaitUntilTextboxCloses
	SetSyncFlag 0x00000002
	WaitForSyncFlagAndClear 0x00000004
	MessageFromTargetPos TEXT_VAATI2, 0x61, 0x000e
	WaitUntilTextboxCloses
	SetSyncFlag 0x00000008
	SetSyncFlag 0x00000002
	WaitForSyncFlagAndClear 0x00000004
	OffsetEntityPosition 0x0000, 0x0020
	Call WaitForCameraTouchRoomBorder
	WaitForSyncFlagAndClear 0x00000010
	StartPlayerScript script_PlayerGetGreenCap
	WaitForSyncFlagAndClear 0x00000001
	Wait 0x003c
	MessageFromTargetPos TEXT_VAATI2, 0x62, 0x000e
	WaitUntilTextboxCloses
	MessageFromTargetPos TEXT_VAATI2, 0x63, 0x000e
	WaitUntilTextboxCloses
	OffsetEntityPosition 0x0000, -32
	Call WaitForCameraTouchRoomBorder
	SetSyncFlag 0x00000002
	WaitForSyncFlagAndClear 0x00000004
	SetSyncFlag 0x00000002
	WaitForSyncFlagAndClear 0x00000004
	StartPlayerScript script_PlayerSayGoodbye
	WaitForSyncFlagAndClear 0x00000001
	Wait 0x003c
	MessageFromTargetPos TEXT_VAATI2, 0x65, 0x000e
	WaitUntilTextboxCloses
	SetSyncFlag 0x00000002
	WaitForSyncFlagAndClear 0x00000004
	Wait 0x0078
	Call sub_0808D280
	Wait 0x0078
	SetFadeTime 0x0004
	SetFade5
	WaitForFadeFinish
	Call sub_0807FB94 @ Roll Credits
	MoveEntityToPlayer
	Call sub_0807F844
	SetScrollSpeed 4
	CameraTargetPlayer
	SetSyncFlag 0x80000000
	SetFade4
	WaitForFadeFinish
	Call EnablePauseMenu
	EnablePlayerControl
	DoPostScriptAction 0x0006
SCRIPT_END