Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_legender_Create_0

(view raw script w/o annotations or w/e)
1
siner = 0;
2
timer = 0;
3
activetimer = 0;
4
image_alpha = 0;
5
relx = 20;
6
rely = 20;
7
show = false;
8
charspace = 15;
9
triggertype = 0;
10
startingx = 280;
11
endingx = 600;
12
c_darkblue = hexcolor(#4A1F18);
13
stringmax = 10;
14
maxlines = 10;
15
image_only = false;
16
for (var i = 0; i < stringmax; i++)
17
{
18
    textstring[i] = "nothing";
19
    textchar[i] = 0;
20
    textx[i] = 0;
21
    texty[i] = 0;
22
    textstartwait[i] = 1;
23
    textendwait[i] = 0;
24
    textrate[i] = 2;
25
    texttimer[i] = 0;
26
    textactivetimer[i] = 0;
27
}
28
prophecy_index = 0;
29
line_index = 0;
30
prophecy_text[0][0] = [stringsetloc(
IT STARTED ONCE UPON A TIME
"IT STARTED ONCE UPON A TIME", "obj_dw_church_legender_slash_Create_0_gml_37_0"
), stringsetloc(
A LEGEND SPOKE IN SHADOWD RHYME
"A LEGEND SPOKE IN SHADOWD RHYME", "obj_dw_church_legender_slash_Create_0_gml_37_1"
)];
31
prophecy_text[0][1] = [stringsetloc(
OF LIGHT AND DARK AND LOVE AND HATE
"OF LIGHT AND DARK AND LOVE AND HATE", "obj_dw_church_legender_slash_Create_0_gml_38_0"
), stringsetloc(
THE HOPES AND DREAMS THAT GOVERN FATE
"THE HOPES AND DREAMS THAT GOVERN FATE", "obj_dw_church_legender_slash_Create_0_gml_38_1"
)];
32
prophecy_text[0][2] = [stringsetloc(
THIS WAS THE LEGEND OF
"THIS WAS THE LEGEND OF <DELTARUNE.>", "obj_dw_church_legender_slash_Create_0_gml_39_0"
)];
33
prophecy_text[1][0] = [stringsetloc(
A WORLD BASKED IN PUREST LIGHT.
"A WORLD BASKED IN PUREST LIGHT.", "obj_dw_church_legender_slash_Create_0_gml_41_0"
), stringsetloc(
BENEATH IT, GREW ETERNAL NIGHT.
"BENEATH IT, GREW ETERNAL NIGHT.", "obj_dw_church_legender_slash_Create_0_gml_41_1"
)];
34
prophecy_text[2][0] = [stringsetloc(
THE FOUNTAINS FREED,
"THE FOUNTAINS FREED,", "obj_dw_church_legender_slash_Create_0_gml_43_0"
), stringsetloc(
THE ROARING CRIES.
"THE ROARING CRIES.", "obj_dw_church_legender_slash_Create_0_gml_43_1"
)];
35
prophecy_text[2][1] = [stringsetloc(
THE TITANS SHAPE
"THE TITANS SHAPE", "obj_dw_church_legender_slash_Create_0_gml_44_0"
), stringsetloc(
FROM DARKENED EYES.
"FROM DARKENED EYES.", "obj_dw_church_legender_slash_Create_0_gml_44_1"
)];
36
prophecy_text[3][0] = [stringsetloc(
THE LIGHT AND DARK,
"THE LIGHT AND DARK,", "obj_dw_church_legender_slash_Create_0_gml_46_0"
), stringsetloc(
BOTH BURNING DIRE.
"BOTH BURNING DIRE.", "obj_dw_church_legender_slash_Create_0_gml_46_1"
)];
37
prophecy_text[3][1] = [stringsetloc(
A COUNTDOWN TO
"A COUNTDOWN TO", "obj_dw_church_legender_slash_Create_0_gml_47_0"
), stringsetloc(
THE EARTH'S EXPIRE.
"THE EARTH'S EXPIRE.", "obj_dw_church_legender_slash_Create_0_gml_47_1"
)];
38
prophecy_text[4][0] = [stringsetloc(
BUT LO, ON HOPES AND DREAMS THEY SEND.
"BUT LO, ON HOPES AND DREAMS THEY SEND.", "obj_dw_church_legender_slash_Create_0_gml_49_0"
)];
39
prophecy_text[4][1] = [stringsetloc(
THREE HEROES AT THE WORLD'S END.
"THREE HEROES AT THE WORLD'S END.", "obj_dw_church_legender_slash_Create_0_gml_50_0"
)];
40
prophecy_text[5][0] = [stringsetloc(
THE GIRL,
"THE GIRL,", "obj_dw_church_legender_slash_Create_0_gml_52_0"
), stringsetloc(
WITH HOPE CROSSED ON HER HEART.
"WITH HOPE CROSSED ON HER HEART.", "obj_dw_church_legender_slash_Create_0_gml_52_1"
)];
41
prophecy_text[5][1] = [stringsetloc(
THE PRINCE,
"THE PRINCE,", "obj_dw_church_legender_slash_Create_0_gml_53_0"
), stringsetloc(
ALONE IN DEEPEST DARK.
"ALONE IN DEEPEST DARK.", "obj_dw_church_legender_slash_Create_0_gml_53_1"
)];
42
prophecy_text[5][2] = [stringsetloc(
THE CAGE,
"THE CAGE,", "obj_dw_church_legender_slash_Create_0_gml_54_0"
), stringsetloc(
WITH HUMAN SOUL AND PARTS.
"WITH HUMAN SOUL AND PARTS.", "obj_dw_church_legender_slash_Create_0_gml_54_1"
)];
43
prophecy_text[6][0] = [stringsetloc(
THE POINTY-HEADED ONE WILL SAY
"THE POINTY-HEADED ONE WILL SAY", "obj_dw_church_legender_slash_Create_0_gml_56_0"
), stringsetloc(
"TOOTHPASTE", AND THEN "BOY."
"\"TOOTHPASTE\", AND THEN \"BOY.\"", "obj_dw_church_legender_slash_Create_0_gml_56_1"
)];
44
set_lines = false;
45
alt_sides = false;
46
if (room == room_dw_church_intro_guei)
47
{
48
    prophecy_index = 0;
49
    triggertype = 1;
50
    depth = 999000;
51
    rely = 200;
52
    relx = 100;
53
    maxlines = array_length_1d(prophecy_text[prophecy_index]);
54
    stringmax = array_length_1d(prophecy_text[prophecy_index][line_index]);
55
    for (var i = 0; i < stringmax; i++)
56
    {
57
        textstring[i] = prophecy_text[prophecy_index][line_index][i];
58
        textx[i] = -40;
59
        texty[i] = 40 + (i * 40);
60
        textstartwait[i] = 1 + (i * 90);
61
        textendwait[i] = 90;
62
    }
63
}
64
if (room == room_dw_church_intro3)
65
{
66
    prophecy_index = 1;
67
    triggertype = 1;
68
    depth = 999000;
69
    maxlines = array_length_1d(prophecy_text[prophecy_index]);
70
    stringmax = array_length_1d(prophecy_text[prophecy_index][line_index]);
71
    for (var i = 0; i < stringmax; i++)
72
    {
73
        textstring[i] = prophecy_text[prophecy_index][line_index][i];
74
        textx[i] = 40;
75
        texty[i] = 40 + (i * 40);
76
        textstartwait[i] = 1 + (i * 60);
77
        textendwait[i] = 90;
78
    }
79
}
80
if (room == room_dw_church_lantern_hallway)
81
{
82
    prophecy_index = 2;
83
    triggertype = 1;
84
    depth = 999000;
85
    alt_sides = true;
86
    maxlines = array_length_1d(prophecy_text[prophecy_index]);
87
    stringmax = array_length_1d(prophecy_text[prophecy_index][line_index]);
88
    for (var i = 0; i < stringmax; i++)
89
    {
90
        textstring[i] = prophecy_text[prophecy_index][line_index][i];
91
        textx[i] = 0;
92
        texty[i] = 40 + (i * 40);
93
        textstartwait[i] = 1 + (i * 60);
94
        textendwait[i] = 90;
95
    }
96
}
97
if (room == room_dw_church_stairs_topleft)
98
{
99
    prophecy_index = (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; } function scr_flag_name_get(arg0) { if (!global.is_console) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } else { return ""; } } function scr_getflag(arg0) { return
scr_flag_get(arg0);
}
(795) == 0) ? 3 : 4;
100
    if (prophecy_index == 3)
