summaryrefslogtreecommitdiff
path: root/data/scripts/hyruleTown/script_CutsceneMiscObjectCarlov2.inc
blob: 6c51201298baab34b1839ebd4f229a4ccf3b6842 (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
@ Hyrule Town CUTSCENE_ORCHESTRATOR at Carlov
SCRIPT_START script_CutsceneMiscObjectCarlov2
	BeginBlock
	DoPostScriptAction 0x0008
	SetAnimationState 0x0004
	DoPostScriptAction 0x0000
	EndBlock
script_080145F8:
.ifdef EU
	CheckPlayerInRegion 0x00a8, 0x0054, 0x080c
	JumpIfNot script_080145F8
	ComparePlayerAnimationState 0x0000
	JumpIfNot script_080145F8
	CheckRoomFlag 0x0009
	JumpIf script_08014632
	SetPlayerIdle
	Wait 0x0018
	_0807E8E4_3
	SetAnimationState 0x0002
	MessageFromTargetPos TEXT_CARLOV, 0x2b, 0x000c
	WaitUntilTextboxCloses
	Wait 0x0018
	EnablePlayerControl
	Jump script_080145F8
.endif
script_08014632:
	CheckRoomFlag 0x0000
	JumpIfNot script_08014632
	SetPlayerIdle
	Call DisablePauseMenuAndPutAwayItems
script_08014642:
.ifdef EU
	CheckRoomFlag 0x0009
.else
	CheckRoomFlag 0x0004
.endif
	JumpIf script_08014642
	SetSyncFlag 0x00000004
	WaitForSyncFlagAndClear 0x00000008
	Call EnablePauseMenu
	EnablePlayerControl
	Jump script_080145F8
	.align 2, 0