Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_DEVICE_MENU_Create_0

(view raw script w/o annotations or w/e)
1
TYPE = 1;
2
SUBTYPE = 0;
3
CH = string(global.chapter);
4
if (scr_completed_chapter_any_slot(global.chapter))
5
    SUBTYPE = 1;
6
COMPLETEFILE_PREV[0] = ossafe_file_exists("filech" + string(global.chapter - 1) + "_3");
7
COMPLETEFILE_PREV[1] = ossafe_file_exists("filech" + string(global.chapter - 1) + "_4");
8
COMPLETEFILE_PREV[2] = ossafe_file_exists("filech" + string(global.chapter - 1) + "_5");
9
INCOMPLETEFILE_PREV[0] = ossafe_file_exists("filech" + string(global.chapter - 1) + "_0");
10
INCOMPLETEFILE_PREV[1] = ossafe_file_exists("filech" + string(global.chapter - 1) + "_1");
11
INCOMPLETEFILE_PREV[2] = ossafe_file_exists("filech" + string(global.chapter - 1) + "_2");
12
INCOMPLETE_LOAD = 0;
13
if (TYPE == 0)
14
{
15
    
scr_windowcaption
scr_windowcaption

function
scr_windowcaption(arg0)
{ if (global.tempflag[10] != 1 && global.chapter == 1) window_set_caption(arg0); else window_set_caption("DELTARUNE Chapter " + string(global.chapter)); }
(stringsetloc(
CONTACT
"CONTACT", "DEVICE_MENU_slash_Create_0_gml_8_0"
));
16
    global.currentsong[0] = snd_init("AUDIO_DRONE.ogg");
17
    global.currentsong[1] = mus_loop(global.currentsong[0]);
18
}
19
if (TYPE == 1)
20
{
21
    instance_create(0, 0, obj_fadein);
22
    global.tempflag[10] = 1;
23
    
scr_windowcaption
scr_windowcaption

function
scr_windowcaption(arg0)
{ if (global.tempflag[10] != 1 && global.chapter == 1) window_set_caption(arg0); else window_set_caption("DELTARUNE Chapter " + string(global.chapter)); }
(stringsetloc(
DELTARUNE
"DELTARUNE", "DEVICE_MENU_slash_Create_0_gml_17_0"
));
24
    if (SUBTYPE == 0)
25
        global.currentsong[0] = snd_init("menu.ogg");
26
    if (SUBTYPE == 1)
27
        global.currentsong[0] = snd_init("AUDIO_STORY.ogg");
28
    if (SUBTYPE >= 1)
29
        scr_enable_chapter_skip(global.chapter);
30
    global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 0.95);
31
}
32
BGMADE = 0;
33
BG_ALPHA = 0;
34
BG_SINER = 0;
35
OBMADE = 0;
36
OB_DEPTH = 0;
37
obacktimer = 0;
38
OBM = 0.5;
39
COL_A = c_green;
40
COL_B = c_lime;
41
COL_PLUS = merge_color(c_lime, c_white, 0.5);
42
jamod = 0;
43
if (TYPE == 1)
44
{
45
    BGSINER = 0;
46
    BGMAGNITUDE = 6;
47
    COL_A = merge_color(c_ltgray, c_navy, 0.2);
48
    COL_B = c_white;
49
    COL_PLUS = merge_color(c_yellow, c_white, 0.5);
50
    BGMADE = 1;
51
    BG_ALPHA = 0;
52
    ANIM_SINER = 0;
53
    ANIM_SINER_B = 0;
54
    TRUE_ANIM_SINER = 0;
55
    if (SUBTYPE == 0)
56
    {
57
        COL_A = merge_color(c_ltgray, c_maroon, 0.2);
58
        COL_B = c_white;
59
        COL_PLUS = merge_color(c_yellow, c_white, 0.4);
60
        BGMADE = 0;
61
    }
62
}
63
MENU_NO = 0;
64
for (i = 0; i < 12; i += 1)
65
    MENUCOORD[i] = 0;
