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
|
NavelRock_Summit_MapScripts:: @ 8164F9F
map_script 3, NavelRock_Summit_MapScript1_164FAA
map_script 5, NavelRock_Summit_MapScript2_164FDD
.byte 0
NavelRock_Summit_MapScript1_164FAA:: @ 8164FAA
checkflag FLAG_FOUGHT_HO_OH
call_if TRUE, EventScript_164FBD
checkflag FLAG_FOUGHT_HO_OH
call_if FALSE, EventScript_164FC6
end
EventScript_164FBD:: @ 8164FBD
setvar VAR_0x4001, 1
setflag FLAG_HIDE_HO_OH
return
EventScript_164FC6:: @ 8164FC6
setvar VAR_0x4001, 1
checkflag FLAG_HO_OH_FLEW_AWAY
goto_if TRUE, EventScript_1A77A9
setvar VAR_0x4001, 0
clearflag FLAG_HIDE_HO_OH
return
NavelRock_Summit_MapScript2_164FDD:: @ 8164FDD
checkflag FLAG_SYS_SPECIAL_WILD_BATTLE
call_if TRUE, EventScript_164FE7
end
EventScript_164FE7:: @ 8164FE7
specialvar VAR_RESULT, Special_GetBattleOutcome
compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT
goto_if ne, EventScript_1A77A9
removeobject 1
return
NavelRock_Summit_EventScript_164FFB:: @ 8164FFB
special sub_8110AB4
compare_var_to_value VAR_RESULT, 2
goto_if eq, EventScript_1A7AE0
special sub_8112364
lockall
setvar VAR_0x4001, 1
special SpawnCameraObject
setvar VAR_0x8004, 3
setvar VAR_0x8005, 35
special Special_LoopWingFlapSound
applymovement 1, Movement_1650E0
applymovement 127, Movement_1650CD
waitmovement 0
delay 50
setweather 0
doweather
waitse
playmoncry SPECIES_HO_OH, 2
delay 30
waitmoncry
delay 60
setvar VAR_0x8004, 3
setvar VAR_0x8005, 35
special Special_LoopWingFlapSound
applymovement 127, Movement_1650D1
applymovement 1, Movement_1650D7
waitmovement 0
special RemoveCameraObject
setvar VAR_0x8004, SPECIES_HO_OH
setvar VAR_0x8005, 70
setvar VAR_0x8006, 0
special CreateObedientEnemyMon
setflag FLAG_SYS_SPECIAL_WILD_BATTLE
special Special_StartLegendaryBattle
waitstate
clearflag FLAG_SYS_SPECIAL_WILD_BATTLE
setvar VAR_LAST_TALKED, 1
specialvar VAR_RESULT, Special_GetBattleOutcome
compare_var_to_value VAR_RESULT, B_OUTCOME_WON
goto_if eq, EventScript_1650B4
compare_var_to_value VAR_RESULT, B_OUTCOME_RAN
goto_if eq, EventScript_1650C2
compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if eq, EventScript_1650C2
setflag FLAG_FOUGHT_HO_OH
releaseall
end
EventScript_1650B4:: @ 81650B4
setflag FLAG_HO_OH_FLEW_AWAY
setvar VAR_0x8004, SPECIES_HO_OH
goto EventScript_1A9236
end
EventScript_1650C2:: @ 81650C2
setvar VAR_0x8004, SPECIES_HO_OH
goto EventScript_1A9236
end
Movement_1650CD:: @ 81650CD
step_11
step_11
step_11
step_end
Movement_1650D1:: @ 81650D1
step_1c
step_1c
step_10
step_10
step_10
step_end
Movement_1650D7:: @ 81650D7
step_10
step_10
step_10
step_10
step_10
step_25
step_1c
step_1c
step_end
Movement_1650E0:: @ 81650E0
step_1c
step_1c
step_25
step_25
step_25
step_25
step_end
|