summaryrefslogtreecommitdiff
path: root/data/scripts/cutscene/introTown/script_CutsceneOrchestratorIntroTown.inc
blob: 0fff2007259f2ee1d1094e801336dfe17e4a26cb (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
@ Intro Hyrule Town CUTSCENE_ORCHESTRATOR ?
SCRIPT_START script_CutsceneOrchestratorIntroTown
	CheckLocalFlag MACHI_01_DEMO
	JumpIf script_0800FD50
	WaitForSyncFlagAndClear 0x00000010
script_0800FD1A:
	@ Prevent Link from leaving
	CheckPlayerInRegion 0x00c8, 0x03c0, 0x1040
	JumpIfNot script_0800FD1A
	CheckLocalFlag MACHI_01_DEMO
	JumpIf script_0800FD5C
	SetPlayerIdle
	Call WaitForPlayerNormal
	MessageFromTargetPos TEXT_FESTIVAL, 0x06, 0x0000
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerIntroTown
	WaitForSyncFlagAndClear 0x00000008
	EnablePlayerControl
	Jump script_0800FD1A
script_0800FD50:
	CheckPlayerInRegion 0x00c8, 0x03c0, 0x1040
	JumpIfNot script_0800FD50
script_0800FD5C:
	SetPlayerIdle
	Call WaitForPlayerNormal
	MessageFromTargetPos TEXT_PROLOGUE, 0x6c, 0x0000
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerIntroTown
	WaitForSyncFlagAndClear 0x00000008
	EnablePlayerControl
	Jump script_0800FD50
	.2byte 0x0000