Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_room_ranking_t_Step_0

(view raw script w/o annotations or w/e)
1
if (con < 0)
2
    exit;
3
if (con == 1 && !d_ex() && global.interact == 0)
4
{
5
    con = 2;
6
    global.interact = 1;
7
    pitch += 0.1;
8
    if (explain_vfx == -4)
9
    {
10
        explain_vfx = instance_create(0, 0, obj_dw_ranking_t_explain);
11
        explain_vfx.image_alpha = pitch;
12
    }
13
    with (explain_vfx)
14
        show_explain();
15
}
16
if (con == 2)
17
{
18
    explain_close_timer--;
19
    if (explain_close_timer <= 0)
20
    {
21
        con = 3;
22
        explain_close_timer = explain_close_time;
23
        input_check = true;
24
        if (type == 1)
25
            snd_play_x(snd_trank, 1, 1.3);
26
    }
27
}
28
if (input_check)
29
{
30
    if (button1_p() || button2_p())
31
    {
32
        con = 4;
33
        input_check = false;
34
        with (explain_vfx)
35
            hide_explain();
36
    }
37
}
38
if (con == 4)
39
{
40
    var _is_closed = false;
41
    with (explain_vfx)
42
        _is_closed = is_closed;
43
    if (_is_closed)
44
        con = 5;
45
}
46
if (con == 5)
47
{
48
    con = -1;
49
    global.interact = 0;
50
}
51
if (pitch > 0.8)
52
    pitch -= 0.001;