summaryrefslogtreecommitdiff
path: root/data/maps/FourIsland_IcefallCave_Back/scripts.inc
blob: 684c7506cf612cc51314355b184487a28ac2f805 (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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
FourIsland_IcefallCave_Back_MapScripts:: @ 8163D82
	map_script 3, FourIsland_IcefallCave_Back_MapScript1_163D88
	.byte 0

FourIsland_IcefallCave_Back_MapScript1_163D88:: @ 8163D88
	compare_var_to_value VAR_MAP_SCENE_ICEFALL_CAVE_BACK, 1
	call_if eq, EventScript_163D94
	end

EventScript_163D94:: @ 8163D94
	setflag FLAG_HIDE_ICEFALL_CAVE_LORELEI
	return

FourIsland_IcefallCave_Back_EventScript_163D98:: @ 8163D98
	lockall
	textcolor 1
	msgbox gUnknown_817B04F
	applymovement 1, Movement_163EE8
	waitmovement 0
	textcolor 0
	msgbox gUnknown_817B0B9
	closemessage
	playse SE_PIN
	applymovement 3, Movement_1A75DB
	waitmovement 0
	applymovement 3, Movement_1A75ED
	waitmovement 0
	applymovement 3, Movement_1A75DD
	waitmovement 0
	textcolor 1
	msgbox gUnknown_817B109
	closemessage
	applymovement 3, Movement_1A75EB
	waitmovement 0
	delay 18
	applymovement 3, Movement_1A75ED
	waitmovement 0
	delay 35
	applymovement 4, Movement_163F11
	applymovement 3, Movement_163F18
	applymovement 255, Movement_163EDD
	waitmovement 0
	applymovement 2, Movement_163EE8
	waitmovement 0
	playbgm MUS_ROCKET, 0
	textcolor 0
	msgbox gUnknown_817B20B
	setvar VAR_LAST_TALKED, 4
	trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_TEAM_ROCKET_GRUNT_45, 0, Text_17B251
	applymovement 3, Movement_163F1B
	waitmovement 0
	textcolor 1
	msgbox gUnknown_817B269
	textcolor 0
	msgbox gUnknown_817B2EF
	textcolor 1
	message Text_17B313
	waitmessage
	waitse
	playmoncry SPECIES_LAPRAS, 2
	waitbuttonpress
	waitmoncry
	applymovement 1, Movement_163EEE
	waitmovement 0
	textcolor 0
	msgbox gUnknown_817B399
	closemessage
	applymovement 3, Movement_163F1D
	applymovement 255, Movement_163EE2
	applymovement 1, Movement_163EF0
	applymovement 2, Movement_163EFA
	applymovement 4, Movement_163F05
	waitmovement 0
	removeobject 1
	removeobject 2
	removeobject 4
	delay 50
	applymovement 3, Movement_163F23
	waitmovement 0
	applymovement 255, Movement_1A75E7
	waitmovement 0
	textcolor 1
	msgbox gUnknown_817B457
	setflag FLAG_HIDE_RUIN_VALLEY_SCIENTIST
	clearflag FLAG_HIDE_LORELEI_IN_HER_HOUSE
	setvar VAR_MAP_SCENE_ICEFALL_CAVE_BACK, 1
	releaseall
	end

Movement_163EDD:: @ 8163EDD
	step_11
	step_11
	step_13
	step_11
	step_end

Movement_163EE2:: @ 8163EE2
	step_1c
	step_2f
	step_1c
	step_1c
	step_2d
	step_end

Movement_163EE8:: @ 8163EE8
	step_25
	step_end

gUnknown_163EEA:: @ 8163EEA
	step_4c
	step_13
	step_4d
	step_end

Movement_163EEE:: @ 8163EEE
	step_29
	step_end

Movement_163EF0:: @ 8163EF0
	step_13
	step_10
	step_1d
	step_1d
	step_1d
	step_1d
	step_1d
	step_1d
	step_1d
	step_end

Movement_163EFA:: @ 8163EFA
	step_1c
	step_12
	step_10
	step_1d
	step_1d
	step_1d
	step_1d
	step_1d
	step_1d
	step_1d
	step_end

Movement_163F05:: @ 8163F05
	step_1c
	step_10
	step_1c
	step_10
	step_20
	step_20
	step_1d
	step_1d
	step_1d
	step_1d
	step_1d
	step_end

Movement_163F11:: @ 8163F11
	step_1c
	step_1b
	step_30
	step_end

Movement_163F15:: @ 8163F15
	step_12
	step_12
	step_end

Movement_163F18:: @ 8163F18
	step_12
	step_11
	step_end

Movement_163F1B:: @ 8163F1B
	step_26
	step_end

Movement_163F1D:: @ 8163F1D
	step_1b
	step_30
	step_1c
	step_1c
	step_2d
	step_end

Movement_163F23:: @ 8163F23
	step_13
	step_end

FourIsland_IcefallCave_Back_EventScript_163F25:: @ 8163F25
	msgbox gUnknown_817B457, 2
	end