Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_homealone_kitchen_phone_Create_0

(view raw script w/o annotations or w/e)
1
if (global.plot < 63)
2
{
3
    instance_destroy();
4
    exit;
5
}
6
else if (global.plot == 63)
7
{
8
    if (scr_sideb_active())
9
    {
10
        instance_destroy();
11
        exit;
12
    }
13
}
14
phone_marker = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(200, 157, spr_noellehouse_kitchen_phone);
15
with (phone_marker)
16
    depth = 98000;
17
if (
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);
}
(737) >= 1)
18
{
19
    instance_destroy();
20
    exit;
21
}
22
for (i = 0; i < 20; i += 1)
23
{
24
    prevalpha[i] = 0;
25
    prevwx[i] = -200;
26
    prevwy[i] = -200;
27
    prevstringmax[i] = 0;
28
    prevhspace[i] = 0;
29
    prevlinecount[i] = 0;
30
    prevvspace[i] = 0;
31
}
32
con = 0;
33
dhaver = 0;
34
v = 0;
35
vx = 0;
36
vy = 0;
37
myd = -4;
38
writer = -4;
39
speech[0] = stringsetloc(
... dark...\nfountain...\nnext...
"... dark...\nfountain...\nnext...", "obj_homealone_kitchen_phone_slash_Create_0_gml_49_0"
);
40
speech[1] = stringsetloc(
... Susie...\nmust not get...\nguitar...
"\\cR... Susie...\nmust not get...\nguitar...\\cW", "obj_homealone_kitchen_phone_slash_Create_0_gml_50_0"
);
41
speech[2] = stringsetloc(
...\nneed...\nsoul...
"...\nneed...\nsoul...", "obj_homealone_kitchen_phone_slash_Create_0_gml_51_0"
);
42
speech[3] = stringsetloc(
Without... soul...\nKris... will...
"Without... soul...\nKris... will...", "obj_homealone_kitchen_phone_slash_Create_0_gml_52_0"
);
43
speech[4] = stringsetloc(
... Susie...\nguitar...\ncode... stop...
"\\cR... Susie...\nguitar...\ncode... stop...\\cW", "obj_homealone_kitchen_phone_slash_Create_0_gml_53_0"
);
44
speech[5] = stringsetloc(
... police...\nsacrifice...\nnext week...
"... police...\nsacrifice...\nnext week...", "obj_homealone_kitchen_phone_slash_Create_0_gml_54_0"
);
45
speech[6] = stringsetloc(
... church...\ntonight...
"... church...\ntonight...", "obj_homealone_kitchen_phone_slash_Create_0_gml_55_0"
);
46
speech[7] = stringsetloc(
... Kris...\ndark world...\nno soul... can't...
"... Kris...\ndark world...\nno soul... can't...", "obj_homealone_kitchen_phone_slash_Create_0_gml_56_0"
);
47
speech[8] = stringsetloc(
......\n......\n......
"......\n......\n......", "obj_homealone_kitchen_phone_slash_Create_0_gml_57_0"
);
48
speech_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);
}
(736) >= 1) ? (
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);
}
(736) + 1) : 0;
49
bg_base_alpha = 0;
50
speech_active = false;
51
show_text = false;
52
show_text_timer = 0;
53
current_index = 0;
54
current_text = speech[current_index];
55
speech_time = 30;
56
speech_xscale = 0;
57
speech_yscale = 0;
58
speech_alpha = 1;
59
speech_xpos = phone_marker.x + 40;
60
speech_base_ypos = phone_marker.y + 40;
61
speech_ypos = phone_marker.y;
62
speech_delay_timer = 90;
63
start_speech = speech_index < array_length_1d(speech);
64
stop_speech = false;
65
style = 0;
66
text_color = (style == 0) ? c_white : c_red;
67
fade_bubble = false;
68
fade_bubble_timer = 0;
69
depth = 4000;