Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_1_sword_b1store_Step_0

(view raw script w/o annotations or w/e)
1
if (active)
2
{
3
    if (con == 0 && obj_board_camera.con == 0)
4
    {
5
        if (!made)
6
        {
7
            if (obj_mainchara_board.sword)
8
            {
9
                var shopwriter = instance_create(x, y, obj_board_shopwriter);
10
                if (obj_mainchara_board.swordlv < 3)
11
                {
12
                    shopwriter.shopstring = text1;
13
                }
14
                else if (obj_mainchara_board.swordlv == 3)
15
                {
16
                    shopwriter.shopstring = stringsetloc(
BECAME STRONGER
"BECAME STRONGER", "obj_board_1_sword_b1store_slash_Step_0_gml_18_0"
);
17
                }
18
                else
19
                {
20
                    shopwriter.shopstring = text2;
21
                    shopwriter.textcol = 0;
22
                    shopwriter.depth = 100000;
23
                }
24
                made = 1;
25
            }
26
        }
27
    }
28
    if (sndpause == 0 && obj_board_camera.con == 0)
29
    {
30
        sndpause = 1;
31
        snd_pause(global.currentsong[1]);
32
    }
33
    if (sndpause == 1 && obj_board_camera.con != 0)
34
    {
35
        sndpause = 0;
36
        snd_resume(global.currentsong[1]);
37
    }
38
}
39
else
40
{
41
    if (made)
42
    {
43
        with (obj_board_shopwriter)
44
            instance_destroy();
45
        made = 0;
46
    }
47
    con = 0;
48
    timer = 0;
49
    texttimer = 0;
50
    drawtext = false;
51
    mystring = "";
52
}