summaryrefslogtreecommitdiff
path: root/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
blob: bddcfa74bf68c989182c08e50eb4573b652db1ee (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
EverGrandeCity_ChampionsRoom_MapScripts:: @ 815B7AF
	map_script 3, EverGrandeCity_ChampionsRoom_MapScript1_15B7BF
	map_script 4, EverGrandeCity_ChampionsRoom_MapScript2_15B7C5
	map_script 2, EverGrandeCity_ChampionsRoom_MapScript2_15B7D4
	.byte 0

EverGrandeCity_ChampionsRoom_MapScript1_15B7BF:: @ 815B7BF
	call EverGrandeCity_ChampionsRoom_EventScript_1A014E
	end

EverGrandeCity_ChampionsRoom_MapScript2_15B7C5:: @ 815B7C5
	map_script_2 0x4001, 0, EverGrandeCity_ChampionsRoom_EventScript_15B7CF
	.2byte 0

EverGrandeCity_ChampionsRoom_EventScript_15B7CF:: @ 815B7CF
	spriteface 255, 2
	end

EverGrandeCity_ChampionsRoom_MapScript2_15B7D4:: @ 815B7D4
	map_script_2 0x4001, 0, EverGrandeCity_ChampionsRoom_EventScript_15B7DE
	.2byte 0

EverGrandeCity_ChampionsRoom_EventScript_15B7DE:: @ 815B7DE
	lockall
	move 255, EverGrandeCity_ChampionsRoom_Movement_1A084E
	waitmove 0
	pause 40
	move 255, EverGrandeCity_ChampionsRoom_Movement_15B802
	waitmove 0
	setvar 0x4001, 1
	jump EverGrandeCity_ChampionsRoom_EventScript_15B805
	releaseall
	end

EverGrandeCity_ChampionsRoom_Movement_15B802:: @ 815B802
	step_up
	step_up
	step_end

EverGrandeCity_ChampionsRoom_EventScript_15B805:: @ 815B805
	playmusic 454, 0
	msgbox EverGrandeCity_ChampionsRoom_Text_190F9C, 4
	trainerbattle 3, OPPONENT_STEVEN, 0, EverGrandeCity_ChampionsRoom_Text_1910A0
	jump EverGrandeCity_ChampionsRoom_EventScript_15B821
	end

EverGrandeCity_ChampionsRoom_EventScript_15B821:: @ 815B821
	playsfx 8
	setmaptile 6, 1, 838, 0
	setmaptile 6, 2, 839, 0
	special DrawWholeMapView
	msgbox EverGrandeCity_ChampionsRoom_Text_1910FE, 4
	closebutton
	playsfx 8
	checkgender
	compare RESULT, 0
	callif 1, EverGrandeCity_ChampionsRoom_EventScript_15B87C
	compare RESULT, 1
	callif 1, EverGrandeCity_ChampionsRoom_EventScript_15B881
	reappear 2
	call EverGrandeCity_ChampionsRoom_EventScript_15B9BD
	checkgender
	compare RESULT, 0
	jumpeq EverGrandeCity_ChampionsRoom_EventScript_15B886
	compare RESULT, 1
	jumpeq EverGrandeCity_ChampionsRoom_EventScript_15B8BB
	end

EverGrandeCity_ChampionsRoom_EventScript_15B87C:: @ 815B87C
	playmusic 415, 0
	return

EverGrandeCity_ChampionsRoom_EventScript_15B881:: @ 815B881
	playmusic 421, 0
	return

EverGrandeCity_ChampionsRoom_EventScript_15B886:: @ 815B886
	msgbox EverGrandeCity_ChampionsRoom_Text_191225, 4
	pause 40
	playsfx 21
	move 2, EverGrandeCity_ChampionsRoom_Movement_1A0833
	waitmove 0
	move 2, EverGrandeCity_ChampionsRoom_Movement_1A0835
	waitmove 0
	call EverGrandeCity_ChampionsRoom_EventScript_15B9D2
	msgbox EverGrandeCity_ChampionsRoom_Text_191268, 4
	jump EverGrandeCity_ChampionsRoom_EventScript_15B8F0
	end

EverGrandeCity_ChampionsRoom_EventScript_15B8BB:: @ 815B8BB
	msgbox EverGrandeCity_ChampionsRoom_Text_1912B3, 4
	pause 40
	playsfx 21
	move 2, EverGrandeCity_ChampionsRoom_Movement_1A0833
	waitmove 0
	move 2, EverGrandeCity_ChampionsRoom_Movement_1A0835
	waitmove 0
	call EverGrandeCity_ChampionsRoom_EventScript_15B9D2
	msgbox EverGrandeCity_ChampionsRoom_Text_191305, 4
	jump EverGrandeCity_ChampionsRoom_EventScript_15B8F0
	end

EverGrandeCity_ChampionsRoom_EventScript_15B8F0:: @ 815B8F0
	closebutton
	reappear 3
	move 3, EverGrandeCity_ChampionsRoom_Movement_15BA03
	waitmove 0
	move 255, EverGrandeCity_ChampionsRoom_Movement_1A0843
	waitmove 0
	msgbox EverGrandeCity_ChampionsRoom_Text_19134D, 4
	call EverGrandeCity_ChampionsRoom_EventScript_1A03B0
	msgbox EverGrandeCity_ChampionsRoom_Text_1914C6, 4
	move 1, EverGrandeCity_ChampionsRoom_Movement_1A0841
	waitmove 0
	pause 20
	move 1, EverGrandeCity_ChampionsRoom_Movement_1A0845
	waitmove 0
	msgbox EverGrandeCity_ChampionsRoom_Text_191512, 4
	closebutton
	pause 30
	move 1, EverGrandeCity_ChampionsRoom_Movement_15B9FB
	move 255, EverGrandeCity_ChampionsRoom_Movement_15B9DD
	move 3, EverGrandeCity_ChampionsRoom_Movement_1A0841
	move 2, EverGrandeCity_ChampionsRoom_Movement_15B9F8
	waitmove 0
	pause 20
	move 255, EverGrandeCity_ChampionsRoom_Movement_1A0845
	waitmove 0
	msgbox EverGrandeCity_ChampionsRoom_Text_191546, 4
	checkgender
	compare RESULT, 0
	callif 1, EverGrandeCity_ChampionsRoom_EventScript_15B9AB
	compare RESULT, 1
	callif 1, EverGrandeCity_ChampionsRoom_EventScript_15B9B4
	closebutton
	move 1, EverGrandeCity_ChampionsRoom_Movement_15B9FF
	move 255, EverGrandeCity_ChampionsRoom_Movement_15B9E0
	waitmove 0
	setflag 781
	warp EverGrandeCity_HallOfFame, 255, 7, 16
	waitstate
	releaseall
	end

EverGrandeCity_ChampionsRoom_EventScript_15B9AB:: @ 815B9AB
	msgbox EverGrandeCity_ChampionsRoom_Text_1915D7, 4
	return

EverGrandeCity_ChampionsRoom_EventScript_15B9B4:: @ 815B9B4
	msgbox EverGrandeCity_ChampionsRoom_Text_191675, 4
	return

EverGrandeCity_ChampionsRoom_EventScript_15B9BD:: @ 815B9BD
	move 2, EverGrandeCity_ChampionsRoom_Movement_15B9E6
	waitmove 0
	move 255, EverGrandeCity_ChampionsRoom_Movement_1A083F
	waitmove 0
	return

EverGrandeCity_ChampionsRoom_EventScript_15B9D2:: @ 815B9D2
	move 2, EverGrandeCity_ChampionsRoom_Movement_15B9EF
	waitmove 0
	return

EverGrandeCity_ChampionsRoom_Movement_15B9DD:: @ 815B9DD
	step_up
	step_up
	step_end

EverGrandeCity_ChampionsRoom_Movement_15B9E0:: @ 815B9E0
	step_up
	step_14
	step_up
	step_13
	step_54
	step_end

EverGrandeCity_ChampionsRoom_Movement_15B9E6:: @ 815B9E6
	step_up
	step_up
	step_up
	step_up
	step_up
	step_left
	step_up
	step_28
	step_end

EverGrandeCity_ChampionsRoom_Movement_15B9EF:: @ 815B9EF
	step_26
	step_14
	step_28
	step_14
	step_26
	step_13
	step_28
	step_14
	step_end

EverGrandeCity_ChampionsRoom_Movement_15B9F8:: @ 815B9F8
	step_right
	step_up
	step_end

EverGrandeCity_ChampionsRoom_Movement_15B9FB:: @ 815B9FB
	step_up
	step_up
	step_25
	step_end

EverGrandeCity_ChampionsRoom_Movement_15B9FF:: @ 815B9FF
	step_up
	step_13
	step_54
	step_end

EverGrandeCity_ChampionsRoom_Movement_15BA03:: @ 815BA03
	step_up
	step_up
	step_up
	step_up
	step_up
	step_right
	step_up
	step_27
	step_end