101
        
scr_flag_set
scr_flag_set

function
scr_flag_set(arg0, arg1)
{ global.flag[arg0] = arg1; if (
scr_debug())
show_debug_message("*** flag [" + string(arg0) + "] updated: " + string(arg1) + " | " + scr_flag_name_get(arg0)); } function scr_setflag(arg0, arg1) {
scr_flag_set(arg0, arg1);
}
(795, 1);
102
    triggertype = 1;
103
    depth = 999000;
104
    relx = 200;
105
    maxlines = array_length_1d(prophecy_text[prophecy_index]);
106
    stringmax = array_length_1d(prophecy_text[prophecy_index][line_index]);
107
    for (var i = 0; i < stringmax; i++)
108
    {
109
        textstring[i] = prophecy_text[prophecy_index][line_index][i];
110
        textx[i] = 40;
111
        texty[i] = 40 + (i * 40);
112
        textstartwait[i] = 1 + (i * 60);
113
        textendwait[i] = 90;
114
    }
115
}
116
if (room == room_dw_church_stairs_topright)
117
{
118
    prophecy_index = (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; } function scr_flag_name_get(arg0) { if (!global.is_console) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } else { return ""; } } function scr_getflag(arg0) { return
scr_flag_get(arg0);
}
(795) == 0) ? 3 : 4;
119
    if (prophecy_index == 3)
