summaryrefslogtreecommitdiff
path: root/data/maps/PokemonTower_7F/scripts.inc
blob: f39d15c7ea4b89c3eab8a1569e737131ecd5a637 (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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
PokemonTower_7F_MapScripts:: @ 8163559
	.byte 0

PokemonTower_7F_EventScript_16355A:: @ 816355A
	lock
	faceplayer
	famechecker FAMECHECKER_MRFUJI, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005
	setflag FLAG_HIDE_TOWER_FUJI
	clearflag FLAG_HIDE_POKEHOUSE_FUJI
	setflag FLAG_RESCUED_MR_FUJI
	msgbox gUnknown_817A529
	closemessage
	warp MAP_LAVENDER_TOWN_VOLUNTEER_POKEMON_HOUSE, 255, 4, 7
	waitstate
	release
	end

PokemonTower_7F_EventScript_163586:: @ 8163586
	trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_19, 0, Text_17A380, Text_17A3A4, EventScript_1635A1
	msgbox gUnknown_817A3AF, 6
	end

EventScript_1635A1:: @ 81635A1
	msgbox gUnknown_817A3AF
	closemessage
	getplayerxy VAR_0x8004, VAR_0x8005
	compare_var_to_value VAR_0x8004, 10
	goto_if eq, EventScript_1635E0
	compare_var_to_value VAR_0x8004, 11
	goto_if eq, EventScript_1635F0
	compare_var_to_value VAR_0x8004, 9
	goto_if eq, EventScript_163600
	applymovement 2, Movement_16362C
	waitmovement 0
	goto EventScript_163616
	end

EventScript_1635E0:: @ 81635E0
	applymovement 2, Movement_16361B
	waitmovement 0
	goto EventScript_163616
	end

EventScript_1635F0:: @ 81635F0
	applymovement 2, Movement_163624
	waitmovement 0
	goto EventScript_163616
	end

EventScript_163600:: @ 8163600
	applymovement 2, Movement_163633
	waitmovement 0
	playse SE_KAIDAN
	delay 25
	goto EventScript_163616
	end

EventScript_163616:: @ 8163616
	removeobject 2
	release
	end

Movement_16361B:: @ 816361B
	step_10
	step_13
	step_10
	step_10
	step_10
	step_13
	step_10
	step_10
	step_end

Movement_163624:: @ 8163624
	step_10
	step_10
	step_10
	step_10
	step_13
	step_10
	step_10
	step_end

Movement_16362C:: @ 816362C
	step_10
	step_10
	step_10
	step_10
	step_10
	step_10
	step_end

Movement_163633:: @ 8163633
	step_13
	step_10
	step_10
	step_10
	step_10
	step_13
	step_10
	step_10
	step_2f
	step_end

PokemonTower_7F_EventScript_16363D:: @ 816363D
	trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_20, 0, Text_17A3CD, Text_17A466, EventScript_163658
	msgbox gUnknown_817A477, 6
	end

EventScript_163658:: @ 8163658
	famechecker FAMECHECKER_MRFUJI, 1
	msgbox gUnknown_817A477
	closemessage
	getplayerxy VAR_0x8004, VAR_0x8005
	compare_var_to_value VAR_0x8004, 12
	goto_if eq, EventScript_163699
	compare_var_to_value VAR_0x8004, 13
	goto_if eq, EventScript_1636A9
	applymovement 3, Movement_1636C6
	waitmovement 0
	goto EventScript_1636B9
	end

EventScript_163699:: @ 8163699
	applymovement 3, Movement_1636BE
	waitmovement 0
	goto EventScript_1636B9
	end

EventScript_1636A9:: @ 81636A9
	applymovement 3, Movement_1636CD
	waitmovement 0
	goto EventScript_1636B9
	end

EventScript_1636B9:: @ 81636B9
	removeobject 3
	release
	end

Movement_1636BE:: @ 81636BE
	step_10
	step_10
	step_10
	step_12
	step_10
	step_10
	step_10
	step_end

Movement_1636C6:: @ 81636C6
	step_10
	step_10
	step_10
	step_10
	step_10
	step_10
	step_end

Movement_1636CD:: @ 81636CD
	step_12
	step_10
	step_10
	step_10
	step_10
	step_10
	step_10
	step_10
	step_end

PokemonTower_7F_EventScript_1636D6:: @ 81636D6
	trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_21, 0, Text_17A4CF, Text_17A4EE, EventScript_1636F1
	msgbox gUnknown_817A506, 6
	end

EventScript_1636F1:: @ 81636F1
	msgbox gUnknown_817A506
	closemessage
	getplayerxy VAR_0x8004, VAR_0x8005
	compare_var_to_value VAR_0x8004, 10
	goto_if eq, EventScript_163725
	compare_var_to_value VAR_0x8004, 9
	goto_if eq, EventScript_163735
	applymovement 4, Movement_163754
	waitmovement 0
	goto EventScript_163745
	end

EventScript_163725:: @ 8163725
	applymovement 4, Movement_16374C
	waitmovement 0
	goto EventScript_163745
	end

EventScript_163735:: @ 8163735
	applymovement 4, Movement_16375B
	waitmovement 0
	goto EventScript_163745
	end

EventScript_163745:: @ 8163745
	removeobject 4
	release
	end

EventScript_16374A:: @ 816374A
	release
	end

Movement_16374C:: @ 816374C
	step_10
	step_10
	step_10
	step_10
	step_10
	step_13
	step_10
	step_end

Movement_163754:: @ 8163754
	step_10
	step_10
	step_10
	step_10
	step_10
	step_10
	step_end

Movement_16375B:: @ 816375B
	step_13
	step_10
	step_10
	step_10
	step_10
	step_10
	step_10
	step_10
	step_end