1 |
function scr_determine_death_count_yellowscr_determine_death_count_yellowfunction scr_determine_death_count_yellow() //gml_Script_scr_determine_death_count_yellow
{
var battle_enemy_name = global.battle_enemy_name
if (battle_enemy_name == "decibat")
global.death_count[1] += 1
else if (battle_enemy_name == "dalv")
global.death_count[2] += 1
else if (battle_enemy_name == "micro froggit")
global.death_count[3] += 1
else if (battle_enemy_name == "martlet pacifist" || battle_enemy_name == "martlet genocide")
global.death_count[4] += 1
else if (battle_enemy_name == "flowey")
global.death_count[7] += 1
else
global.death_count[0] += 1
global.death_count_total = 0
var death_count_array_max = array_length_1d(global.death_count) - 1
for (var i = 0; i <= death_count_array_max; i += 1)
global.death_count_total += global.death_count[i]
scr_savegame_meta()
} () //gml_Script_scr_determine_death_count_yellow |
2 |
{ |
3 |
var battle_enemy_name = global.battle_enemy_name |
4 |
if (battle_enemy_name == "decibat") |
5 |
global.death_count[1] += 1 |
6 |
else if (battle_enemy_name == "dalv") |
7 |
global.death_count[2] += 1 |
8 |
else if (battle_enemy_name == "micro froggit") |
9 |
global.death_count[3] += 1 |
10 |
else if (battle_enemy_name == "martlet pacifist" || battle_enemy_name == "martlet genocide") |
11 |
global.death_count[4] += 1 |
12 |
else if (battle_enemy_name == "flowey") |
13 |
global.death_count[7] += 1 |
14 |
else |
15 |
global.death_count[0] += 1 |
16 |
global.death_count_total = 0 |
17 |
var death_count_array_max = array_length_1d(global.death_count) - 1 |
18 |
for (var i = 0; i <= death_count_array_max; i += 1) |
19 |
global.death_count_total += global.death_count[i] |
20 |
scr_savegame_metascr_savegame_metafunction scr_savegame_meta() //gml_Script_scr_savegame_meta
{
if file_exists("Save02.sav")
file_delete("Save02.sav")
ini_open("Save02.sav")
ini_write_real("00", "00", global.meta_flowey_introduction_count)
ini_write_real("00", "01", global.meta_flowey_fight_count)
ini_write_real("00", "02", global.game_finished_pacifist)
ini_write_real("00", "03", global.game_finished_pacifist_kill)
ini_write_real("00", "04", global.game_finished_murder)
ini_write_real("Deaths", "00", global.death_count_total)
ini_write_real("Deaths", "01", global.death_count[1])
ini_write_real("Deaths", "02", global.death_count[2])
ini_close()
} () |
21 |
} |