Deltarune script viewer

← back to main script listing

gml_Object_obj_writer_ch1_Create_0

(view raw script w/o annotations or w/e)
1
skipme = 0;
2
textsound = snd_text_ch1;
3
charline = 33;
4
originalcharline = charline;
5
hspace = 8;
6
vspace = 18;
7
rate = 1;
8
mycolor = c_white;
9
myfont = scr_84_get_font_ch1
scr_84_get_font_ch1

function scr_84_get_font_ch1(arg0) { if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("main");
10
shake = 0;
11
special = 0;
12
skippable = 1;
13
automash_timer = 0;
14
if (global.flag[6 disable_text_skip] == 1)
15
    skippable = 0;
16
f = 1;
17
if (global.darkzone == 1)
18
    f = 2;
19
scr_texttype_ch1
scr_texttype_ch1

function scr_texttype_ch1() { textscale = 1; var extra_ja_vspace = 0; if (!variable_global_exists("chemg_typer")) global.chemg_typer = -1; if (global.chemg_typer != global.typer) global.chemg_typer = global.typer; var font_set = true; switch (global.typer) { case 0: font_set = false; break; case 1: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 357, 8, 18, 0); break; case 2: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 2, 492, 8, 18, 0); break; case 3: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 2, 357, 8, 18, 1); break; case 4: scr_textsetup_ch1(scr_84_get_font_ch1("mainbig"), 16777215, x, y, 33, 0, 1, 357, 16, 28, 1); extra_ja_vspace = 2; break; case 5: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 357, 8, 18, 0); break; case 6: scr_textsetup_ch1(scr_84_get_font_ch1("mainbig"), 16777215, x, y, 33, 0, 1, 357, 16, 36, 1); break; case 7: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 356, 8, 18, 0); break; case 8: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 2, 356, 8, 18, 0); break; case 10: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 348, 8, 18, 0); break; case 11: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 348, 8, 18, 0); break; case 12: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 349, 8, 18, 0); break; case 13: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 350, 8, 18, 0); break; case 14: scr_textsetup_ch1(scr_84_get_font_ch1("comicsans"), 16777215, x, y, 33, 0, 1, 346, 8, 18, 0); break; case 15: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 357, 8, 18, 0); break; case 16: font_set = false; break; case 17: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 347, 8, 18, 0); break; case 18: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 344, 8, 18, 0); break; case 19: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 357, 8, 18, 0); break; case 20: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 355, 8, 18, 0); break; case 21: scr_textsetup_ch1(scr_84_get_font_ch1("main"), 16777215, x, y, 33, 0, 1, 355, 8, 18, 0); break; case 22: scr_textsetup_ch1(scr_84_get_font_ch1("tinynoelle"), 16777215, x, y + 7, 33, 0, 1, 355, 6, 18, 0); break; case 23: scr_textsetup_ch1(scr_84_get_font_ch1("tinynoelle"), 16777215, x, y + 7, 33, 0, 1, 349, 6, 18, 0); break; case 30: scr_textsetup_ch1(scr_84_get_font_ch1("mainbig"), 16777215, x, y, 33, 0, 1, 348, 16, 36, 1); break; case 31: scr_textsetup_ch1(scr_84_get_font_ch1("mainbig"), 16777215, x, y, 33, 0, 1, 351, 16, 36, 1); break; case 32: scr_textsetup_ch1(scr_84_get_font_ch1("mainbig"), 16777215, x, y, 33, 0, 1, 354, 16, 36, 1); break; case 33: scr_textsetup_ch1(scr_84_get_font_ch1("mainbig"), 16777215, x, y, 33, 0, 1, 405, 16, 36, 1); break; case 35: scr_textsetup_ch1(scr_84_get_font_ch1("mainbig"), 16777215, x, y, 33, 0, 1, 353, 16, 36, 1); break; case 36: scr_textsetup_ch1(scr_84_get_font_ch1("mainbig"), 16777215, x, y, 33, 0, 1, 492, 16, 36, 1); break; case 37: scr_textsetup_ch1(scr_84_get_font_ch1("mainbig"), 16777215, x, y, 33, 0, 3, 348, 18, 36, 1); ...
();
20
autoaster = 1;
21
pos = 2;
22
lineno = 0;
23
aster = 0;
24
halt = 0;
25
xcolor = c_black;
26
wxskip = 0;
27
msgno = 0;
28
first_alarm = 0;
29
firstnoise = 0;
30
noiseskip = 0;
31
formatted = 0;
32
colorchange = 0;
33
fontchange = 0;
34
sound_played = 0;
35
writingx = x;
36
writingy = y;
37
dialoguer = 0;
38
smallface = 505050;
39
faced = 0;
40
facedever = 0;
41
facer = 0;
42
siner = 0;
43
specfade = 1;
44
for (i = 0; i < 7; i += 1)
45
{
46
    specx[i] = i * 6;
47
    specy[i] = i * 6;
48
}
49
mystring = global.msg[0];
50
for (j = 0; j < 100; j += 1)
51
    nstring[j] = global.msg[j];