66
XL = 210;
67
YL = 40;
68
YS = 5;
69
HEARTX = 75;
70
HEARTY = 110;
71
HEARTXCUR = 75;
72
HEARTYCUR = 75;
73
MOVENOISE = 0;
74
SELNOISE = 0;
75
BACKNOISE = 0;
76
DEATHNOISE = 0;
77
STARTGAME = 0;
78
REMMENU = 0;
79
CANQUIT = 1;
80
if (global.is_console == 1)
81
    CANQUIT = 0;
82
ONEBUFFER = 2;
83
TWOBUFFER = 0;
84
THREAT = 0;
85
TEMPMESSAGE = " ";
86
MESSAGETIMER = 0;
87
version_text = "1.00";
88
if (scr_is_switch_os())
89
    version_text = "1.03";
90
if (os_type == os_ps4 || os_type == os_ps5)
91
    version_text = "1.00";
92
for (i = 0; i < 3; i += 1)
93
    FILE[i] = 0;
94
for (i = 0; i < 3; i += 1)
95
{
96
    FILE[i] = 0;
97
    NAME[i] = stringsetloc(
[EMPTY]
"[EMPTY]", "DEVICE_MENU_slash_Create_0_gml_97_0"
);
98
    TIME[i] = 0;
99
    PLACE[i] = "------------";
100
    LEVEL[i] = 0;
101
    TIME_STRING[i] = "--:--";
102
    INITLANG[i] = 0;
103
}
104
if (ossafe_file_exists("filech" + CH + "_0"))
105
{
106
    FILE[0] = 1;
107
    NAME[0] = "FILE0";
108
}
109
if (ossafe_file_exists("filech" + CH + "_1"))
110
{
111
    FILE[1] = 1;
112
    NAME[1] = "FILE1";
113
}
114
if (ossafe_file_exists("filech" + CH + "_2"))
115
{
116
    FILE[2] = 1;
117
    NAME[2] = "FILE2";
118
}
119
if (ossafe_file_exists("dr.ini"))
120
{
121
    ossafe_ini_open("dr.ini");
122
    for (i = 0; i < 3; i += 1)
123
    {
124
        if (FILE[i] == 1)
125
        {
126
            var room_id = ini_read_real(
scr_ini_chapter
scr_ini_chapter

function
scr_ini_chapter(arg0, arg1)
{ if (arg0 >= 2) return "G_" + string(arg0) + "_" + string(arg1); else return "G" + string(arg1); }
(global.chapter, i), "Room", scr_get_id_by_room_index(room));
127
            var room_index = 
scr_get_room_by_id
scr_get_room_by_id

function
scr_get_room_by_id(arg0)
{ var room_id = arg0; var rooms = scr_get_room_list(); if (room_id < 10000) room_id += (global.chapter * 10000); var room_index = -1; for (var i = 0; i < array_length_1d(rooms); i++) { if (rooms[i].room_id == room_id) { room_index = rooms[i].room_index; break; } } if (room_index == -1) { } return room_index; } function scr_get_id_by_room_index(arg0) { var room_index = arg0; var rooms = scr_get_room_list(); var room_id = -1; for (var i = 0; i < array_length_1d(rooms); i++) { if (rooms[i].room_index == room_index) { room_id = rooms[i].room_id; break; } } if (room_id == -1) { } return room_id; } function scr_room(arg0, arg1) constructor { room_index = arg0; room_id = arg1; } function scr_get_room_list() { var idsarr = [new scr_room(room_dw_tv_cutscene1g, 30094), new scr_room(room_dw_rhythm, 30095), new scr_room(room_dw_couch_overworld_intro, 30097), new scr_room(room_dw_couch_overworld_01, 30098), new scr_room(room_dw_couch_overworld_02, 30099), new scr_room(room_dw_couch_overworld_03, 30100), new scr_room(room_dw_couch_overworld_04, 30101), new scr_room(room_dw_couch_overworld_05, 30102), new scr_room(room_dw_nondescript_room, 30103), new scr_room(room_dw_nondescript_field, 30104), new scr_room(room_dw_nondescript_hallway, 30105), new scr_room(room_dw_nondescript_classroom, 30106), new scr_room(room_dw_backstage, 30107), new scr_room(room_dw_snow_zone, 30108), new scr_room(room_town_krisyard_dark, 30109), new scr_room(room_board_1, 30111), new scr_room(room_board_dungeon_2, 30114), new scr_room(room_board_dungeon_3, 30115), new scr_room(room_board_preshadowmantle, 30116), new scr_room(room_shadowmantle, 30117), new scr_room(room_board_prepostshadowmantle, 30118), new scr_room(room_board_postshadowmantle, 30119), new scr_room(room_dw_ch3_man, 30120), new scr_room(room_susiezilla, 30123), new scr_room(room_board_intro, 30124), new scr_room(room_torhouse_sepia, 30126), new scr_room(room_ch3_gameshowroom, 30130), new scr_room(room_shootout, 30131), new scr_room(room_board_preshadowmantle_repeat, 30133), new scr_room(room_dw_green_room, 30134), new scr_room(room_board_1_sword, 30135), new scr_room(room_board_sword_intro, 30136), new scr_room(room_board_1_sword_trees, 30137), new scr_room(room_dw_changing_room, 30138), new scr_room(room_dw_console_room, 30139), new scr_room(room_board_2, 30140), new scr_room(room_dw_tv_closet, 30141), new scr_room(room_board_3, 30143), new scr_room(room_dw_b3bs_interstitial, 30146), new scr_room(room_board_2_sword, 30147), new scr_room(room_board_empty, 30149), new scr_room(room_dw_b3bs_rouxls_lanina, 30150), new scr_room(room_dw_b3bs_rouxls_boss, 30152), new scr_room(room_dw_b3bs_cheaterpippins, 30153), new scr_room(room_dw_b3bs_idcardpuzzle, 30154), new scr_room(room_dw_b3bs_intro, 30155), new scr_room(room_dw_b3bs_zapper_a, 30156), new scr_room(room_dw_b3bs_rabbick_a, 30157), new scr_room(room_dw_b3bs_lancerget, 30158), new scr_room(room_dw_b3bs_cooltrashy, 30159), new scr_room(room_dw_b3bs_zapper_c, 30160), new scr_room(room_dw_b3bs_rabbick_b, 30161), new scr_room(room_dw_b3bs_sadshadowguys, 30162), new scr_room(room_dw_b3bs_zapper_b, 30163), new scr_room(room_dw_susiezilla, 30165), new scr_room(room_dw_inbetween, 30166), new scr_room(room_dw_teevie_preview, 30167), new scr_room(room_dw_chef, 30168), new scr_room(room_dw_puzzlecloset_1, 30169), new scr_room(room_dw_puzzlecloset_2, 30170), new scr_room(room_dw_chef_empty, 30173), new scr_room(room_dw_susiezilla_empty, 30174), new scr_room(room_dw_rhythm_empty, 30175), new scr_room(room_board_3b, 30176), new scr_room(room_dw_b3bs_jail1, 30178), new scr_room(room_dw_b3bs_shop, 30179), new scr_room(room_dw_b3bs_mysterypuzzle, 30180), new scr_room(room_dw_b3bs_watercooler, 30181), new scr_room(room_dw_b3bs_jail2, 30182), new scr_room(room_dw_b3bs_zapper_d, 30183), new scr_room(room_dw_b3bs_extrapuzzle, 30184), new scr_room(room_dw_b3bs_bibliox, 30185), new scr_room(room_board_3_sword, 30187), new scr_room(room_dw_couch_points, 30188), new scr_room(room_dw_couch_overworld_intro_left, 30189), new scr_room(room_dw_couch_video, 30190), new scr_room(room_dw_snow_zone_battle, 30191), new scr_room(room_dw_puzzlecloset_0, 30193), new scr_room(room_board_gsa02_b0, 30194), new scr_room(room_dw_tv_curtain, 30195), new scr_room(room_dw_teevie_intro, 30196), new scr_room(room_dw_teevie_large_01, 30197), new scr_room(room_dw_teevie_large_02, 30198), new scr_room(room_dw_teevie_cowboy_zone_01_intro, 30199), new scr_room(room_dw_teevie_cowboy_zone_01_after, 30200), new scr_room(room_dw_teevie_watercooler, 30201), new scr_room(room_dw_teevie_susiezilla, 30202), new scr_room(room_dw_teevie_cowboy_zone_02_intro, 30203), new scr_room(room_dw_teevie_cowboy_zone_02_after, 30204), new scr_room(room_dw_teevie_shadow_guys, 30205), new scr_room(room_dw_teevie_stealth_c, 30206), new scr_room(room_dw_teevie_stealth, 30207), new scr_room(room_dw_teevie_failure_cage, 30208), new scr_room(room_dw_teevie_rhythm, 30209), new scr_room(room_dw_teevie_maze_points, 30210), new scr_room(room_dw_teevie_maze_chef, 30211), new scr_room(room_dw_teevie_maze_final, 30212), new scr_room(room_dw_teevie_maze, 30213), new scr_room(room_dw_teevie_chef, 30214), new scr_room(room_dw_teevie_cutscene_final, 30215), new scr_room(room_dw_teevie_ribbick, 30216), new scr_room(room_dw_teevie_preview_south, 30217), new scr_room(room_dw_b3bs_camerareminder, 30218), new scr_room(room_dw_puzzlecloset_3, 30219), new scr_room(room_dw_teevie_sams, 30220), new scr_room(room_dw_teevie_bonus_zone, 30221), new scr_room(room_dw_teevie_audiencepits, 30222), new scr_room(room_dw_teevie_lightmaze, 30224), new scr_room(room_dw_teevie_maze_quiz, 30225), new scr_room(room_dw_ranking_hub, 30226), new scr_room(room_dw_ranking_a, 30227), new scr_room(room_dw_ranking_b, 30228), new scr_room(room_dw_ranking_c, 30229), new scr_room(room_dw_ranking_z, 30230), new scr_room(room_dw_ranking_z_hallway, 30231), new scr_room(room_dw_teevie_ribbicks_a, 30232), new scr_room(room_dw_teevie_ribbicks_b, 30233), new scr_room(room_dw_teevie_susiebridge, 30234), new scr_room(room_dw_teevie_shuttahmaze, 30235), new scr_room(room_dw_teevie_stealth_d, 30236), new scr_room(room_dw_teevie_dust, 30237), new scr_room(room_dw_teevie_dust_south, 30238), new scr_room(room_ch3_gacharoom_unknown, 30239), new scr_room(room_dw_ranking_t, 30240), new scr_room(room_dw_puzzlecloset_1a, 30241), new scr_room(room_dw_rhythm_countdown, 30242), new scr_room(room_dw_snow_zone_east_door, 30243), new scr_room(room_dw_inbetweenhall, 30244), new scr_room(PLACE_DOGCHECK2, 20001), new scr_room(ROOM_INITIALIZE, 20011), new scr_room(PLACE_CONTACT, 20027), new scr_room(room_krisroom, 20028), new scr_room(room_krishallway, 20029), new scr_room(room_torroom, 20030), new scr_room(room_torhouse, 20031), new scr_room(room_torbathroom, 20032), new scr_room(room_town_krisyard, 20033), new scr_room(room_town_northwest, 20034), new scr_room(room_town_north, 20035), new scr_room(room_beach, 20036), new scr_room(room_town_mid, 20037), new scr_room(room_town_apartments, 20038), new scr_room(room_town_south, 20039), new scr_room(room_town_school, 20040), new scr_room(room_town_church, 20041), new scr_room(room_graveyard, 20042), new scr_room(room_town_shelter, 20043), new scr_room(room_hospital_lobby, 20044), new scr_room(room_hospital_hallway, 20045), new scr_room(room_hospital_rudy, 20046), new scr_room(room_hospital_room2, 20047), new scr_room(room_diner, 20048), new scr_room(room_townhall, 20049), new scr_room(room_flowershop_1f, 20050), new scr_room(room_flowershop_2f, 20051), new scr_room(room_library, 20052), new scr_room(room_alphysalley, 20053), new scr_room(room_lw_computer_lab, 20054), new scr_room(room_lw_library_upstairs, 20055), new scr_room(room_lw_police, 20056), new scr_room(room_lw_conbini, 20057), new scr_room(room_lw_icee_pizza, 20058), new scr_room(room_torielclass, 20059), new scr_room(room_schoollobby, 20060), new scr_room(room_alphysclass, 20061), new scr_room(room_schooldoor, 20062), new scr_room(room_insidecloset, 20063), new scr_room(room_school_unusedroom, 20064), new scr_room(room_castle_tutorial, 20066), new scr_room(room_dw_castle_east_door, 20068), new scr_room(room_dw_castle_west_cliff, 20069), new scr_room(room_dw_castle_area_1, 20070), new scr_room(room_dw_ralsei_castle_front, 20073), new scr_room(room_dw_castle_restaurant, 20074), new scr_room(room_dw_castle_cafe, 20075), new scr_room(room_dw_castle_dojo, 20076), new scr_room(room_dw_ralsei_castle_1f, 20077), new scr_room(room_dw_ralsei_castle_2f, 20078), new scr_room(room_dw_castle_dungeon, 20079), new scr_room(room_dw_castle_rooms_kris, 20081), new scr_room(room_dw_castle_rooms_susie, 20082), new scr_room(PLACE_DOG, 20233), new scr_room(room_legend, 20234), new scr_room(room_legend_neo, 20235), new scr_room(room_shop1, 20236), new scr_room(room_gameover, 20240), new scr_room(PLACE_LOGO, 20241), new scr_room(PLACE_FAILURE, 20242), new scr_room(PLACE_NAMING_JIKKEN, 20243), new scr_room(PLACE_MENU, 20244), new scr_room(room_ed, 20245), new scr_room(room_empty, 20246), new scr_room(room_cc_lancer, 20269), new scr_room(room_cc_clover, 20270), new scr_room(room_cc_fountain, 20271)]; return idsarr; }
(room_id);
128
            PLACE[i] = 
scr_roomname
scr_roomname

function
scr_roomname(arg0)
{ roomname = stringsetloc(
Dark World?
"Dark World?", "scr_roomname_slash_scr_roomname_gml_1_0"
);
if (arg0 == 0) roomname = stringsetloc(
---
"---", "scr_roomname_slash_scr_roomname_gml_2_0"
);
if (arg0 == 98) roomname = stringsetloc(
Dark World
"Dark World", "scr_roomname_slash_scr_roomname_gml_4_0"
);
if (arg0 == 135) roomname = stringsetloc(
Green Room
"Green Room", "scr_roomname_slash_scr_roomname_gml_6_0_b"
);
if (arg0 == 194) roomname = stringsetloc(
TV World - Before the Show
"TV World - Before the Show", "scr_roomname_slash_scr_roomname_gml_7_0"
);
if (arg0 == 109) roomname = stringsetloc(
Cold Place
"Cold Place", "scr_roomname_slash_scr_roomname_gml_8_0"
);
if (arg0 == 195) roomname = stringsetloc(
TV World - Entrance
"TV World - Entrance", "scr_roomname_slash_scr_roomname_gml_8_0_b"
);
if (arg0 == 177) roomname = stringsetloc(
TV World - Goulden Sam
"TV World - Goulden Sam", "scr_roomname_slash_scr_roomname_gml_9_0_b"
);
if (arg0 == 208) roomname = stringsetloc(
TV World - Concert
"TV World - Concert", "scr_roomname_slash_scr_roomname_gml_9_0"
);
if (arg0 == 213) roomname = stringsetloc(
TV World - Cooking Show
"TV World - Cooking Show", "scr_roomname_slash_scr_roomname_gml_11_0"
);
return roomname; }
(room_index);
129
            TIME[i] = ini_read_real(
scr_ini_chapter
scr_ini_chapter

function
scr_ini_chapter(arg0, arg1)
{ if (arg0 >= 2) return "G_" + string(arg0) + "_" + string(arg1); else return "G" + string(arg1); }
(global.chapter, i), "Time", 0);
130
            NAME[i] = ini_read_string(
scr_ini_chapter
scr_ini_chapter

function
scr_ini_chapter(arg0, arg1)
{ if (arg0 >= 2) return "G_" + string(arg0) + "_" + string(arg1); else return "G" + string(arg1); }
(global.chapter, i), "Name", "------");
131
            LEVEL[i] = 1;
132
            INITLANG[i] = ini_read_real(
scr_ini_chapter
scr_ini_chapter

function
scr_ini_chapter(arg0, arg1)
{ if (arg0 >= 2) return "G_" + string(arg0) + "_" + string(arg1); else return "G" + string(arg1); }
(global.chapter, i), "InitLang", 0);
133
            TIME_SECONDS_TOTAL[i] = floor(TIME[i] / 30);
134
            TIME_MINUTES[i] = floor(TIME_SECONDS_TOTAL[i] / 60);
135
            TIME_SECONDS[i] = TIME_SECONDS_TOTAL[i] - (TIME_MINUTES[i] * 60);
136
            TIME_SECONDS_STRING[i] = string(TIME_SECONDS[i]);
137
            if (TIME_SECONDS[i] == 0)
138
                TIME_SECONDS_STRING[i] = "00";
139
            if (TIME_SECONDS[i] < 10 && TIME_SECONDS[i] >= 1)
140
                TIME_SECONDS_STRING[i] = "0" + string(TIME_SECONDS[i]);
141
            TIME_STRING[i] = 
scr_timedisp
scr_timedisp

function
scr_timedisp(arg0)
{ var minutes = floor(arg0 / 1800); var remmins = minutes % 60; var hours = (minutes - remmins) / 60; var seconds = floor((arg0 / 30) - (minutes * 60)); var hourstring = string(hours) + ":"; var minstring = string(remmins) + ":"; if (remmins < 10) minstring = "0" + minstring; var secstring = string(floor(seconds)); if (seconds < 10) secstring = "0" + secstring; var timedisp = hourstring + minstring + secstring; return timedisp; }
(TIME[i]);
142
        }
143
    }
144
    var cadd = 3;
145
    if (INCOMPLETE_LOAD)
146
        cadd = 0;
147
    for (i = 0; i < 3; i++)
148
    {
149
        COMPLETEFILE_PREV_NAME[i] = stringsetloc(
NO DATA
"NO DATA", "DEVICE_MENU_slash_Create_0_gml_182_0"
);
150
        COMPLETEFILE_PREV_TIME[i] = 0;
151
        COMPLETEFILE_PREV_PLACE[i] = stringsetloc(
CHAPTER 1
"CHAPTER 1", "DEVICE_MENU_slash_Create_0_gml_221_0"
);
152
        INCOMPLETEFILE_PREV_NAME[i] = stringsetloc(
NO DATA
"NO DATA", "DEVICE_MENU_slash_Create_0_gml_185_0"
);
153
        INCOMPLETEFILE_PREV_TIME[i] = 0;
154
        var loadcompletion = 0;
155
        if (COMPLETEFILE_PREV[i] == 1 && INCOMPLETE_LOAD == 0)
156
            loadcompletion = 1;
157
        if (INCOMPLETEFILE_PREV[i] == 1 && INCOMPLETE_LOAD == 1)
158
            loadcompletion = 1;
159
        if (loadcompletion)
160
        {
161
            COMPLETEFILE_PREV_NAME[i] = stringsetloc(
UNKNOWN FILE
"UNKNOWN FILE", "DEVICE_MENU_slash_Create_0_gml_190_0"
);
162
            COMPLETEFILE_PREV_NAME[i] = ini_read_string(
scr_ini_chapter
scr_ini_chapter

function
scr_ini_chapter(arg0, arg1)
{ if (arg0 >= 2) return "G_" + string(arg0) + "_" + string(arg1); else return "G" + string(arg1); }
(global.chapter - 1, i + cadd), "Name", "------");
163
            COMPLETEFILE_PREV_TIME[i] = ini_read_real(
scr_ini_chapter
scr_ini_chapter

function
scr_ini_chapter(arg0, arg1)
{ if (arg0 >= 2) return "G_" + string(arg0) + "_" + string(arg1); else return "G" + string(arg1); }
(global.chapter - 1, i + cadd), "Time", 0);
164
            COMPLETEFILE_PREV_PLACE[i] = stringsetloc(
CHAPTER 1
"CHAPTER 1", "DEVICE_MENU_slash_Create_0_gml_237_0"
);
165
            COMPLETETIME_SECONDS_TOTAL[i] = floor(COMPLETEFILE_PREV_TIME[i] / 30);
166
            COMPLETETIME_MINUTES[i] = floor(COMPLETETIME_SECONDS_TOTAL[i] / 60);
167
            COMPLETETIME_SECONDS[i] = COMPLETETIME_SECONDS_TOTAL[i] - (COMPLETETIME_MINUTES[i] * 60);
168
            COMPLETETIME_SECONDS_STRING[i] = string(COMPLETETIME_SECONDS[i]);
169
            if (COMPLETETIME_SECONDS[i] == 0)
170
                COMPLETETIME_SECONDS_STRING[i] = "00";
171
            if (COMPLETETIME_SECONDS[i] < 10 && COMPLETETIME_SECONDS[i] >= 1)
172
                COMPLETETIME_SECONDS_STRING[i] = "0" + string(COMPLETETIME_SECONDS[i]);
173
            COMPLETETIME_STRING[i] = 
scr_timedisp
scr_timedisp

function
scr_timedisp(arg0)
{ var minutes = floor(arg0 / 1800); var remmins = minutes % 60; var hours = (minutes - remmins) / 60; var seconds = floor((arg0 / 30) - (minutes * 60)); var hourstring = string(hours) + ":"; var minstring = string(remmins) + ":"; if (remmins < 10) minstring = "0" + minstring; var secstring = string(floor(seconds)); if (seconds < 10) secstring = "0" + secstring; var timedisp = hourstring + minstring + secstring; return timedisp; }
(COMPLETEFILE_PREV_TIME[i]);
174
        }
175
        if (INCOMPLETEFILE_PREV[i])
176
        {
177
            INCOMPLETEFILE_PREV_NAME[i] = stringsetloc(
UNKNOWN FILE
"UNKNOWN FILE", "DEVICE_MENU_slash_Create_0_gml_205_0"
);
178
            INCOMPLETEFILE_PREV_NAME[i] = ini_read_string(
scr_ini_chapter
scr_ini_chapter

function
scr_ini_chapter(arg0, arg1)
{ if (arg0 >= 2) return "G_" + string(arg0) + "_" + string(arg1); else return "G" + string(arg1); }
(global.chapter - 1, i), "Name", "------");
179
            INCOMPLETEFILE_PREV_TIME[i] = ini_read_real(
scr_ini_chapter
scr_ini_chapter

function
scr_ini_chapter(arg0, arg1)
{ if (arg0 >= 2) return "G_" + string(arg0) + "_" + string(arg1); else return "G" + string(arg1); }
(global.chapter - 1, i), "Time", 0);
180
        }
181
    }
182
    ossafe_ini_close();
183
    ossafe_savedata_save();
184
}
185
var INITMENU = 0;
186
if (ossafe_file_exists("dr.ini"))
187
{
188
    if (FILE[0] == 0 && FILE[1] == 0 && FILE[2] == 0)
189
    {
190
        if (COMPLETEFILE_PREV[0] == 1 || COMPLETEFILE_PREV[1] == 1 || COMPLETEFILE_PREV[2] == 1)
191
            INITMENU = 10;
192
        if (INCOMPLETE_LOAD == 1)
193
            INITMENU = 10;
194
    }
195
}
196
MENU_NO = INITMENU;
197
depth = 5;
198
jamod = 0;
199
input_enabled = true;