120
        
scr_flag_set
scr_flag_set

function
scr_flag_set(arg0, arg1)
{ global.flag[arg0] = arg1; if (
scr_debug())
show_debug_message("*** flag [" + string(arg0) + "] updated: " + string(arg1) + " | " + scr_flag_name_get(arg0)); } function scr_setflag(arg0, arg1) {
scr_flag_set(arg0, arg1);
}
(795, 2);
121
    triggertype = 1;
122
    depth = 999000;
123
    maxlines = array_length_1d(prophecy_text[prophecy_index]);
124
    stringmax = array_length_1d(prophecy_text[prophecy_index][line_index]);
125
    for (var i = 0; i < stringmax; i++)
126
    {
127
        textstring[i] = prophecy_text[prophecy_index][line_index][i];
128
        textx[i] = 0;
129
        texty[i] = 40 + (i * 40);
130
        textstartwait[i] = 1 + (i * 60);
131
        textendwait[i] = 90;
132
    }
133
}
134
if (room == room_dw_church_stairs_west_bell)
135
{
136
    prophecy_index = 5;
137
    triggertype = 1;
138
    depth = 999000;
139
    maxlines = array_length_1d(prophecy_text[prophecy_index]);
140
    stringmax = array_length_1d(prophecy_text[prophecy_index][line_index]);
141
    for (var i = 0; i < stringmax; i++)
142
    {
143
        textstring[i] = prophecy_text[prophecy_index][line_index][i];
144
        textx[i] = 0;
145
        texty[i] = 40 + (i * 40);
146
        textstartwait[i] = 1 + (i * 60);
147
        textendwait[i] = 90;
148
    }
149
}
150
if (room == room_dw_church_minorlegend)
151
{
152
    prophecy_index = 6;
153
    triggertype = 1;
154
    depth = 999000;
155
    relx = 210;
156
    rely = 90;
157
    maxlines = array_length_1d(prophecy_text[prophecy_index]);
158
    stringmax = array_length_1d(prophecy_text[prophecy_index][line_index]);
159
    for (var i = 0; i < stringmax; i++)
160
    {
161
        textstring[i] = prophecy_text[prophecy_index][line_index][i];
162
        textx[i] = -120;
163
        texty[i] = 40 + (i * 40);
164
        textstartwait[i] = 1 + (i * 60);
165
        textendwait[i] = 90;
166
    }
167
}
168
if (room == room_dw_church_savepoint)
169
{
170
    image_only = true;
171
    triggertype = 1;
172
    depth = 999000;
173
    relx = 240;
174
    rely = 60;
175
}
176
xx = camerax() + relx;
177
yy = cameray() + rely;