Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_ch5_LW01W_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
convo_stopped = false;
15
convo_finished = false;
16
convo[0][0] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* Kris...?
"* Kris...?", "obj_ch5_LW01W_convo_slash_Create_0_gml_26_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* Kris,Delay 11 are you feeling all right...?
"* Kris^1, are you feeling all right...?", "obj_ch5_LW01W_convo_slash_Create_0_gml_27_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* I know it is the weekend,Delay 11 but...
"* I know it is the weekend^1, but...", "obj_ch5_LW01W_convo_slash_Create_0_gml_28_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* You have not left your room all day.
"* You have not left your room all day.", "obj_ch5_LW01W_convo_slash_Create_0_gml_29_0"
))];
17
convo[0][1] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* The...Delay 11 Festival was today,Delay 11 you know.
"* The..^1. Festival was today^1, you know.", "obj_ch5_LW01W_convo_slash_Create_0_gml_33_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* The sun is going down now...
"* The sun is going down now...", "obj_ch5_LW01W_convo_slash_Create_0_gml_34_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* If you get up now,Delay 11 you could still see the parade.
"* If you get up now^1, you could still see the parade.", "obj_ch5_LW01W_convo_slash_Create_0_gml_35_0"
))];
18
convo[0][2] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* Kris,Delay 11 at the very least,Delay 11 you should eat something.
"* Kris^1, at the very least^1, you should eat something.", "obj_ch5_LW01W_convo_slash_Create_0_gml_39_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* There is some honey toast on the table downstairs...
"* There is some honey toast on the table downstairs...", "obj_ch5_LW01W_convo_slash_Create_0_gml_40_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* I made it for you.
"* I made it for you.", "obj_ch5_LW01W_convo_slash_Create_0_gml_41_0"
))];
19
convo[0][3] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* ...Delay 11 well,Delay 11 I will be downstairs reading.
"* ..^1. well^1, I will be downstairs reading.", "obj_ch5_LW01W_convo_slash_Create_0_gml_45_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* I know it has been difficult without your brother...
"* I know it has been difficult without your brother...", "obj_ch5_LW01W_convo_slash_Create_0_gml_46_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* But...
"* But...", "obj_ch5_LW01W_convo_slash_Create_0_gml_47_0"
))];
20
convo[0][4] = [new 
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* ...Delay 11 well.
"* ..^1. well.", "obj_ch5_LW01W_convo_slash_Create_0_gml_51_0"
)), new
scr_auto_convo
scr_auto_convo

function
scr_auto_convo(arg0, arg1, arg2 = []) constructor
{ speaker = arg0; dialogue = arg1; options = arg2; }
("toriel", stringsetloc(
* No one can make you get out of bed,Delay 11 honey.
"* No one can make you get out of bed^1, honey.", "obj_ch5_LW01W_convo_slash_Create_0_gml_52_0"
))];
21
22
init_parent = function(arg0)
23
{
24
    _parent = arg0;
25
};
26
27
start_convo = function()
28
{
29
    con = 0;
30
    change_convo_index(0);
31
};
32
33
stop_convo = function()
34
{
35
    convo_stopped = true;
36
    auto_text = false;
37
};
38
39
interrupt_convo = function()
40
{
41
    con = -1;
42
    trigger_event("convo_interrupted");
43
    with (obj_writer)
44
        instance_destroy();
45
    with (obj_dialoguer)
46
        instance_destroy();
47
};
48
49
change_convo_index = function(arg0, arg1 = 1)
50
{
51
    convo_parent_index = arg0;
52
    convo_index = 0;
53
    convo_line_index = 0;
54
    con = 0;
55
    set_timer(arg1 * 30);
56
};
57
58
start_final_convo = function()
59
{
60
    change_convo_index(1, 2);
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
};