Undertale script viewer

← back to main script listing

gml_Object_obj_the_end_really_Create_0

(view raw script w/o annotations or w/e)
1
death = 0;
2
if (ossafe_file_exists("system_information_963"))
3
    death = 1;
4
type = 0;
5
dogamt = 0;
6
if (global.flag[512 choice_left_toriel] == 1)
7
    type = 1;
8
if (type == 0)
9
    noise = caster_load("music/intronoise.ogg");
10
song = caster_load("music/musicbox.ogg");
11
timer = 0;
12
photo_alpha = 0;
13
ossafe_ini_open("undertale.ini");
14
curf = ini_read_real("EndF", "EndF", 0);
15
if (curf == 0)
16
    ini_write_real("EndF", "EndF", 1);
17
ini_write_real("General", "CP", 1);
18
ossafe_ini_close();
19
if (curf == 0)
20
    ossafe_savedata_save();