Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b2_ninfriendo_wiremanagement_Step_2

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    if (i_ex(favored) && i_ex(unfavored))
4
    {
5
        init = 1;
6
        cont[0] = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x, y, spr_ch3_controller);
7
        cont[1] = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x, y, spr_ch3_controller);
8
        cont[2] = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(room_width, room_height, spr_ch3_controller);
9
    }
10
}
11
var override = 0;
12
if (override)
13
{
14
    xoff[0] = 58;
15
    yoff[0] = 80;
16
}
17
if (stick[0] && i_ex(unfavored))
18
{
19
    if (i_ex(cont[0]))
20
    {
21
        cont[0].x = unfavored.x + xoff[0];
22
        cont[0].y = unfavored.y + yoff[0];
23
        cont[0].depth = 96220;
24
    }
25
}
26
if (stick[1] && i_ex(favored))
27
{
28
    if (i_ex(cont[1]))
29
    {
30
        cont[1].x = favored.x + xoff[1];
31
        cont[1].y = favored.y + yoff[1];
32
        cont[1].depth = 96220;
33
    }
34
}
35
if (stick[2] && i_ex(rouxls))
36
{
37
    if (i_ex(cont[2]))
38
    {
39
        cont[2].image_angle = 90;
40
        xoff[2] = 36;
41
        yoff[2] = 4;
42
        cont[2].x = rouxls.x + xoff[2];
43
        cont[2].y = rouxls.y + yoff[2];
44
        cont[2].depth = rouxls.depth - 1;
45
    }
46
}