summaryrefslogtreecommitdiff
path: root/data/scripts/cutscene/reveal/script_MinishVillageObjectPictureBackRoom.inc
blob: d43fdf386853fe9df55ecee0c692793149025a7b (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
@ Sanctuary MINISH_VILLAGE_OBJECT Look at picture in back room
SCRIPT_START script_MinishVillageObjectPictureBackRoom
	CheckPlayerInRegion 0x0098, 0x0038, 0x2060
	JumpIfNot script_MinishVillageObjectPictureBackRoom
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	StartPlayerScript script_PlayerAtPicture
	WaitForSyncFlagAndClear 0x00000002
	EzloMessage TEXT_VAATI2, 0x01
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerMoveToPicture
	WaitForSyncFlagAndClear 0x00000002
	SetFadeTime 0x0004
	SetFade5
	WaitForFadeFinish
	LoadRoomEntityList gUnk_080F5680
	StartPlayerScript script_PlayerSanctuaryIntro
	WaitForSyncFlagAndClear 0x00000002
	MoveEntityToPlayer
	OffsetEntityPosition 0x0000, 0xfff0
	Call sub_0807F844
	CameraTargetEntity
	Call sub_080536B8
	SetPlayerIdle
	Call DisablePauseMenuAndPutAwayItems
	WaitForFadeFinish
	MessageFromTargetPos TEXT_VAATI2, 0x02, 0x000c
	WaitUntilTextboxCloses
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000010
	SetSyncFlag 0x00000020
	WaitForSyncFlagAndClear 0x00000040
	PlayBgm BGM_VAATI_THEME
	StartPlayerScript script_PlayerDistanceFromVaati
	WaitForSyncFlagAndClear 0x00000002
	SetSyncFlag 0x00000020
	WaitForSyncFlagAndClear 0x00000040
	StartPlayerScript script_PlayerFaintAgain
	SetSyncFlag 0x00000020
	WaitForSyncFlagAndClear 0x00000042
	MessageFromTargetPos TEXT_VAATI2, 0x03, 0x000c
	WaitUntilTextboxCloses
	SetSyncFlag 0x00000020
	WaitForSyncFlagAndClear 0x00000040
	SetFadeMask 0xffff7fff
	SetFadeTime 0x0004
	SetFade5
	WaitForFadeFinish
	StopBgm
	_0807E858 0x0000
	Wait 0x003c
	CameraTargetPlayer
	Call WaitForCameraTouchRoomBorder
	MessageFromTargetPos TEXT_VAATI2, 0x04, 0x0007
	WaitUntilTextboxCloses
	SetFadeMask 0xffffffff
	SetFadeTime 0x0004
	SetFade4
	WaitForFadeFinish
	SetSyncFlag 0x00000004
	WaitForSyncFlagAndClear 0x00000002
	EzloMessage TEXT_VAATI2, 0x05
	WaitUntilTextboxCloses
	SetLocalFlag 0x0078
	PlayBgm BGM_CASTLE_COLLAPSE
	SetGlobalFlag SEIIKI_BGM
	Call EnablePauseMenu
	EnablePlayerControl
	DoPostScriptAction 0x0006
SCRIPT_END
	.2byte 0x0000