Undertale script viewer

← back to main script listing

gml_Object_obj_friendc_event_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
if (global.flag[7 true_pacifist] == 1 && global.flag[510 plot_over] == 2)
3
{
4
    if (caster_is_playing(global.currentsong) != 1 && global.flag[7 true_pacifist] == 1)
5
    {
6
        global.currentsong = caster_load("music/reunited.ogg");
7
        caster_loop(global.currentsong, 1, 1);
8
        instance_destroy();
9
        exit;
10
    }
11
}
12
if (global.flag[510 plot_over] == 0 || global.flag[510 plot_over] == 2)
13
{
14
    instance_destroy();
15
    exit;
16
}
17
else
18
{
19
    global.hp = global.maxhp;
20
    global.currentsong = caster_load("music/reunited.ogg");
21
    global.flag[7 true_pacifist] = 1;
22
    global.flag[287 sms_parameters] = 1;
23
    global.flag[509 decimal_hp_state] = 0;
24
    global.plot = 999;
25
    with (obj_toriel_friendc)
26
        direction = 0;
27
    with (obj_sans_friendc)
28
        direction = 0;
29
    with (obj_asgore_friendc)
30
        direction = 180;
31
    with (obj_alphys_friendc)
32
        direction = 180;
33
    global.interact = 1;
34
    con = 0.1;
35
    alarm[4] = 140;
36
    blk = 1;
37
    d_blk = 1;
38
    global.screen_border_alpha = 0;
39
}