Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_room_town_shelter_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.chapter >= 4)
4
{
5
    var terminal_marker = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(177, 1127, spr_shelter_panel_terminal);
6
    with (terminal_marker)
7
        depth = 88330;
8
    var panel_marker = instance_create(191, 1145, obj_marker_palette);
9
    panel_marker.sprite_index = spr_shelter_panel_rotated;
10
    panel_marker.depth = terminal_marker.depth - 10;
11
    var grass_marker = instance_create(186, 1161, obj_marker_palette);
12
    grass_marker.sprite_index = spr_shelter_grass;
13
    grass_marker.depth = panel_marker.depth - 10;
14
    if (global.plot >= 300)
15
    {
16
        panel_marker.current_palette = 2763;
17
        panel_marker.palette_index = 1;
18
        grass_marker.current_palette = 2763;
19
        grass_marker.palette_index = 1;
20
    }
21
}