Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b2_ninfriendo_wiremanagement_Step_0

(view raw script w/o annotations or w/e)
1
if (drop0 == 1)
2
{
3
    drop0 = 2;
4
    if (ver == 0)
5
    {
6
        dcont0 = cont[1];
7
        stick[1] = false;
8
    }
9
    else
10
    {
11
        dcont0 = cont[0];
12
        stick[0] = false;
13
    }
14
    dcont0.depth = 96220;
15
    dcont0.gravity = 1;
16
}
17
if (drop0 == 2)
18
{
19
    dcont0.depth = 0;
20
    if (dcont0.y >= 358)
21
    {
22
        dcont0.gravity = 0;
23
        dcont0.vspeed = 0;
24
        dcont0.y = 358;
25
        with (dcont0)
26
            
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
27
        snd_play_x(snd_noise, 0.25, 0.8);
28
        drop0 = 3;
29
    }
30
}
31
if (i_ex(dcont0))
32
    yoff[0] = dcont0.y;
33
if (drop1 == 1)
34
{
35
    drop1 = 2;
36
    if (ver == 0)
37
    {
38
        dcont1 = cont[0];
39
        stick[0] = false;
40
    }
41
    else
42
    {
43
        dcont1 = cont[1];
44
        stick[1] = false;
45
    }
46
    dcont1.depth = 96220;
47
    dcont1.gravity = 1;
48
}
49
if (drop1 == 2)
50
{
51
    dcont1.depth = 0;
52
    if (dcont1.y >= 358)
53
    {
54
        dcont1.gravity = 0;
55
        dcont1.vspeed = 0;
56
        dcont1.y = 358;
57
        with (dcont1)
58
            
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
59
        snd_play_x(snd_noise, 0.25, 0.8);
60
        drop1 = 3;
61
    }
62
}
63
if (i_ex(dcont1))
64
    yoff[1] = dcont1.y;