1 |
function scr_determine_end_battle_flags_yellowscr_determine_end_battle_flags_yellowfunction scr_determine_end_battle_flags_yellow() //gml_Script_scr_determine_end_battle_flags_yellow
{
if (global.battling_boss == true)
var battle_enemy_name = global.battle_enemy_name
else
{
var act_number = global.act_number
switch act_number
{
case 1:
battle_enemy_name = global.battle_enemy_name_1
break
case 2:
battle_enemy_name = global.battle_enemy_name_2
break
case 3:
battle_enemy_name = global.battle_enemy_name_3
break
default:
battle_enemy_name = global.battle_enemy_name_1
}
}
if (battle_enemy_name == "froggit intro")
{
if (global.enemy_dead == true)
global.flag[9 Killed the Intro Froggit] = true
global.ruins_flag[0] = 1
}
else if (battle_enemy_name == "flowey intro")
global.flag[24 Flowey introduction progress] = 1
else if (battle_enemy_name == "flier a")
global.dark_ruins_flag[3] = 1
else if (battle_enemy_name == "penilla a")
global.dark_ruins_flag[7] = 1
else if (battle_enemy_name == "sweet corn a")
global.dark_ruins_flag[8] = 1
else if (battle_enemy_name == "crispy scroll a")
global.dark_ruins_flag[14] = 1
else if (battle_enemy_name == "rorrim a")
global.dark_ruins_flag[12] = 1
else if (battle_enemy_name == "decibat")
{
if (global.enemy_spared == true && global.action_2_selected_count >= 5)
global.flag[15 Decibat fate] = 1
else if (global.enemy_dead == true)
global.flag[15 Decibat fate] = 3
else
global.flag[15 Decibat fate] = 2
}
else if (battle_enemy_name == "dalv")
{
if (global.enemy_spared == true)
{
global.flag[17 Dalv fate] = 1
if (global.enemy_mode == 1)
global.flag[17 Dalv fate] = 3
if (global.enemy_mode == 2)
global.flag[17 Dalv fate] = 4
}
else
global.flag[17 Dalv fate] = 2
ds_list_clear(global.encounter_list)
}
else if (battle_enemy_name == "micro froggit")
{
if (global.enemy_spared == true)
global.flag[18 Micro Froggit fate] = 1
else
{
if (global.route == 2)
global.route = 1
global.flag[18 Micro Froggit fate] = 2
}
}
else if (battle_enemy_name == "frostermit a")
global.snowdin_flag_enemy[1] = 1
else if (battle_enemy_name == "insomnitot a")
global.snowdin_flag_enemy[2] = 1
else if (battle_enemy_name == "know cone a")
global.snowdin_flag_enemy[3] = 1
else if (battle_enemy_name == "trihecta" || battle_enemy_name == "tri")
global.snowdin_flag_enemy[4] = 1
else if (battle_enemy_name == "shufflers")
{
global.snowdin_flag[8] = 1
global.sound_carry_overworld = false
}
else if (battle_enemy_name == "martlet pacifist")
{
if (global.enemy_mode == 10)
global.snowdin_flag[13] = 2
else if (global.enemy_mode == 11)
global.snowdin_flag[13] = 1
else if (global.enemy_mode == 12)
global.snowdin_flag[13] = 1
ds_list_clear(global.encounter_list)
}
else if (battle_enemy_name == "martlet genocide")
{
if (global.enemy_mode == 5)
... () //gml_Script_scr_determine_end_battle_flags_yellow |
2 |
{ |
3 |
if (global.battling_boss == true) |
4 |
var battle_enemy_name = global.battle_enemy_name |
5 |
else |
6 |
{ |
7 |
var act_number = global.act_number |
8 |
switch act_number |
9 |
{ |
10 |
case 1: |
11 |
battle_enemy_name = global.battle_enemy_name_1 |
12 |
break |
13 |
case 2: |
14 |
battle_enemy_name = global.battle_enemy_name_2 |
15 |
break |
16 |
case 3: |
17 |
battle_enemy_name = global.battle_enemy_name_3 |
18 |
break |
19 |
default: |
20 |
battle_enemy_name = global.battle_enemy_name_1 |
21 |
} |
22 |
|
23 |
} |
24 |
if (battle_enemy_name == "froggit intro") |
25 |
{ |
26 |
if (global.enemy_dead == true) |
27 |
global.flag[9 Killed the Intro Froggit] = true |
28 |
global.ruins_flag[0] = 1 |
29 |
} |
30 |
else if (battle_enemy_name == "flowey intro") |
31 |
global.flag[24 Flowey introduction progress] = 1 |
32 |
else if (battle_enemy_name == "flier a") |
33 |
global.dark_ruins_flag[3] = 1 |
34 |
else if (battle_enemy_name == "penilla a") |
35 |
global.dark_ruins_flag[7] = 1 |
36 |
else if (battle_enemy_name == "sweet corn a") |
37 |
global.dark_ruins_flag[8] = 1 |
38 |
else if (battle_enemy_name == "crispy scroll a") |
39 |
global.dark_ruins_flag[14] = 1 |
40 |
else if (battle_enemy_name == "rorrim a") |
41 |
global.dark_ruins_flag[12] = 1 |
42 |
else if (battle_enemy_name == "decibat") |
43 |
{ |
44 |
if (global.enemy_spared == true && global.action_2_selected_count >= 5) |
45 |
global.flag[15 Decibat fate] = 1 |
46 |
else if (global.enemy_dead == true) |
47 |
global.flag[15 Decibat fate] = 3 |
48 |
else |
49 |
global.flag[15 Decibat fate] = 2 |
50 |
} |
51 |
else if (battle_enemy_name == "dalv") |
52 |
{ |
53 |
if (global.enemy_spared == true) |
54 |
{ |
55 |
global.flag[17 Dalv fate] = 1 |
56 |
if (global.enemy_mode == 1) |
57 |
global.flag[17 Dalv fate] = 3 |
58 |
if (global.enemy_mode == 2) |
59 |
global.flag[17 Dalv fate] = 4 |
60 |
} |
61 |
else |
62 |
global.flag[17 Dalv fate] = 2 |
63 |
ds_list_clear(global.encounter_list) |
64 |
} |
65 |
else if (battle_enemy_name == "micro froggit") |
66 |
{ |
67 |
if (global.enemy_spared == true) |
68 |
global.flag[18 Micro Froggit fate] = 1 |
69 |
else |
70 |
{ |
71 |
if (global.route == 2) |
72 |
global.route = 1 |
73 |
global.flag[18 Micro Froggit fate] = 2 |
74 |
} |
75 |
} |
76 |
else if (battle_enemy_name == "frostermit a") |
77 |
global.snowdin_flag_enemy[1] = 1 |
78 |
else if (battle_enemy_name == "insomnitot a") |
79 |
global.snowdin_flag_enemy[2] = 1 |
80 |
else if (battle_enemy_name == "know cone a") |
81 |
global.snowdin_flag_enemy[3] = 1 |
82 |
else if (battle_enemy_name == "trihecta" || battle_enemy_name == "tri") |
83 |
global.snowdin_flag_enemy[4] = 1 |
84 |
else if (battle_enemy_name == "shufflers") |
85 |
{ |
86 |
global.snowdin_flag[8] = 1 |
87 |
global.sound_carry_overworld = false |
88 |
} |
89 |
else if (battle_enemy_name == "martlet pacifist") |
90 |
{ |
91 |
if (global.enemy_mode == 10) |
92 |
global.snowdin_flag[13] = 2 |
93 |
else if (global.enemy_mode == 11) |
94 |
global.snowdin_flag[13] = 1 |
95 |
else if (global.enemy_mode == 12) |
96 |
global.snowdin_flag[13] = 1 |
97 |
ds_list_clear(global.encounter_list) |
98 |
} |
99 |
else if (battle_enemy_name == "martlet genocide") |
100 |
{ |
101 |
if (global.enemy_mode == 5) |
102 |
{ |
103 |
global.snowdin_flag[13] = 3 |
104 |
global.snowdin_flag[21] = 0 |
105 |
} |
106 |
else if (global.enemy_mode == 8) |
107 |
{ |
108 |
global.snowdin_flag[13] = 3 |
109 |
global.snowdin_flag[21] = 1 |
110 |
} |
111 |
else if (global.enemy_betrayed == true) |
112 |
{ |
113 |
global.snowdin_flag[13] = 3 |
114 |
global.snowdin_flag[21] = 1 |
115 |
} |
116 |
else if (global.enemy_spared == true) |
117 |
{ |
118 |
global.snowdin_flag[13] = 3 |
119 |
global.snowdin_flag[21] = 0 |
120 |
} |
121 |
ds_list_clear(global.encounter_list) |
122 |
} |
123 |
else if (battle_enemy_name == "el bailador") |
124 |
{ |
125 |
global.dunes_flag[26] = 1 |
126 |
if (global.enemy_dead == true) |
127 |
global.dunes_flag[26] = 3 |
128 |
else if (global.route == 3) |
129 |
global.route = 1 |
130 |
} |
131 |
else if (battle_enemy_name == "flower girls") |
132 |
global.dunes_flag[31] = 4 |
133 |
else if (battle_enemy_name == "starlo") |
134 |
{ |
135 |
ds_list_clear(global.encounter_list) |
136 |
global.dunes_flag[24] = 1 |
137 |
if (global.enemy_dead == true) |
138 |
global.dunes_flag[24] = 2 |
139 |
} |
140 |
else if (battle_enemy_name == "ceroba genocide") |
141 |
{ |
142 |
ds_list_clear(global.encounter_list) |
143 |
global.dunes_flag[40] = 1 |
144 |
} |
145 |
else if (battle_enemy_name == "guardener") |
146 |
{ |
147 |
global.sworks_flag[20] = 1 |
148 |
if (global.enemy_dead == true) |
149 |
global.sworks_flag[20] = 3 |
150 |
} |
151 |
else if (battle_enemy_name == "axis") |
152 |
{ |
153 |
var current_turn = global.special_action_count |
154 |
ds_list_clear(global.encounter_list) |
155 |
global.sworks_flag[31] = 1 |
156 |
if (global.enemy_dead == true) |
157 |
{ |
158 |
if (global.route == 2) |
159 |
global.sworks_flag[58] = 1 |
160 |
if (current_turn >= 7) |
161 |
global.sworks_flag[31] = 4 |
162 |
else |
163 |
global.sworks_flag[31] = 3 |
164 |
} |
165 |
} |
166 |
else if (battle_enemy_name == "axis genocide") |
167 |
{ |
168 |
ds_list_clear(global.encounter_list) |
169 |
global.sworks_flag[31] = 1 |
170 |
if (global.enemy_dead == true) |
171 |
global.sworks_flag[31] = 3 |
172 |
if (global.geno_complete[4] == false) |
173 |
global.route = 1 |
174 |
} |
175 |
else if (battle_enemy_name == "ceroba") |
176 |
{ |
177 |
} |
178 |
} |