summaryrefslogtreecommitdiff
path: root/data/scripts/hyruleCastleGarden/script_GuardEntry3.inc
blob: 663e740c074865cdd68533ea00be8aeb33862c22 (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
@ Hyrule Castle Guard guarding entry to garden
SCRIPT_START script_GuardEntry3
	BeginBlock
	SetAnimationState 0x0002
	_0807E9D4
	DoPostScriptAction 0x000a
	CallWithArg sub_0807F3D8, 0x00000000
	EndBlock
script_08011A7C:
	CheckEntityInteractType
	JumpIfNot script_08011A7C
	SetPlayerIdle
	FacePlayer
	CallWithArg sub_0807F3D8, 0x00000000
	@ Check if player has performed great spin.
	CallWithArg CheckLastSwordMove, 0x00000006
	JumpIf script_08011AFA
	MessageFromTarget TEXT_VAATI, 0x20
	WaitUntilTextboxCloses
	EnablePlayerControl
	Jump script_08011A7C
	.2byte 0x0000
	BeginBlock
	SetAnimationState 0x0004
	_0807E9D4
	DoPostScriptAction 0x000a
	CallWithArg sub_0807F3D8, 0x00000000
	EndBlock
script_08011AC4:
	CheckEntityInteractType
	JumpIfNot script_08011AC4
	SetPlayerIdle
	FacePlayer
	CallWithArg sub_0807F3D8, 0x00000000
	MessageFromTarget TEXT_VAATI, 0x22
	WaitUntilTextboxCloses
	EnablePlayerControl
	Jump script_08011AC4