summaryrefslogtreecommitdiff
path: root/data/scripts/script_08008B5C.inc
blob: 7bce1e1b37932692f25eb85937334cbcb52f727d (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
SCRIPT_START script_08008B5C
	BeginBlock 
	_0807E9D4 
	_0807EB44 0x0004
	_0807E930 0x0000
	DoPostScriptAction 0x000a
	EndBlock 
script_08008B6E:
	_0807E944 
	_0807E864 
	_0807E930 0x0004
	Call sub_0807F2D4
	Call sub_0806BBB0
	_0807EA94 
	_0807E930 0x0008
	_0807E878 
	Jump script_08008B6E
	.2byte 0x0000
SCRIPT_START script_08008B90
	BeginBlock 
	_0807E9D4 
	_0807EB44 0x0004
	DoPostScriptAction 0x000a
	_0807E930 0x0000
	EndBlock 
script_08008BA2:
	_0807E944 
	_0807E864 
	_0807E930 0x0004
	Call sub_0807F2D4
	TextboxNoOverlapFollow 0x4912
	_0807EA94 
	_0807E930 0x0008
	_0807E878 
	Jump script_08008BA2
SCRIPT_START script_08008BC0
	BeginBlock 
	_0807E9D4 
	_0807EB44 0x0004
	DoPostScriptAction 0x000a
	_0807E930 0x0000
.ifdef EU
	SetGlobalFlag 0x0061
.endif
	EndBlock 
script_08008BD2:
	_0807E944 
	_0807E864 
.ifndef EU
	SetGlobalFlag 0x0061
.endif
	_0807E930 0x0004
	Call sub_0807F2D4
	_0807EA94 
	Call sub_0806BA34
	JumpIfNot script_08008C54
	_0807EA94 
	CallWithArg sub_0806BB1C, 0x00000000
	Call sub_0807F2D4
	CallWithArg sub_0806BB1C, 0x00000001
	Call sub_0806BB7C
	JumpIfNot script_08008C5C
	TextboxNoOverlap 0x490c
	_0807EA94 
	LoadRoomEntityList gUnk_080D6784
	WaitForSomething 0x00000001
	WaitForSomething 0x00000004
	Wait 0x000f
	PlaySound SFX_SECRET
	_0807E930 0x0004
	Call sub_0807F2D4
	TextboxNoOverlap 0x4913
	_0807EA94 
	_0807E930 0x0008
	Call sub_0807F2D4
	Jump script_08008C5C
script_08008C54:
	_0807E930 0x0008
	Wait 0x000f
script_08008C5C:
	_0807EA94 
	_0807E878 
	Jump script_08008BD2
SCRIPT_START script_08008C64
	BeginBlock 
	SetEntityPositionRelative 0x0068, 0x0018
	DoPostScriptAction 0x000f
	_0807EB44 0x0004
	_0807E930 0x0004
	SetEntitySpeed 0x0300
	PlaySound SFX_STAIRS
	EndBlock 
	WaitForSomething 0x00000002
	TextboxNoOverlap 0x490d
	_0807EA94 
	DoPostScriptAction 0x0007
	Call sub_08064D08
	_0807EDD4 0x0068, 0x0078
	Call sub_08064D10
	Wait 0x000f
	_0807EB44 0x0002
	Wait 0x000f
	Call sub_08064D08
	_0807EDD4 0x0098, 0x0078
	Call sub_08064D10
	Wait 0x000f
	_0807EB44 0x0004
	PlaySound SFX_PLY_LIFT
	Wait 0x000f
	_0807EB44 0x0002
	_0807EDD4 0x00ac, 0x0078
	Wait 0x000f
	_0807EB44 0x0004
	PlaySound SFX_PLY_LIFT
	Wait 0x000f
	_0807EB44 0x0002
	_0807EDD4 0x00c0, 0x0078
	Wait 0x000f
	_0807EB44 0x0004
	PlaySound SFX_PLY_LIFT
	Wait 0x000f
	_0807EB44 0x0006
	Wait 0x001e
	Call sub_08064D08
	_0807EDD4 0x0068, 0x0078
	Call sub_08064D10
	Wait 0x000f
	_0807EB44 0x0000
	Wait 0x000f
	Call sub_08064D08
	_0807EDD4 0x0068, 0x0018
	Call sub_08064D10
	PlaySound SFX_STAIRS
	_0807E5F8 0x00000001
	DoPostScriptAction 0x0006
SCRIPT_END
	.2byte 0x0000