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