52
length = string_length(mystring);
53
alarm[0] = rate;
gml_Object_obj_writer_ch1_Alarm_0.gml

if (rate > 2) alarm[1] = 1; else if (first_alarm == 1 && pos >= 2) scr_textsound_ch1(); if (pos <= length) alarm[0] = rate; if (first_alarm == 0) { getchar = string_char_at(mystring, 1); if (getchar == "\\") pos += 3; else pos += 1; first_alarm = 1; } else { getchar = string_char_at(mystring, pos); nextchar = string_char_at(mystring, pos + 1); if (getchar == "&") pos += 1; if (getchar == "\\") pos += 3; if (getchar == "/") { halt = 1; if (nextchar == "%") halt = 2; alarm[0] = -1; } getchar = string_char_at(mystring, pos); nextchar = string_char_at(mystring, pos + 1); if (getchar == "|") pos += 2; if (getchar == "^") { pos += 2; if (alarm[0] > 0) { if (nextchar == "1") alarm[0] += 5; if (nextchar == "2") alarm[0] += 10; if (nextchar == "3") alarm[0] += 15; if (nextchar == "4") alarm[0] += 20; if (nextchar == "5") alarm[0] += 30; if (nextchar == "6") alarm[0] += 40; if (nextchar == "7") alarm[0] += 60; if (nextchar == "8") alarm[0] += 90; if (nextchar == "9") alarm[0] += 150; } } pos += 1; }
54
if (rate < 3)
55
    alarm[2] = 1;
gml_Object_obj_writer_ch1_Alarm_2.gml

if (firstnoise == 0) { firstnoise = 1; scr_textsound_ch1(); }
56
else
57
    scr_textsound_ch1
scr_textsound_ch1

function scr_textsound_ch1() { playtextsound = 1; if (button2_h_ch1() == 1) playtextsound = 0; if (skippable == 0) playtextsound = 1; if (playtextsound == 1) { if (rate <= 2) getchar = string_char_at(mystring, pos); else getchar = string_char_at(mystring, pos - 1); play = 1; playcheck = 0; if (getchar == "&") { if (rate < 3) { playcheck = 1; getchar = string_char_at(mystring, pos + 1); } else { play = 0; } } if (getchar == " ") play = 0; if (getchar == "^") play = 0; if (getchar == "!") play = 0; if (getchar == ".") play = 0; if (getchar == "?") play = 0; if (getchar == ",") play = 0; if (getchar == ":") play = 0; if (getchar == "/") play = 0; if (getchar == "\\") play = 0; if (getchar == "|") play = 0; if (getchar == "*") play = 0; if (play == 1) { snd_play_ch1(textsound); with (obj_face_parent_ch1) mouthmove = 1; } } }
();