Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_date_controller_CleanUp_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_pink_enemy) && obj_pink_enemy.datecount == 2)
2
{
3
    with (obj_heroralsei)
4
        defeatsprite = spr_ralsei_kneel;
5
}
6
if (surface_exists(surface1))
7
    surface_free(surface1);
8
if (surface_exists(surface2))
9
    surface_free(surface2);
10
snd_stop(snd_rumble);
11
if (global.turntimer > 1)
12
    global.turntimer = 1;
13
with (obj_pink_enemy)
14
{
15
    if (datecount == 3)
16
        phase4introcon = 1;
17
}
18
if (minigame_won == true)
19
{
20
    with (obj_tensionbar)
21
    {
22
        if (i_ex(obj_pink_enemy) && obj_pink_enemy.datecount != 3)
23
        {
24
            maxtensionlimitpercent = 8;
25
            maxtensionlimit = 20;
26
            global.tension = 0;
27
            current = 0;
28
            apparent = 0;
29
        }
30
    }
31
    with (obj_pink_enemy)
32
    {
33
        firstphaseturn = 1;
34
        if (datecount == 1)
35
            global.tempflag[67] = 1;
36
        if (datecount == 2)
37
            global.tempflag[68] = 1;
38
        if (datecount == 3)
39
            global.tempflag[69] = 1;
40
    }
41
}