Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_credits_ch4_Create_0

related scripts: Create_0 Draw_0Step_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
year_alpha = 0;
21
credit_index = -1;
22
credits = generate_credits();
23
credits_con = 0;
24
init = false;
25
loaded = true;
26
unlocked_trophies = false;
27
measure_factor = 2;
28
measure_time = 1.89371 * measure_factor;
29
measure_timer = measure_time;
30
glowing_active = false;
31
glowing_text = [];
32
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"
);
33
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"
);
34
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"
);
35
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"
);
36
glowing_text[4][0] = stringsetloc(
Face 0 MY &Delay 66amp; DELTARUNE.Wait for inputClose Message
"\\M0 MY ^6& DELTARUNE./%", "obj_credits_ch4_slash_Create_0_gml_69_0"
);
37
alt_text_enabled = false;
38
if (obj_event_manager.trophies_enabled)
39
    alt_text_enabled = array_length(global.trophies) == 0;
40
if (alt_text_enabled)
41
{
42
    var completed_all = true;
43
    for (var i = 1; i < global.chapter; i++)
44
    {
45
        completed_all = scr_completed_chapter_any_slot(i);
46
        if (!completed_all)
47
            break;
48
    }
49
    if (!completed_all)
50
        alt_text_enabled = false;
51
}
52
if (alt_text_enabled)
53
{
54
    glowing_text[0][0] = stringsetloc(
Face 0 INTERESTING.Wait for inputClose Message
"\\M0 INTERESTING./%", "obj_credits_ch4_slash_Create_0_gml_73_0"
);
55
    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"
);
56
    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"
);
57
    glowing_text[3][0] = stringsetsubloc(
Face 0 "Argument №11"Wait for inputClose Message
"\\M0 \"~1\"/%", global.truename, "obj_credits_ch4_slash_Create_0_gml_76_0"
);
58
    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"
);
59
}
60
glowing_text[0][1] = 60.4;
61
glowing_text[0][2] = 67;
62
glowing_text[1][1] = 68;
63
glowing_text[1][2] = 75.9;
64
glowing_text[2][1] = 76;
65
glowing_text[2][2] = 83.31;
66
glowing_text[3][1] = 84;
67
glowing_text[3][2] = 89.4;
68
glowing_text[4][1] = 90;
69
glowing_text[4][2] = 98;
70
glowing_index = 0;
71
text_con = 0;
72
text_buffer = 2;
73
auto_text = false;
74
auto_text_start = glowing_text[glowing_index][1];
75
auto_text_stop = glowing_text[glowing_index][2];
76
auto_text_buffer_time = 60;
77
auto_text_buffer = auto_text_buffer_time;
78
paused = false;
79
80
dequeue_text = function()
81
{
82
    global.typer = 666;
83
    global.fc = 0;
84
    global.msg[0] = glowing_text[glowing_index][0];
85
    auto_text_stop = glowing_text[glowing_index][2];
86
    var _writer = instance_create(70, 80, obj_writer);
87
    _writer.rate = 3;
88
    _writer.disablebutton1 = 1;
89
    _writer.skippable = 0;
90
    _writer.autocenter = 1;
91
    if (alt_text_enabled)
92
        _writer.jpspecial = 1;
93
    glowing_index++;
94
    if (glowing_index < array_length(glowing_text))
95
        auto_text_start = glowing_text[glowing_index][1];
96
};
97
98
restart_game = function()
99
{
100
    glowing_active = false;
101
    con = -1;
102
    game_restart();
103
};
104
105
enum e__VW
106
{
107
    XView,
108
    YView,
109
    WView,
110
    HView,
111
    Angle,
112
    HBorder,
113
    VBorder,
114
    HSpeed,
115
    VSpeed,
116
    Object,
117
    Visible,
118
    XPort,
119
    YPort,
120
    WPort,
121
    HPort,
122
    Camera,
123
    SurfaceID
124
}