Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_shortcut_door

(view raw script w/o annotations or w/e)
1
function scr_get_shortcut_doors()
2
{
3
    var unlock_flag = 1878;
4
    var door_list = [new 
scr_shortcut_door
scr_shortcut_door

function scr_get_shortcut_doors() { var unlock_flag = 1878; var door_list = [new
scr_shortcut_door(stringsetloc(
Garden
"Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_8_0"
), [new scr_shortcut(stringsetloc(
Hopschef
"Hopschef", "scr_shortcut_door_slash_scr_shortcut_door_gml_9_0"
), 126, unlock_flag, 0), new scr_shortcut(stringsetloc(
Near Shrine
"Near Shrine", "scr_shortcut_door_slash_scr_shortcut_door_gml_10_0"
), 151), new scr_shortcut(stringsetloc(
End of Garden
"End of Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_11_0"
), 150)]), new
scr_shortcut_door(stringsetloc(
Cliffs
"Cliffs", "scr_shortcut_door_slash_scr_shortcut_door_gml_13_0"
), [new scr_shortcut(stringsetloc(
First Climb
"First Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_14_0"
), 155), new scr_shortcut(stringsetloc(
Shop
"Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_15_0"
), 160), new scr_shortcut(stringsetloc(
Netskie Climb
"Netskie Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_16_0"
), 162)]), new
scr_shortcut_door(stringsetloc(
Castle
"Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_18_0"
), [new scr_shortcut(stringsetloc(
Foyer
"Foyer", "scr_shortcut_door_slash_scr_shortcut_door_gml_19_0"
), 178), new scr_shortcut(stringsetloc(
Blue's Room
"Blue's Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_20_0"
), 187), new scr_shortcut(stringsetloc(
Mysterious Puzzle
"Mysterious Puzzle", "scr_shortcut_door_slash_scr_shortcut_door_gml_21_0"
), 208)])];
if (scr_flag_get_ext(1878, 4) == 1) door_list[array_length(door_list)] = new
scr_shortcut_door(stringsetloc(
Top of Castle
"Top of Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_23_0"
), [new scr_shortcut(stringsetloc(
Green's Shop
"Green's Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_24_0"
), 224), new scr_shortcut(stringsetloc(
Pink Door
"Pink Door", "scr_shortcut_door_slash_scr_shortcut_door_gml_25_0"
), 229, unlock_flag, 2), new scr_shortcut(stringsetloc(
Last Room
"Last Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_26_0"
), 225, unlock_flag, 3)]);
return door_list; } function
scr_shortcut_door(arg0, arg1) constructor
{ _label = arg0; _options = arg1; get_label = function() { return _label; }; get_options = function() { return _options; }; } function scr_shortcut(arg0, arg1, arg2 = -1, arg3 = -1) constructor { _label = arg0; _room_index = arg1; _flag_id = arg2; _flag_value = arg3; is_optional = function() { return _flag_id != -1; }; is_unlocked = function() { if (is_optional()) return scr_flag_get_ext(_flag_id, _flag_value) == 1; return true; }; get_label = function() { return _label; }; get_room_index = function() { return _room_index; }; }
(stringsetloc(
Garden
"Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_8_0"
), [new scr_shortcut(stringsetloc(
Hopschef
"Hopschef", "scr_shortcut_door_slash_scr_shortcut_door_gml_9_0"
), 126, unlock_flag, 0), new scr_shortcut(stringsetloc(
Near Shrine
"Near Shrine", "scr_shortcut_door_slash_scr_shortcut_door_gml_10_0"
), 151), new scr_shortcut(stringsetloc(
End of Garden
"End of Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_11_0"
), 150)]), new
scr_shortcut_door
scr_shortcut_door

function scr_get_shortcut_doors() { var unlock_flag = 1878; var door_list = [new
scr_shortcut_door(stringsetloc(
Garden
"Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_8_0"
), [new scr_shortcut(stringsetloc(
Hopschef
"Hopschef", "scr_shortcut_door_slash_scr_shortcut_door_gml_9_0"
), 126, unlock_flag, 0), new scr_shortcut(stringsetloc(
Near Shrine
"Near Shrine", "scr_shortcut_door_slash_scr_shortcut_door_gml_10_0"
), 151), new scr_shortcut(stringsetloc(
End of Garden
"End of Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_11_0"
), 150)]), new
scr_shortcut_door(stringsetloc(
Cliffs
"Cliffs", "scr_shortcut_door_slash_scr_shortcut_door_gml_13_0"
), [new scr_shortcut(stringsetloc(
First Climb
"First Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_14_0"
), 155), new scr_shortcut(stringsetloc(
Shop
"Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_15_0"
), 160), new scr_shortcut(stringsetloc(
Netskie Climb
"Netskie Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_16_0"
), 162)]), new
scr_shortcut_door(stringsetloc(
Castle
"Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_18_0"
), [new scr_shortcut(stringsetloc(
Foyer
"Foyer", "scr_shortcut_door_slash_scr_shortcut_door_gml_19_0"
), 178), new scr_shortcut(stringsetloc(
Blue's Room
"Blue's Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_20_0"
), 187), new scr_shortcut(stringsetloc(
Mysterious Puzzle
"Mysterious Puzzle", "scr_shortcut_door_slash_scr_shortcut_door_gml_21_0"
), 208)])];
if (scr_flag_get_ext(1878, 4) == 1) door_list[array_length(door_list)] = new
scr_shortcut_door(stringsetloc(
Top of Castle
"Top of Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_23_0"
), [new scr_shortcut(stringsetloc(
Green's Shop
"Green's Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_24_0"
), 224), new scr_shortcut(stringsetloc(
Pink Door
"Pink Door", "scr_shortcut_door_slash_scr_shortcut_door_gml_25_0"
), 229, unlock_flag, 2), new scr_shortcut(stringsetloc(
Last Room
"Last Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_26_0"
), 225, unlock_flag, 3)]);
return door_list; } function
scr_shortcut_door(arg0, arg1) constructor
{ _label = arg0; _options = arg1; get_label = function() { return _label; }; get_options = function() { return _options; }; } function scr_shortcut(arg0, arg1, arg2 = -1, arg3 = -1) constructor { _label = arg0; _room_index = arg1; _flag_id = arg2; _flag_value = arg3; is_optional = function() { return _flag_id != -1; }; is_unlocked = function() { if (is_optional()) return scr_flag_get_ext(_flag_id, _flag_value) == 1; return true; }; get_label = function() { return _label; }; get_room_index = function() { return _room_index; }; }
(stringsetloc(
Cliffs
"Cliffs", "scr_shortcut_door_slash_scr_shortcut_door_gml_13_0"
), [new scr_shortcut(stringsetloc(
First Climb
"First Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_14_0"
), 155), new scr_shortcut(stringsetloc(
Shop
"Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_15_0"
), 160), new scr_shortcut(stringsetloc(
Netskie Climb
"Netskie Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_16_0"
), 162)]), new
scr_shortcut_door
scr_shortcut_door

function scr_get_shortcut_doors() { var unlock_flag = 1878; var door_list = [new
scr_shortcut_door(stringsetloc(
Garden
"Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_8_0"
), [new scr_shortcut(stringsetloc(
Hopschef
"Hopschef", "scr_shortcut_door_slash_scr_shortcut_door_gml_9_0"
), 126, unlock_flag, 0), new scr_shortcut(stringsetloc(
Near Shrine
"Near Shrine", "scr_shortcut_door_slash_scr_shortcut_door_gml_10_0"
), 151), new scr_shortcut(stringsetloc(
End of Garden
"End of Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_11_0"
), 150)]), new
scr_shortcut_door(stringsetloc(
Cliffs
"Cliffs", "scr_shortcut_door_slash_scr_shortcut_door_gml_13_0"
), [new scr_shortcut(stringsetloc(
First Climb
"First Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_14_0"
), 155), new scr_shortcut(stringsetloc(
Shop
"Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_15_0"
), 160), new scr_shortcut(stringsetloc(
Netskie Climb
"Netskie Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_16_0"
), 162)]), new
scr_shortcut_door(stringsetloc(
Castle
"Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_18_0"
), [new scr_shortcut(stringsetloc(
Foyer
"Foyer", "scr_shortcut_door_slash_scr_shortcut_door_gml_19_0"
), 178), new scr_shortcut(stringsetloc(
Blue's Room
"Blue's Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_20_0"
), 187), new scr_shortcut(stringsetloc(
Mysterious Puzzle
"Mysterious Puzzle", "scr_shortcut_door_slash_scr_shortcut_door_gml_21_0"
), 208)])];
if (scr_flag_get_ext(1878, 4) == 1) door_list[array_length(door_list)] = new
scr_shortcut_door(stringsetloc(
Top of Castle
"Top of Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_23_0"
), [new scr_shortcut(stringsetloc(
Green's Shop
"Green's Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_24_0"
), 224), new scr_shortcut(stringsetloc(
Pink Door
"Pink Door", "scr_shortcut_door_slash_scr_shortcut_door_gml_25_0"
), 229, unlock_flag, 2), new scr_shortcut(stringsetloc(
Last Room
"Last Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_26_0"
), 225, unlock_flag, 3)]);
return door_list; } function
scr_shortcut_door(arg0, arg1) constructor
{ _label = arg0; _options = arg1; get_label = function() { return _label; }; get_options = function() { return _options; }; } function scr_shortcut(arg0, arg1, arg2 = -1, arg3 = -1) constructor { _label = arg0; _room_index = arg1; _flag_id = arg2; _flag_value = arg3; is_optional = function() { return _flag_id != -1; }; is_unlocked = function() { if (is_optional()) return scr_flag_get_ext(_flag_id, _flag_value) == 1; return true; }; get_label = function() { return _label; }; get_room_index = function() { return _room_index; }; }
(stringsetloc(
Castle
"Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_18_0"
), [new scr_shortcut(stringsetloc(
Foyer
"Foyer", "scr_shortcut_door_slash_scr_shortcut_door_gml_19_0"
), 178), new scr_shortcut(stringsetloc(
Blue's Room
"Blue's Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_20_0"
), 187), new scr_shortcut(stringsetloc(
Mysterious Puzzle
"Mysterious Puzzle", "scr_shortcut_door_slash_scr_shortcut_door_gml_21_0"
), 208)])];
5
    if (scr_flag_get_ext(1878, 4) == 1)
6
        door_list[array_length(door_list)] = new 
scr_shortcut_door
scr_shortcut_door

function scr_get_shortcut_doors() { var unlock_flag = 1878; var door_list = [new
scr_shortcut_door(stringsetloc(
Garden
"Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_8_0"
), [new scr_shortcut(stringsetloc(
Hopschef
"Hopschef", "scr_shortcut_door_slash_scr_shortcut_door_gml_9_0"
), 126, unlock_flag, 0), new scr_shortcut(stringsetloc(
Near Shrine
"Near Shrine", "scr_shortcut_door_slash_scr_shortcut_door_gml_10_0"
), 151), new scr_shortcut(stringsetloc(
End of Garden
"End of Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_11_0"
), 150)]), new
scr_shortcut_door(stringsetloc(
Cliffs
"Cliffs", "scr_shortcut_door_slash_scr_shortcut_door_gml_13_0"
), [new scr_shortcut(stringsetloc(
First Climb
"First Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_14_0"
), 155), new scr_shortcut(stringsetloc(
Shop
"Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_15_0"
), 160), new scr_shortcut(stringsetloc(
Netskie Climb
"Netskie Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_16_0"
), 162)]), new
scr_shortcut_door(stringsetloc(
Castle
"Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_18_0"
), [new scr_shortcut(stringsetloc(
Foyer
"Foyer", "scr_shortcut_door_slash_scr_shortcut_door_gml_19_0"
), 178), new scr_shortcut(stringsetloc(
Blue's Room
"Blue's Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_20_0"
), 187), new scr_shortcut(stringsetloc(
Mysterious Puzzle
"Mysterious Puzzle", "scr_shortcut_door_slash_scr_shortcut_door_gml_21_0"
), 208)])];
if (scr_flag_get_ext(1878, 4) == 1) door_list[array_length(door_list)] = new
scr_shortcut_door(stringsetloc(
Top of Castle
"Top of Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_23_0"
), [new scr_shortcut(stringsetloc(
Green's Shop
"Green's Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_24_0"
), 224), new scr_shortcut(stringsetloc(
Pink Door
"Pink Door", "scr_shortcut_door_slash_scr_shortcut_door_gml_25_0"
), 229, unlock_flag, 2), new scr_shortcut(stringsetloc(
Last Room
"Last Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_26_0"
), 225, unlock_flag, 3)]);
return door_list; } function
scr_shortcut_door(arg0, arg1) constructor
{ _label = arg0; _options = arg1; get_label = function() { return _label; }; get_options = function() { return _options; }; } function scr_shortcut(arg0, arg1, arg2 = -1, arg3 = -1) constructor { _label = arg0; _room_index = arg1; _flag_id = arg2; _flag_value = arg3; is_optional = function() { return _flag_id != -1; }; is_unlocked = function() { if (is_optional()) return scr_flag_get_ext(_flag_id, _flag_value) == 1; return true; }; get_label = function() { return _label; }; get_room_index = function() { return _room_index; }; }
(stringsetloc(
Top of Castle
"Top of Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_23_0"
), [new scr_shortcut(stringsetloc(
Green's Shop
"Green's Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_24_0"
), 224), new scr_shortcut(stringsetloc(
Pink Door
"Pink Door", "scr_shortcut_door_slash_scr_shortcut_door_gml_25_0"
), 229, unlock_flag, 2), new scr_shortcut(stringsetloc(
Last Room
"Last Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_26_0"
), 225, unlock_flag, 3)]);
7
    return door_list;
8
}
9
10
function 
scr_shortcut_door
scr_shortcut_door

