Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_credits_ch4_Create_0

(view raw script w/o annotations or w/e)
1
if (scr_is_switch_os())
2
    instance_create_depth(0, 0, 0, obj_switchAsyncHelper);
3
con = 0;
4
timer = 0;
5
lyric = stringset(" ");
6
textalpha = 1;
7
creditalpha = 1;
8
trackpos = 0;
9
modifier = 0;
10
song1 = 0;
11
menugray = hexcolor(#949494);
12
y_pos = __view_get(e__VW.YView, 0);
13
x_pos = __view_get(e__VW.XView, 0) + (__view_get(e__VW.WView, 0) / 2);
14
line_height = 20;
15
title_credit[0] = stringsetloc(
DELTARUNE
"DELTARUNE", "obj_credits_ch3_slash_Create_0_gml_18_0"
);
16
title_credit[1] = stringsetloc(
Chapter 4
"Chapter 4", "obj_credits_ch4_slash_Create_0_gml_19_0"
);
17
title_credit[2] = stringset(" ");
18
title_credit[3] = stringsetloc(
by Toby Fox
"by Toby Fox", "obj_credits_ch3_slash_Create_0_gml_21_0"
);
19
continued_text[0] = stringsetloc(
To be continued
"To be continued", "obj_credits_ch3_slash_Create_0_gml_23_0"
);
20
continued_text[1] = stringsetloc(
in Chapter 5
"in Chapter 5", "obj_credits_ch4_slash_Create_0_gml_24_0"
);
21
continued_text[2] = stringset(" ");
22
continued_text[3] = stringsetloc(
2026
"2026", "obj_credits_ch4_slash_Create_0_gml_26_0"
);
23
year_alpha = 0;
24
credit_index = -1;
25
credits = generate_credits();
26
credits_con = 0;
27
init = false;
28
loaded = true;
29
unlocked_trophies = false;
30
measure_factor = 2;
31
measure_time = 1.89371 * measure_factor;
32
measure_timer = measure_time;
33
glowing_active = false;
34
glowing_text = [];
35
glowing_text[0][0] = stringsetloc(
Face 0 WELL DONE.Wait for inputClose Message
"\\M0 WELL DONE./%", "obj_credits_ch4_slash_Create_0_gml_64_0"
);
36
glowing_text[1][0] = stringsetloc(
Face 0 THE HALFWAY
MARK HAS
BEEN ATTAINED.Wait for inputClose Message
"\\M0 THE HALFWAY& MARK HAS& BEEN ATTAINED./%", "obj_credits_ch4_slash_Create_0_gml_64_0_b"
);
37
glowing_text[2][0] = stringsetloc(
Face 0 BUT
IT
IS STILL
WAITING.Wait for inputClose Message
"\\M0 BUT& IT& IS STILL& WAITING./%", "obj_credits_ch4_slash_Create_0_gml_67_0"
);
38
glowing_text[3][0] = stringsetloc(
Face 0 HOW MUCH
LONGER NOW...?Wait for inputClose Message
"\\M0 HOW MUCH& LONGER NOW...?/%", "obj_credits_ch4_slash_Create_0_gml_68_0"
);
39
glowing_text[4][0] = stringsetloc(
Face 0 MY
Delay 66 DELTARUNE.Wait for inputClose Message
"\\M0 MY ^6& DELTARUNE./%", "obj_credits_ch4_slash_Create_0_gml_69_0"
);
40
alt_text_enabled = false;
41
if (obj_event_manager.trophies_enabled)
42
    alt_text_enabled = array_length(global.trophies) == 0;
43
if (alt_text_enabled)
44
{
45
    var completed_all = true;
46
    for (var i = 1; i < global.chapter; i++)
47
    {
48
        completed_all = scr_completed_chapter_any_slot(i);
49
        if (!completed_all)
50
            break;
51
    }
52
    if (!completed_all)
53
        alt_text_enabled = false;
54
}
55
if (alt_text_enabled)
56
{
57
    glowing_text[0][0] = stringsetloc(
Face 0 INTERESTING.Wait for inputClose Message
"\\M0 INTERESTING./%", "obj_credits_ch4_slash_Create_0_gml_73_0"
);
58
    glowing_text[1][0] = stringsetloc(
Face 0 YOU FAILED
TO ACHIEVE
ANY MARKS.Wait for inputClose Message
"\\M0 YOU FAILED& TO ACHIEVE& ANY MARKS./%", "obj_credits_ch4_slash_Create_0_gml_74_0"
);
59
    glowing_text[2][0] = stringsetloc(
Face 0 WHAT
ARE
YOU?Wait for inputClose Message
"\\M0 WHAT& ARE& YOU?/%", "obj_credits_ch4_slash_Create_0_gml_75_0"
);
60
    glowing_text[3][0] = stringsetsubloc("\\M0    \"~1\"/%", global.truename, "obj_credits_ch4_slash_Create_0_gml_76_0");
61
    glowing_text[4][0] = stringsetloc(
Face 0 I VERY MUCH
LOOK FORWARD
TO THE NEXT.Wait for inputClose Message
"\\M0 I VERY MUCH& LOOK FORWARD& TO THE NEXT./%", "obj_credits_ch4_slash_Create_0_gml_77_0"
);
62
}
63
glowing_text[0][1] = 60.4;
64
glowing_text[0][2] = 67;
65
glowing_text[1][1] = 68;
66
glowing_text[1][2] = 75.9;
67
glowing_text[2][1] = 76;
68
glowing_text[2][2] = 83.31;
69
glowing_text[3][1] = 84;
70
glowing_text[3][2] = 89.4;
71
glowing_text[4][1] = 90;
72
glowing_text[4][2] = 98;
73
glowing_index = 0;
74
text_con = 0;
75
text_buffer = 2;
76
auto_text = false;
77
auto_text_start = glowing_text[glowing_index][1];
78
auto_text_stop = glowing_text[glowing_index][2];
79
auto_text_buffer_time = 60;
80
auto_text_buffer = auto_text_buffer_time;
81
paused = false;
82
83
dequeue_text = function()
84
{
85
    global.typer = 666;
86
    global.fc = 0;
87
    global.msg[0] = glowing_text[glowing_index][0];
88
    auto_text_stop = glowing_text[glowing_index][2];
89
    var _writer = instance_create(70, 80, obj_writer);
90
    _writer.rate = 3;
91
    _writer.disablebutton1 = 1;
92
    _writer.skippable = 0;
93
    _writer.autocenter = 1;
94
    if (alt_text_enabled)
95
        _writer.jpspecial = 1;
96
    glowing_index++;
97
    if (glowing_index < array_length(glowing_text))
98
        auto_text_start = glowing_text[glowing_index][1];
99
};
100
101
restart_game = function()
102
{
103
    glowing_active = false;
104
    con = -1;
105
    game_restart();
106
};
107
108
enum e__VW
109
{
110
    XView,
111
    YView,
112
    WView,
113
    HView,
114
    Angle,
115
    HBorder,
116
    VBorder,
117
    HSpeed,
118
    VSpeed,
119
    Object,
120
    Visible,
121
    XPort,
122
    YPort,
123
    WPort,
124
    HPort,
125
    Camera,
126
    SurfaceID
127
}