Undertale script viewer

← back to main script listing

gml_Object_obj_torielboss_Alarm_9

(view raw script w/o annotations or w/e)
1
if (instance_exists(blconwriter) == 0)
2
{
3
    if (global.flag[6 hardmode] == 0)
4
    {
5
        alarm[10] = 2;
gml_Object_obj_torielboss_Alarm_10.gml

if (instance_exists(blcon)) { with (blcon) instance_destroy(); } if (image_alpha > 0.1) { sprite_index = spr_torielboss_kneelsmile2; y += 56; image_xscale = 1; image_yscale = 1; killed = 1; room_speed = 20; instance_create(obj_heart.x, (sprite_height / 2) + y, obj_torheart); global.flag[45 status_toriel] = 4; ossafe_ini_open("undertale.ini"); TK = ini_read_real("Toriel", "TK", 0); ini_write_real("Toriel", "TK", TK + 1); ossafe_ini_close(); ossafe_savedata_save(); instance_destroy(); image_alpha -= 0.05; alarm[10] = 1; } else { caster_stop(global.batmusic); caster_free(global.batmusic); global.typer = 1; script_execute(scr_writetext, 0,
* YOU WON!
* You lost 1 experience point.Wait for inputClose Message
scr_gettext("obj_torielboss_240")
, 0, 0); alarm[11] = 1; }
6
    }
7
    else
8
    {
9
        destroyed = -1;
10
        with (blcon)
11
            instance_destroy();
12
        tr = instance_create(x, y, obj_torboss_2ndtime);
13
        visible = false;
14
        conversation = -20;
15
    }
16
}
17
else
18
{
19
    alarm[9] = 2;
gml_Object_obj_torielboss_Alarm_9.gml

if (instance_exists(blconwriter) == 0) { if (global.flag[6 hardmode] == 0) { alarm[10] = 2; } else { destroyed = -1; with (blcon) instance_destroy(); tr = instance_create(x, y, obj_torboss_2ndtime); visible = false; conversation = -20; } } else { alarm[9] = 2; }
20
}