Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_homealone_north_convo_Create_0

(view raw script w/o annotations or w/e)
1
_parent = -4;
2
auto_text = true;
3
auto_text_buffer_time = 90;
4
auto_text_buffer = auto_text_buffer_time;
5
auto_text_start = false;
6
auto_text_stop = false;
7
con = -1;
8
convo = [];
9
convo_parent_index = 0;
10
convo_index = 0;
11
convo_line_index = 0;
12
convo_wait = false;
13
convo_timer = 0;
14
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);
}
(1558) > 0)
15
{
16
    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);
}
(1558) >= 11)
17
    {
18
        instance_destroy();
19
        exit;
20
    }
21
    convo_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);
}
(1558);
22
}
23
convo[0][0] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 0* We're almost there,Delay 11 aren't we,Delay 11 old friend?
"\\E0* We're almost there^1, aren't we^1, old friend?", "obj_homealone_north_convo_slash_Create_0_gml_94_0"
))];
24
convo[0][1] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 2* This time for sure...Delay 11 Tori will finally see.
"\\E2* This time for sure..^1. Tori will finally see.", "obj_homealone_north_convo_slash_Create_0_gml_97_0"
))];
25
convo[0][2] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 0* ...Delay 11 see what really happened.
"\\E0* ..^1. see what really happened.", "obj_homealone_north_convo_slash_Create_0_gml_100_0"
))];
26
convo[0][3] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 3* ...Delay 11 that I just wanted to...Delay 11 protect everyone...
"\\E3* ..^1. that I just wanted to..^1. protect everyone...", "obj_homealone_north_convo_slash_Create_0_gml_103_0"
))];
27
convo[0][4] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 1* And this time,Delay 11 she'll have to believe me.
"\\E1* And this time^1, she'll have to believe me.", "obj_homealone_north_convo_slash_Create_0_gml_106_0"
))];
28
convo[0][5] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 0* ...Delay 11 they all will.
"\\E0* ..^1. they all will.", "obj_homealone_north_convo_slash_Create_0_gml_109_0"
))];
29
convo[0][6] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 2* Then...
"\\E2* Then...", "obj_homealone_north_convo_slash_Create_0_gml_112_0"
))];
30
convo[0][7] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 3* We'll all be a happy family again...Delay 11 won't we?
"\\E3* We'll all be a happy family again..^1. won't we?", "obj_homealone_north_convo_slash_Create_0_gml_115_0"
))];
31
convo[0][8] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 2* ...
"\\E2* ...", "obj_homealone_north_convo_slash_Create_0_gml_118_0"
))];
32
convo[0][9] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 0* It sure is beautiful,Delay 11 isn't it...?
"\\E0* It sure is beautiful^1, isn't it...?", "obj_homealone_north_convo_slash_Create_0_gml_121_0"
))];
33
convo[0][10] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("asgore", stringsetloc(
Face 1* ...Delay 11 this black shard.
"\\E1* ..^1. this black shard.", "obj_homealone_north_convo_slash_Create_0_gml_124_0"
))];
34
35
init_parent = function(arg0)
36
{
37
    _parent = arg0;
38
};
39
40
start_convo = function()
41
{
42
    con = 0;
43
    change_convo_index(0, 3);
44
};
45
46
interrupt_convo = function()
47
{
48
    con = -1;
49
    with (obj_writer)
50
        instance_destroy();
51
    with (obj_dialoguer)
52
        instance_destroy();
53
};
54
55
change_convo_index = function(arg0, arg1 = 1)
56
{
57
    convo_parent_index = arg0;
58
    convo_line_index = 0;
59
    con = 0;
60
    set_timer(arg1 * 30);
61
};
62
63
set_timer = function(arg0)
64
{
65
    convo_timer = arg0;
66
};
67
68
trigger_event = function(arg0)
69
{
70
    with (_parent)
71
        trigger_event(arg0);
72
};