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
|
Route128_MapScripts:: @ 815211B
map_script 3, Route128_MapScript1_152126
map_script 2, Route128_MapScript2_152135
.byte 0
Route128_MapScript1_152126:: @ 8152126
call_if_set FLAG_SYS_WEATHER_CTRL, Route128_EventScript_1A02C1
call Route128_EventScript_1A0196
end
Route128_MapScript2_152135:: @ 8152135
map_script_2 VAR_ROUTE128_STATE, 1, Route128_EventScript_15213F
.2byte 0
Route128_EventScript_15213F:: @ 815213F
lockall
delay 20
.ifndef SAPPHIRE
special sub_807E25C
waitstate
.endif
applymovement 4, Route128_Movement_152271
waitmovement 0
msgbox Route128_Text_171EE0, 4
applymovement 4, Route128_Movement_152279
waitmovement 0
msgbox Route128_Text_171F35, 4
closemessage
applymovement 5, Route128_Movement_152293
waitmovement 0
applymovement 4, Route128_Movement_1A0841
waitmovement 0
msgbox Route128_Text_171F4B, 4
closemessage
applymovement 5, Route128_Movement_1522A1
waitmovement 0
applymovement 255, Route128_Movement_1A0841
waitmovement 0
msgbox Route128_Text_172008, 4
closemessage
applymovement 4, Route128_Movement_15227E
applymovement 255, Route128_Movement_1A083F
applymovement 5, Route128_Movement_152290
waitmovement 0
msgbox Route128_Text_17210B, 4
closemessage
delay 40
applymovement 5, Route128_Movement_152296
applymovement 4, Route128_Movement_152283
waitmovement 0
removeobject 5
removeobject 4
delay 100
setfieldeffectargument 0, 1
dofieldeffect 30
waitfieldeffect 30
addobject 3
applymovement 3, Route128_Movement_15226F
waitmovement 0
applymovement 255, Route128_Movement_1A0843
waitmovement 0
msgbox Route128_Text_172181, 4
closemessage
applymovement 3, Route128_Movement_15226D
applymovement 255, Route128_Movement_1A0841
waitmovement 0
.ifdef SAPPHIRE
msgbox Route128_Text_1721A2, 4
.else
msgbox Route128_Text_1722A1, 4
.endif
applymovement 3, Route128_Movement_1A0845
waitmovement 0
msgbox Route128_Text_1723BE, 4
closemessage
applymovement 3, Route128_Movement_1A0845
waitmovement 0
delay 50
setfieldeffectargument 0, 1
dofieldeffect 30
delay 15
removeobject 3
waitfieldeffect 30
setvar VAR_ROUTE128_STATE, 2
releaseall
end
@ 815225E
step_17
step_end
@ 8152260
step_left
step_left
step_left
step_left
step_left
step_left
step_up
step_up
step_up
step_up
step_up
step_up
step_end
Route128_Movement_15226D:: @ 815226D
step_up
step_end
Route128_Movement_15226F:: @ 815226F
step_17
step_end
Route128_Movement_152271:: @ 8152271
step_15
step_27
step_14
step_28
step_14
step_14
step_25
step_end
Route128_Movement_152279:: @ 8152279
step_40
slow_step_up
step_14
step_41
step_end
Route128_Movement_15227E:: @ 815227E
step_17
step_17
step_17
step_28
step_end
Route128_Movement_152283:: @ 8152283
step_14
step_14
step_16
step_17
step_16
step_16
step_16
step_16
step_16
step_16
step_16
step_16
step_end
Route128_Movement_152290:: @ 8152290
step_left
step_left
step_end
Route128_Movement_152293:: @ 8152293
step_left
step_25
step_end
Route128_Movement_152296:: @ 8152296
step_17
step_17
step_17
step_16
step_16
step_16
step_16
step_16
step_16
step_16
step_end
Route128_Movement_1522A1:: @ 81522A1
step_right
step_25
step_end
Route128_EventScript_1522A4:: @ 81522A4
trainerbattle 0, OPPONENT_ISAIAH_1, 0, Route128_Text_1C1C67, Route128_Text_1C1C95
specialvar RESULT, ShouldTryRematchBattle
compare RESULT, 1
goto_if_eq Route128_EventScript_1522CB
msgbox Route128_Text_1C1CC3, 6
end
Route128_EventScript_1522CB:: @ 81522CB
trainerbattle 5, OPPONENT_ISAIAH_1, 0, Route128_Text_1C1D02, Route128_Text_1C1D45
msgbox Route128_Text_1C1D6B, 6
end
Route128_EventScript_1522E2:: @ 81522E2
trainerbattle 0, OPPONENT_KATELYN_1, 0, Route128_Text_1C1DB0, Route128_Text_1C1E25
specialvar RESULT, ShouldTryRematchBattle
compare RESULT, 1
goto_if_eq Route128_EventScript_152309
msgbox Route128_Text_1C1E4A, 6
end
Route128_EventScript_152309:: @ 8152309
trainerbattle 5, OPPONENT_KATELYN_1, 0, Route128_Text_1C1E90, Route128_Text_1C1EFA
msgbox Route128_Text_1C1F2E, 6
end
Route128_EventScript_152320:: @ 8152320
trainerbattle 0, OPPONENT_ALEXA, 0, Route128_Text_1C1F6D, Route128_Text_1C1FCC
msgbox Route128_Text_1C1FE8, 6
end
Route128_EventScript_152337:: @ 8152337
trainerbattle 0, OPPONENT_RUBEN, 0, Route128_Text_1C202C, Route128_Text_1C2051
msgbox Route128_Text_1C2060, 6
end
Route128_EventScript_15234E:: @ 815234E
trainerbattle 0, OPPONENT_WAYNE, 0, Route128_Text_1C2090, Route128_Text_1C20FC
msgbox Route128_Text_1C210D, 6
end
|