Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_blconskip_boss

(view raw script w/o annotations or w/e)
1
function 
scr_blconskip_boss
scr_blconskip_boss

function
scr_blconskip_boss(arg0)
{ if (arg0 >= 0) { talktimer++; if ((button3_p() && talktimer > arg0) || !instance_exists(obj_writer)) { with (obj_writer) instance_destroy(); if (i_ex(obj_balloon_queue)) msgset_fromqueue(); else global.mnfight = 1.5; } } else if (arg0 == -1) { if (!instance_exists(obj_writer)) { if (i_ex(obj_balloon_queue)) msgset_fromqueue(); else global.mnfight = 1.5; } } else if (arg0 == -2) { talktimer++; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); if (i_ex(obj_balloon_queue)) msgset_fromqueue(); else global.mnfight = 1.5; } } }
(arg0)
2
{
3
    if (arg0 >= 0)
4
    {
5
        talktimer++;
6
        if ((button3_p() && talktimer > arg0) || !instance_exists(obj_writer))
7
        {
8
            with (obj_writer)
9
                instance_destroy();
10
            if (i_ex(obj_balloon_queue))
11
                msgset_fromqueue();
12
            else
13
                global.mnfight = 1.5;
14
        }
15
    }
16
    else if (arg0 == -1)
17
    {
18
        if (!instance_exists(obj_writer))
19
        {
20
            if (i_ex(obj_balloon_queue))
21
                msgset_fromqueue();
22
            else
23
                global.mnfight = 1.5;
24
        }
25
    }
26
    else if (arg0 == -2)
27
    {
28
        talktimer++;
29
        if (talktimer > 15)
30
            talktimer = talkmax;
31
        if (talktimer >= talkmax)
32
        {
33
            with (obj_writer)
34
                instance_destroy();
35
            if (i_ex(obj_balloon_queue))
36
                msgset_fromqueue();
37
            else
38
                global.mnfight = 1.5;
39
        }
40
    }
41
}