function scr_get_shortcut_doors() { var unlock_flag = 1878; var door_list = [new
scr_shortcut_door(stringsetloc(
Garden
"Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_8_0"
), [new scr_shortcut(stringsetloc(
Hopschef
"Hopschef", "scr_shortcut_door_slash_scr_shortcut_door_gml_9_0"
), 126, unlock_flag, 0), new scr_shortcut(stringsetloc(
Near Shrine
"Near Shrine", "scr_shortcut_door_slash_scr_shortcut_door_gml_10_0"
), 151), new scr_shortcut(stringsetloc(
End of Garden
"End of Garden", "scr_shortcut_door_slash_scr_shortcut_door_gml_11_0"
), 150)]), new
scr_shortcut_door(stringsetloc(
Cliffs
"Cliffs", "scr_shortcut_door_slash_scr_shortcut_door_gml_13_0"
), [new scr_shortcut(stringsetloc(
First Climb
"First Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_14_0"
), 155), new scr_shortcut(stringsetloc(
Shop
"Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_15_0"
), 160), new scr_shortcut(stringsetloc(
Netskie Climb
"Netskie Climb", "scr_shortcut_door_slash_scr_shortcut_door_gml_16_0"
), 162)]), new
scr_shortcut_door(stringsetloc(
Castle
"Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_18_0"
), [new scr_shortcut(stringsetloc(
Foyer
"Foyer", "scr_shortcut_door_slash_scr_shortcut_door_gml_19_0"
), 178), new scr_shortcut(stringsetloc(
Blue's Room
"Blue's Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_20_0"
), 187), new scr_shortcut(stringsetloc(
Mysterious Puzzle
"Mysterious Puzzle", "scr_shortcut_door_slash_scr_shortcut_door_gml_21_0"
), 208)])];
if (scr_flag_get_ext(1878, 4) == 1) door_list[array_length(door_list)] = new
scr_shortcut_door(stringsetloc(
Top of Castle
"Top of Castle", "scr_shortcut_door_slash_scr_shortcut_door_gml_23_0"
), [new scr_shortcut(stringsetloc(
Green's Shop
"Green's Shop", "scr_shortcut_door_slash_scr_shortcut_door_gml_24_0"
), 224), new scr_shortcut(stringsetloc(
Pink Door
"Pink Door", "scr_shortcut_door_slash_scr_shortcut_door_gml_25_0"
), 229, unlock_flag, 2), new scr_shortcut(stringsetloc(
Last Room
"Last Room", "scr_shortcut_door_slash_scr_shortcut_door_gml_26_0"
), 225, unlock_flag, 3)]);
return door_list; } function
scr_shortcut_door(arg0, arg1) constructor
{ _label = arg0; _options = arg1; get_label = function() { return _label; }; get_options = function() { return _options; }; } function scr_shortcut(arg0, arg1, arg2 = -1, arg3 = -1) constructor { _label = arg0; _room_index = arg1; _flag_id = arg2; _flag_value = arg3; is_optional = function() { return _flag_id != -1; }; is_unlocked = function() { if (is_optional()) return scr_flag_get_ext(_flag_id, _flag_value) == 1; return true; }; get_label = function() { return _label; }; get_room_index = function() { return _room_index; }; }
(arg0, arg1) constructor
11
{
12
    _label = arg0;
13
    _options = arg1;
14
    
15
    get_label = function()
16
    {
17
        return _label;
18
    };
19
    
20
    get_options = function()
21
    {
22
        return _options;
23
    };
24
}
25
26
function scr_shortcut(arg0, arg1, arg2 = -1, arg3 = -1) constructor
27
{
28
    _label = arg0;
29
    _room_index = arg1;
30
    _flag_id = arg2;
31
    _flag_value = arg3;
32
    
33
    is_optional = function()
34
    {
35
        return _flag_id != -1;
36
    };
37
    
38
    is_unlocked = function()
39
    {
40
        if (is_optional())
41
            return scr_flag_get_ext(_flag_id, _flag_value) == 1;
42
        return true;
43
    };
44
    
45
    get_label = function()
46
    {
47
        return _label;
48
    };
49
    
50
    get_room_index = function()
51
    {
52
        return _room_index;
53
    };
54
}