Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_glowtilepuzz_Other_12

(view raw script w/o annotations or w/e)
1
if (failtimer >= failmax)
2
{
3
    event_user(1);
4
    exit;
5
}
6
funbuffer = 0;
7
snd_play(snd_noise);
8
with (obj_glowtile)
9
{
10
    active = 0;
11
    stepped = 0;
12
    stepbuffer = -1;
13
    sprite_index = spr_glowtile_off;
14
}
15
if (wonamt < wonmax)
16
{
17
    if (wonamt == 0)
18
    {
19
        choice1 = 2;
20
        choice2 = 2;
21
        funtotal = 1;
22
    }
23
    if (wonamt == 1)
24
    {
25
        choice1 = 0;
26
        choice2 = 1;
27
        funtotal = 2;
28
    }
29
    if (wonamt >= 2)
30
    {
31
        choice1 = 1;
32
        choice2 = 2;
33
        funtotal = 2;
34
    }
35
    choice3 = choice1;
36
    with (tileid[choice1])
37
    {
38
        active = 1;
39
        sprite_index = spr_glowtile_step;
40
    }
41
    with (tileid[choice2])
42
    {
43
        active = 1;
44
        sprite_index = spr_glowtile_step;
45
    }
46
    with (tileid[choice3])
47
    {
48
        active = 1;
49
        sprite_index = spr_glowtile_step;
50
    }
51
}