summaryrefslogtreecommitdiff
path: root/data/scripts/cutscene/introCeremony/script_GuardCarryingChest.inc
blob: 1d85982247614ac89e55a44f0575219b47d4029e (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
@ Intro Ceremony Chest carrying Guard
@ and guard bottom left?
SCRIPT_START script_GuardCarryingChest
	BeginBlock
	DoPostScriptAction 0x0008
	SetEntitySpeed 0x0100
	Call sub_08095244
	Call DeleteHitbox
	EndBlock
	WaitForSyncFlag 0x0002a800
	DoPostScriptAction 0x0007
	SetAnimation 0x0006
	WalkSouth 0x0010
	Wait 0x003c
	WalkSouth 0x0010
	Wait 0x003c
	WalkSouth 0x0010
	SetAnimation 0x0002
	Call sub_08064050
	JumpTable script_08011312, script_GuardBottomRight, script_GuardTopLeft, script_GuardTopRight
@ Guard bottom left:
script_08011312:
	ClearSyncFlag 0x00000800
	SetSyncFlag 0x00001000
	WaitForSyncFlagAndClear 0x00000800
	SetAnimation 0x0007
	SetAnimationState 0x0006
	WalkWest 0x0010
	SetAnimationState 0x0004
	SetAnimation 0x0002
	SetSyncFlag 0x00001000
	WaitForSyncFlagAndClear 0x00000800
	DoPostScriptAction 0x0004
	Wait 0x003c
	SetAnimation 0x0012
	PlaySound SFX_EM_MOBLIN_SPEAR
	Wait 0x003c
	SetAnimation 0x0014
	SetEntitySpeed 0x0100
	MoveTo 0x01f0, 0x0098
	MoveTo 0x01f0, 0x00c8
	SetAnimation 0x0013
	SetSyncFlag 0x00001000
	WaitForSyncFlagAndClear 0x00000800
	DoPostScriptAction 0x0010
	Wait 0x000a
	DoPostScriptAction 0x0010
	Call sub_0807F3C8
	SetAnimation 0x0014
	SetEntitySpeed 0x0400
	SetEntityDirection 0x001e
	WalkForward 0x003c
	SetSyncFlag 0x00001000
	DoPostScriptAction 0x0006
SCRIPT_END