summaryrefslogtreecommitdiff
path: root/data/scripts/dhc/script_GuardStone2.inc
blob: b67d32d287d86846d3c0cf9a04b2c993287df27b (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
@ DHC guard stone 2
SCRIPT_START script_GuardStone2
	BeginBlock
	SetEntitySpeed 0x0100
	SetAnimationState 0x0004
	DoPostScriptAction 0x000a
	CheckLocalFlag 0x0073
	JumpIfNot script_0800E232
	_0807E9D4
	SetEntityPositionRelative 0x0070, 0x0168
	SetAnimationState 0x0002
	CallWithArg sub_0807F3D8, 0x00000000
	EndBlock
	Jump script_0800E32E
script_0800E232:
	CheckLocalFlag 0x0095
	JumpIf script_0800E29A
	SetAnimation 0x0010
	CallWithArg sub_0807F8E8, 0x00000002
	EndBlock
script_0800E24A:
	CheckRoomFlag 0x0002
	JumpIfNot script_0800E24A
	SetPlayerIdle
	Wait 0x001e
	DoPostScriptAction 0x0010
	PlaySound SFX_1C9
	SetAnimation 0x0015
	Wait 0x003c
	PlaySound SFX_1CA
	DoPostScriptAction 0x0010
	Wait 0x001e
	PlaySound SFX_SECRET
	Wait 0x0078
	DoPostScriptAction 0x0004
	Wait 0x001e
	DoPostScriptAction 0x0000
	FaceAwayFromPlayer
	FacePlayer
	CallWithArg sub_0807F3D8, 0x00000000
	SetLocalFlag 0x0095
script_0800E29A:
	DoPostScriptAction 0x0000
	CallWithArg sub_0807F3D8, 0x00000000
	_0807E9D4
	EnablePlayerControl
	EndBlock
script_0800E2AE:
	EndBlock
	BeginBlock
	CheckEntityInteractType
	JumpIf script_0800E312
	CheckLocalFlag 0x0093
	JumpIfNot script_0800E2AE
	CheckLocalFlag 0x0094
	JumpIfNot script_0800E2AE
	CheckLocalFlag 0x0095
	JumpIfNot script_0800E2AE
	_0807E9DC
	SetLocalFlag 0x0073
	EndBlock
	SetAnimationState 0x0000
	CallWithArg sub_0807F3D8, 0x00000004
	MoveTo 0x0088, 0x0168
	SetAnimationState 0x0006
	CallWithArg sub_0807F3D8, 0x00000004
	MoveTo 0x0070, 0x0168
	FacePlayer
	CallWithArg sub_0807F3D8, 0x00000000
	_0807E9D4
	Jump script_0800E32E
script_0800E312:
	SetPlayerIdle
	FacePlayer
	CallWithArg sub_0807F3D8, 0x00000000
	EndBlock
	MessageNoOverlap TEXT_BREAK_VAATI_CURSE, 0x04
	WaitUntilTextboxCloses
	EnablePlayerControl
	Jump script_0800E2AE
script_0800E32E:
	CheckEntityInteractType
	JumpIfNot script_0800E32E
	SetPlayerIdle
	FacePlayer
	CallWithArg sub_0807F3D8, 0x00000000
	MessageNoOverlap TEXT_BREAK_VAATI_CURSE, 0x03
	WaitUntilTextboxCloses
	EnablePlayerControl
	Jump script_0800E32E
	.2byte 0x0000