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
|
@ Hyrule Town Guard west
SCRIPT_START script_GuardWest
BeginBlock
SetAnimationState 0x0002
_0807E9D4
CallWithArg sub_0807F3D8, 0x00000008
Call GuardWithSpear_ResetLastSwordMove
.ifndef EU
ClearLocalFlag MACHI_02_HEISHI_TALK
.endif
EndBlock
script_0800FF92:
EndBlock
BeginBlock
DoPostScriptAction 0x000a
CheckLocalFlag MACHI_02_HEISHI
JumpIf script_0800FFCC
DoPostScriptAction 0x000b
Call sub_08064198
CheckLocalFlag MACHI_02_HEISHI_TALK
JumpIfNot script_0800FFCC
Call GuardWithSpear_ResetLastSwordMoveIfNotInSwordState
CheckPlayerInRegion2 0x4040
JumpIfNot script_0800FFCC
Call GuardWithSpear_CheckSwordMoveSpin
JumpIf script_08010014
script_0800FFCC:
CheckEntityInteractType
JumpIfNot script_0800FF92
EndBlock
SetLocalFlag MACHI_02_HEISHI_TALK
SetPlayerIdle
FacePlayer
CallWithArg sub_0807F3D8, 0x00000008
CheckInventory1 ITEM_SKILL_SPIN_ATTACK
JumpIf script_0800FFF8
MessageNoOverlap TEXT_TOWN, 0x01
WaitUntilTextboxCloses
Jump script_08010060
script_0800FFF8:
CheckLocalFlag MACHI_02_HEISHI
JumpIfNot script_0801000A
MessageNoOverlap TEXT_TOWN, 0x0b
WaitUntilTextboxCloses
Jump script_08010060
script_0801000A:
MessageNoOverlap TEXT_TOWN, 0x02
WaitUntilTextboxCloses
Jump script_08010060
script_08010014:
EndBlock
DisablePlayerControl
Call WaitForPlayerIdle
SetPlayerIdle
FacePlayer
CallWithArg sub_0807F3D8, 0x00000008
PlaySound SFX_TASK_COMPLETE
MessageNoOverlap TEXT_TOWN, 0x0a
WaitUntilTextboxCloses
SetAnimationState 0x0004
CallWithArg sub_0807F3D8, 0x0000000c
SetEntitySpeed 0x0100
MoveTo 0x0018, 0x0108
SetAnimationState 0x0002
CallWithArg sub_0807F3D8, 0x00000008
SetLocalFlag MACHI_02_HEISHI
script_08010060:
Call GuardWithSpear_ResetLastSwordMove
CallWithArg sub_0807F5B0, 0x0000000a
EnablePlayerControl
Jump script_0800FF92
.2byte 0x0000
BeginBlock
_0807E9D4
DoPostScriptAction 0x000a
SetAnimationState 0x0004
CallWithArg sub_080672B0, 0x00000000
EndBlock
script_08010090:
CheckEntityInteractType
JumpIfNot script_08010090
SetPlayerIdle
FacePlayer
CallWithArg sub_080672B0, 0x00000004
MessageFromTarget TEXT_EMPTY, 0x01
WaitUntilTextboxCloses
Wait 0x000f
EnablePlayerControl
SetAnimationState 0x0004
CallWithArg sub_080672B0, 0x00000000
Jump script_08010090
DoPostScriptAction 0x0006
SCRIPT_END
|