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 MAP_SCRIPT_ON_TRANSITION, Route128_MapScript1_152126
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route128_MapScript2_152135
.byte 0
Route128_MapScript1_152126:: @ 8152126
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetLegendaryWeather
call Common_EventScript_SetupEvilTeamGfxIds
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, MSGBOX_DEFAULT
applymovement 4, Route128_Movement_152279
waitmovement 0
msgbox Route128_Text_171F35, MSGBOX_DEFAULT
closemessage
applymovement 5, Route128_Movement_152293
waitmovement 0
applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox Route128_Text_171F4B, MSGBOX_DEFAULT
closemessage
applymovement 5, Route128_Movement_1522A1
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox Route128_Text_172008, MSGBOX_DEFAULT
closemessage
applymovement 4, Route128_Movement_15227E
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
applymovement 5, Route128_Movement_152290
waitmovement 0
msgbox Route128_Text_17210B, MSGBOX_DEFAULT
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 FLDEFF_NPCFLY_OUT
waitfieldeffect FLDEFF_NPCFLY_OUT
addobject 3
applymovement 3, Route128_Movement_15226F
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox Route128_Text_172181, MSGBOX_DEFAULT
closemessage
applymovement 3, Route128_Movement_15226D
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
.ifdef SAPPHIRE
msgbox Route128_Text_1721A2, MSGBOX_DEFAULT
.else
msgbox Route128_Text_1722A1, MSGBOX_DEFAULT
.endif
applymovement 3, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox Route128_Text_1723BE, MSGBOX_DEFAULT
closemessage
applymovement 3, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 50
setfieldeffectargument 0, 1
dofieldeffect FLDEFF_NPCFLY_OUT
delay 15
removeobject 3
waitfieldeffect FLDEFF_NPCFLY_OUT
setvar VAR_ROUTE128_STATE, 2
releaseall
end
@ 815225E
walk_fast_left
step_end
@ 8152260
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_up
walk_up
walk_up
walk_up
walk_up
walk_up
step_end
Route128_Movement_15226D:: @ 815226D
walk_up
step_end
Route128_Movement_15226F:: @ 815226F
walk_fast_left
step_end
Route128_Movement_152271:: @ 8152271
walk_fast_down
walk_in_place_fastest_left
delay_16
walk_in_place_fastest_right
delay_16
delay_16
walk_in_place_fastest_down
step_end
Route128_Movement_152279:: @ 8152279
lock_facing_direction
walk_slow_up
delay_16
unlock_facing_direction
step_end
Route128_Movement_15227E:: @ 815227E
walk_fast_left
walk_fast_left
walk_fast_left
walk_in_place_fastest_right
step_end
Route128_Movement_152283:: @ 8152283
delay_16
delay_16
walk_fast_up
walk_fast_left
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
step_end
Route128_Movement_152290:: @ 8152290
walk_left
walk_left
step_end
Route128_Movement_152293:: @ 8152293
walk_left
walk_in_place_fastest_down
step_end
Route128_Movement_152296:: @ 8152296
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
step_end
Route128_Movement_1522A1:: @ 81522A1
walk_right
walk_in_place_fastest_down
step_end
Route128_EventScript_1522A4:: @ 81522A4
trainerbattle_single TRAINER_ISAIAH_1, Route128_Text_1C1C67, Route128_Text_1C1C95
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
goto_if_eq Route128_EventScript_1522CB
msgbox Route128_Text_1C1CC3, MSGBOX_AUTOCLOSE
end
Route128_EventScript_1522CB:: @ 81522CB
trainerbattle_rematch TRAINER_ISAIAH_1, Route128_Text_1C1D02, Route128_Text_1C1D45
msgbox Route128_Text_1C1D6B, MSGBOX_AUTOCLOSE
end
Route128_EventScript_1522E2:: @ 81522E2
trainerbattle_single TRAINER_KATELYN_1, Route128_Text_1C1DB0, Route128_Text_1C1E25
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
goto_if_eq Route128_EventScript_152309
msgbox Route128_Text_1C1E4A, MSGBOX_AUTOCLOSE
end
Route128_EventScript_152309:: @ 8152309
trainerbattle_rematch TRAINER_KATELYN_1, Route128_Text_1C1E90, Route128_Text_1C1EFA
msgbox Route128_Text_1C1F2E, MSGBOX_AUTOCLOSE
end
Route128_EventScript_152320:: @ 8152320
trainerbattle_single TRAINER_ALEXA, Route128_Text_1C1F6D, Route128_Text_1C1FCC
msgbox Route128_Text_1C1FE8, MSGBOX_AUTOCLOSE
end
Route128_EventScript_152337:: @ 8152337
trainerbattle_single TRAINER_RUBEN, Route128_Text_1C202C, Route128_Text_1C2051
msgbox Route128_Text_1C2060, MSGBOX_AUTOCLOSE
end
Route128_EventScript_15234E:: @ 815234E
trainerbattle_single TRAINER_WAYNE, Route128_Text_1C2090, Route128_Text_1C20FC
msgbox Route128_Text_1C210D, MSGBOX_AUTOCLOSE
end
|