summaryrefslogtreecommitdiff
path: root/data/scripts/minishWoods/script_Festari.inc
blob: 29f2a8431c31e171387ea6b2b494b9cdbb5877c4 (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
@ Festari at beginning
SCRIPT_START script_Festari
	BeginBlock
	DoPostScriptAction 0x000a
	SetEntitySpeed 0x0080
	SetAnimationState 0x0004
	CheckLocalFlag 0x0082
	JumpIfNot script_0800C650
	OffsetEntityPosition 0x0010, 0x0000
script_0800C650:
	EndBlock
script_0800C652:
	TriggerInteract
	SetPlayerIdle
	Call DisablePauseMenuAndPutAwayItems
	CheckLocalFlag 0x0082
	JumpIf script_0800C684
	CheckPlayerInRegion 0x00e8, 0x0028, 0x1810
	JumpIfNot script_0800C674
	DoPostScriptAction 0x000b
script_0800C674:
	StartPlayerScript script_PlayerAtFestari
	WaitForSyncFlagAndClear 0x00000001
	DoPostScriptAction 0x000a
script_0800C684:
	CheckInventory1 ITEM_EARTH_ELEMENT
	JumpIf script_0800C730
	CheckInventory1 ITEM_JABBERNUT
	JumpIf script_0800C6B6
	DoPostScriptAction 0x0002
	MessageFromTarget TEXT_BELARI, 0x16
	WaitUntilTextboxCloses
	DoPostScriptAction 0x0015
	Wait 0x000a
	SetLocalFlag 0x0080
	Call EnablePauseMenu
	EnablePlayerControl
	Jump script_0800C652
script_0800C6B6:
	CheckLocalFlag 0x0081
	JumpIf script_0800C6DC
	DoPostScriptAction 0x0002
	MessageFromTarget TEXT_BELARI, 0x1b
	WaitUntilTextboxCloses
	DoPostScriptAction 0x0015
	Wait 0x000a
	Call EnablePauseMenu
	EnablePlayerControl
	Jump script_0800C652
script_0800C6DC:
	CheckLocalFlag 0x0082
	JumpIf script_0800C712
	DoPostScriptAction 0x0002
	MessageFromTarget TEXT_BELARI, 0x17
	WaitUntilTextboxCloses
	DoPostScriptAction 0x0015
	Wait 0x000a
	SetAnimationState 0x0002
	DoPostScriptAction 0x0001
	WalkEast 0x0020
	SetAnimationState 0x0004
	Wait 0x000f
	PlaySound SFX_SECRET
	SetLocalFlag 0x0082
script_0800C712:
	DoPostScriptAction 0x0002
	MessageFromTarget TEXT_BELARI, 0x18
	WaitUntilTextboxCloses
	DoPostScriptAction 0x0015
	Wait 0x000a
	Call EnablePauseMenu
	EnablePlayerControl
	Jump script_0800C652
script_0800C730:
	CheckLocalFlag 0x0083
	JumpIf script_0800C756
	DoPostScriptAction 0x0002
	MessageFromTarget TEXT_BELARI, 0x19
	WaitUntilTextboxCloses
	DoPostScriptAction 0x0015
	Wait 0x000a
	Call EnablePauseMenu
	EnablePlayerControl
	Jump script_0800C652
script_0800C756:
	DoPostScriptAction 0x0002
	MessageFromTarget TEXT_BELARI, 0x1a
	WaitUntilTextboxCloses
	DoPostScriptAction 0x0015
	Wait 0x000a
	Call EnablePauseMenu
	EnablePlayerControl
	Jump script_0800C652