summaryrefslogtreecommitdiff
path: root/data/scripts/cutscene/kinstones/script_HurdyGurdyManFirstKinstone.inc
blob: 1ee344cec95ce4136803356baa6178ed02d9e37f (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
@ Hyrule Town Kinstone cutscene HurdyGurdyMan
SCRIPT_START script_HurdyGurdyManFirstKinstone
	BeginBlock
	SetEntitySpeed 0x0080
	DoPostScriptAction 0x0008
	DoPostScriptAction 0x000a
	EndBlock
	Call SetPriorityMessage
	SetAnimationState 0x0002
	WaitForSyncFlagAndClear 0x00000002
	DoPostScriptAction 0x0007
	MoveTo 0x01b8, 0x0328
	SetSyncFlag 0x00000040
	MoveTo 0x01f8, 0x0328
	SetAnimationState 0x0004
	SetAnimation 0x0008
	_0807E8E4_0
	SetSyncFlag 0x00000040
	WaitForSyncFlagAndClear 0x00000002
	Call HurdyGurdyMan_MakeInteractable
	Wait 0x0078
	SetSyncFlag 0x00000040
	WaitForSyncFlagAndClear 0x00000002
script_0800F1E6:
	EndBlock
	BeginBlock
	CallWithArg sub_0807F680, 0x000001c0
	JumpIf script_0800F22A
	EndBlock
	SetPlayerIdle
	Call WaitForPlayerNormal
	FacePlayer
	SetAnimation 0x0008
	DoPostScriptAction 0x0004
	Wait 0x003c
	MessageFromTargetPos TEXT_MINISH2, 0x06, 0x000c
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerAtHurdyGurdyManFirstKinstone1
	WaitForSyncFlagAndClear 0x00000400
	EnablePlayerControl
	Jump script_0800F1E6
script_0800F22A:
	CallWithArg sub_0807F680, 0x00000230
	JumpIfNot script_0800F26A
	EndBlock
	SetPlayerIdle
	Call WaitForPlayerNormal
	FacePlayer
	SetAnimation 0x0008
	DoPostScriptAction 0x0004
	Wait 0x003c
	MessageFromTargetPos TEXT_MINISH2, 0x06, 0x000c
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerAtHurdyGurdyManFirstKinstone2
	WaitForSyncFlagAndClear 0x00000400
	EnablePlayerControl
	Jump script_0800F1E6
script_0800F26A:
	CallWithArg sub_0807F6B4, 0x00000310
	JumpIf script_0800F2AA
	EndBlock
	SetPlayerIdle
	Call WaitForPlayerNormal
	FacePlayer
	SetAnimation 0x0008
	DoPostScriptAction 0x0004
	Wait 0x003c
	MessageFromTargetPos TEXT_MINISH2, 0x06, 0x000c
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerAtHurdyGurdyManFirstKinstone3
	WaitForSyncFlagAndClear 0x00000400
	EnablePlayerControl
	Jump script_0800F1E6
script_0800F2AA:
	CallWithArg sub_0807F6B4, 0x00000340
	JumpIfNot script_0800F2EA
	EndBlock
	SetPlayerIdle
	Call WaitForPlayerNormal
	FacePlayer
	SetAnimation 0x0008
	DoPostScriptAction 0x0004
	Wait 0x003c
	MessageFromTargetPos TEXT_MINISH2, 0x06, 0x000c
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerAtHurdyGurdyManFirstKinstone4
	WaitForSyncFlagAndClear 0x00000400
	EnablePlayerControl
	Jump script_0800F1E6
script_0800F2EA:
	EndBlock
	BeginBlock
	CheckKinstoneFused KINSTONE_32
	JumpIf script_0800F314
	CheckEntityInteractType
	JumpIfNot script_0800F2EA
	EndBlock
	SetPlayerIdle
	FacePlayer
	SetAnimation 0x0008
	MessageFromTargetPos TEXT_MINISH2, 0x08, 0x000c
	WaitUntilTextboxCloses
	EnablePlayerControl
	Jump script_0800F1E6
script_0800F314:
	EndBlock
	SetSyncFlag 0x00000040
	WaitForSyncFlagAndClear 0x00000002
	SetEntitySpeed 0x0100
	SetAnimationState 0x0002
	MoveToOffset 0x00c0, 0x0000
	SetSyncFlag 0x00000040
	DoPostScriptAction 0x0006
SCRIPT_END