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
|
BirthIsland_Exterior_MapScripts:: @ 8165203
map_script 3, BirthIsland_Exterior_MapScript1_165217
map_script 5, BirthIsland_Exterior_MapScript2_165253
map_script 7, BirthIsland_Exterior_MapScript3_165213
.byte 0
BirthIsland_Exterior_MapScript3_165213:: @ 8165213
special sub_80CD008
end
BirthIsland_Exterior_MapScript1_165217:: @ 8165217
setworldmapflag FLAG_WORLD_MAP_BIRTH_ISLAND_EXTERIOR
setvar VAR_0x4010, 150
setvar VAR_SECRET_BASE_MAP, 0
setvar VAR_ALTERING_CAVE_WILD_SET, 0
checkflag FLAG_0x2E4
call_if 1, EventScript_16523C
checkflag FLAG_0x2E4
call_if 0, EventScript_165243
end
EventScript_16523C:: @ 816523C
setflag FLAG_0x099
setflag FLAG_0x09A
return
EventScript_165243:: @ 8165243
checkflag FLAG_0x2F7
goto_if_eq EventScript_1A77A9
clearflag FLAG_0x09A
clearflag FLAG_0x848
return
BirthIsland_Exterior_MapScript2_165253:: @ 8165253
checkflag FLAG_0x807
call_if 1, EventScript_16525D
end
EventScript_16525D:: @ 816525D
specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 7
goto_if 5, EventScript_1A77A9
removeobject 2
return
BirthIsland_Exterior_EventScript_165271:: @ 8165271
lock
faceplayer
special sub_8110AB4
compare_var_to_value VAR_RESULT, 2
goto_if_eq EventScript_1A7AE0
special sub_8112364
special sub_80CCDFC
waitstate
switch VAR_RESULT
case 0, EventScript_1652BA
case 1, EventScript_1652BC
case 2, EventScript_1652C0
case 3, EventScript_1652BE
end
EventScript_1652BA:: @ 81652BA
release
end
EventScript_1652BC:: @ 81652BC
release
end
EventScript_1652BE:: @ 81652BE
release
end
EventScript_1652C0:: @ 81652C0
addobject 2
waitse
setfieldeffectarg 0, 1
setfieldeffectarg 1, 56
setfieldeffectarg 2, 2
dofieldeffect 68
playbgm BGM_FRLG_DEOXYS_EYE, 0
waitfieldeffect 68
applymovement 2, Movement_165353
waitmovement 0
waitse
playmoncry SPECIES_DEOXYS, 2
delay 40
waitmoncry
setvar VAR_LAST_TALKED, 2
setvar VAR_0x8004, SPECIES_DEOXYS
setvar VAR_0x8005, 30
setvar VAR_0x8006, 0
special CreateObedientEnemyMon
setflag FLAG_0x807
special sub_807F9D8
waitstate
clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1
goto_if_eq EventScript_16533A
compare_var_to_value VAR_RESULT, 4
goto_if_eq EventScript_165348
compare_var_to_value VAR_RESULT, 5
goto_if_eq EventScript_165348
setflag FLAG_0x2E4
release
end
EventScript_16533A:: @ 816533A
setflag FLAG_0x2F7
setvar VAR_0x8004, SPECIES_DEOXYS
goto EventScript_1A9236
end
EventScript_165348:: @ 8165348
setvar VAR_0x8004, SPECIES_DEOXYS
goto EventScript_1A9236
end
Movement_165353:: @ 8165353
step_down
step_down
step_down
step_down
step_down
step_down
step_down
step_end
|