Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_blconskip

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

function
scr_blconskip(arg0)
{ if (arg0 >= 0) { if (button1_p() && talktimer > arg0) talktimer = talkmax; talktimer += 1; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); with (obj_guei_balloon) instance_destroy(); global.mnfight = 1.5; } } else if (arg0 == -1) { if (instance_exists(obj_writer) == false) global.mnfight = 1.5; } else if (arg0 == -2) { talktimer += 1; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); with (obj_guei_balloon) instance_destroy(); global.mnfight = 1.5; } } }
(arg0)
2
{
3
    if (arg0 >= 0)
4
    {
5
        if (button1_p() && talktimer > arg0)
6
            talktimer = talkmax;
7
        talktimer += 1;
8
        if (talktimer >= talkmax)
9
        {
10
            with (obj_writer)
11
                instance_destroy();
12
            with (obj_guei_balloon)
13
                instance_destroy();
14
            global.mnfight = 1.5;
15
        }
16
    }
17
    else if (arg0 == -1)
18
    {
19
        if (instance_exists(obj_writer) == false)
20
            global.mnfight = 1.5;
21
    }
22
    else if (arg0 == -2)
23
    {
24
        talktimer += 1;
25
        if (talktimer > 15)
26
            talktimer = talkmax;
27
        if (talktimer >= talkmax)
28
        {
29
            with (obj_writer)
30
                instance_destroy();
31
            with (obj_guei_balloon)
32
                instance_destroy();
33
            global.mnfight = 1.5;
34
        }
35
    }
36
}