Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_fountainkris_Step_0

(view raw script w/o annotations or w/e)
1
if (songplay == 2)
2
{
3
    global.currentsong[0] = snd_init("THE_HOLY.ogg");
4
    global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.8, 0.9);
5
    songplay = 3;
6
}
7
if (songplay == 1)
8
{
9
    snd_free_all();
10
    songplay = 2;
11
}
12
if (songplay == 0)
13
{
14
    with (obj_mainchara)
15
        visible = 0;
16
    songplay = 1;
17
}
18
if (con == 0)
19
{
20
    JA_XOFF = 0;
21
    con = 1;
22
    alarm[4]
 = 220;
gml_Object_obj_fountainkris_Alarm_4.gml

con += 1;
23
}
24
if (con == 1)
25
{
26
    y -= 1;
27
    image_index = susindex;
28
    susindex += 0.1;
29
    susy -= 1;
30
    global.interact = 1;
31
}
32
if (con == 2)
33
{
34
    image_speed = 0;
35
    image_index = 0;
36
    susindex = 0;
37
    con = 2.1;
38
    alarm[4]
 = 60;
gml_Object_obj_fountainkris_Alarm_4.gml

con += 1;
39
}
40
if (con == 3.1)
41
{
42
    JA_XOFF = langopt(0, 50);
43
    global.typer = 37;
44
    if (global.chapter == 1)
45
        global.msg[0] = stringsetloc(
Is this... the fountain...?Wait for inputClose Message
"Is this... the fountain...?/%", "obj_fountainkris_slash_Step_0_gml_49_0"
);
46
    if (global.chapter == 2)
47
        global.msg[0] = stringsetloc(
Kris...Wait for inputClose Message
"Kris.../%", "obj_fountainkris_slash_Step_0_gml_56_0"
);
48
    instance_create(100 + JA_XOFF, 80, obj_writer);
49
    con = 4;
50
}
51
if (con == 4 && !instance_exists(obj_writer))
52
{
53
    sussprite = spr_susier_bright;
54
    con = 3.2;
55
    alarm[4]
 = 30;
gml_Object_obj_fountainkris_Alarm_4.gml

con += 1;
56
}
57
if (con == 4.2)
58
{
59
    if (global.chapter == 1)
60
    {
61
        global.msg[0] = stringsetloc(
Dunno how, but...Wait for input
"Dunno how, but.../", "obj_fountainkris_slash_Step_0_gml_75_0"
);
62
        global.msg[1] = stringsetloc(
It feels like we
stumbled intoWait for input
"It feels like we&stumbled into/", "obj_fountainkris_slash_Step_0_gml_76_0"
);
63
        global.msg[2] = stringsetloc(
something really
important, didn't we...?Wait for input
"something really&important, didn't we...?/", "obj_fountainkris_slash_Step_0_gml_77_0"
);
64
        global.msg[3] = stringsetloc(
...Wait for inputClose Message
".../%", "obj_fountainkris_slash_Step_0_gml_78_0"
);
65
    }
66
    if (global.chapter == 2)
67
    {
68
        global.msg[0] = stringsetloc(
It looks like we're
here again, huh...Wait for input
"It looks like we're&here again, huh.../", "obj_fountainkris_slash_Step_0_gml_85_0"
);
69
        global.msg[1] = stringsetloc(
The Roaring Knight...Wait for input
"The Roaring Knight.../", "obj_fountainkris_slash_Step_0_gml_86_0"
);
70
        global.msg[2] = stringsetloc(
Whatever they are,
they're making
these fountains...Wait for input
"Whatever they are,&they're making&these fountains.../", "obj_fountainkris_slash_Step_0_gml_87_0"
);
71
        global.msg[3] = stringsetloc(
...Wait for inputClose Message
".../%", "obj_fountainkris_slash_Step_0_gml_88_0"
);
72
    }
73
    instance_create(100 + JA_XOFF, 80, obj_writer);
74
    con = 6;
75
}
76
if (con == 6 && !instance_exists(obj_writer))
77
{
78
    sussprite = spr_susieu_bright;
79
    con = 7;
80
    alarm[4]
 = 40;
gml_Object_obj_fountainkris_Alarm_4.gml

con += 1;
81
}
82
if (con == 8)
83
{
84
    if (global.chapter == 1)
85
    {
86
        global.msg[0] = stringsetloc(
Well, there's no time to
think about that now.Wait for input
"Well, there's no time to&think about that now./", "obj_fountainkris_slash_Step_0_gml_104_0"
);
87
        global.msg[1] = stringsetloc(
Right now...Wait for input
"Right now.../", "obj_fountainkris_slash_Step_0_gml_105_0"
);
88
        global.msg[2] = stringsetloc(
It's time to go home,Wait for input
"It's time to go home,/", "obj_fountainkris_slash_Step_0_gml_106_0"
);
89
        global.msg[3] = stringsetloc(
right,Delay 11 Kris?Wait for inputClose Message
"right^1, Kris?/%", "obj_fountainkris_slash_Step_0_gml_107_0"
);
90
    }
91
    if (global.chapter == 2)
92
    {
93
        global.msg[0] = stringsetloc(
But... is that really
a bad thing...?Wait for input
"But... is that really&a bad thing...?/", "obj_fountainkris_slash_Step_0_gml_114_0"
);
94
        global.msg[1] = stringsetloc(
Since they started
showing up,Wait for input
"Since they started&showing up,/", "obj_fountainkris_slash_Step_0_gml_115_0"
);
95
        global.msg[2] = stringsetloc(
Everything's gotten a lot
more interesting,
hasn't it...?Wait for input
"Everything's gotten a lot&more interesting,&hasn't it...?/", "obj_fountainkris_slash_Step_0_gml_116_0"
);
96
        global.msg[3] = stringsetloc(
...Wait for input
".../", "obj_fountainkris_slash_Step_0_gml_117_0"
);
97
        global.msg[4] = stringsetloc(
Well, we don't have to
think about that now...Wait for input
"Well, we don't have to&think about that now.../", "obj_fountainkris_slash_Step_0_gml_118_0"
);
98
        global.msg[5] = stringsetloc(
Kris, it's your turn.Wait for inputClose Message
"Kris, it's your turn./%", "obj_fountainkris_slash_Step_0_gml_119_0"
);
99
    }
100
    instance_create(100 + JA_XOFF, 80, obj_writer);
101
    con = 8.1;
102
}
103
if (con == 8.1 && !instance_exists(obj_writer))
104
{
105
    con = 9;
106
    alarm[4]
 = 40;
gml_Object_obj_fountainkris_Alarm_4.gml

con += 1;
107
}
108
if (con == 9 && !instance_exists(obj_writer))
109
{
110
    y -= 1;
111
    image_index += 0.1;
112
}
113
if (con == 10)
114
{
115
    image_index = 0;
116
    con = 9.1;
117
    alarm[4]
 = 30;
gml_Object_obj_fountainkris_Alarm_4.gml

con += 1;
118
}
119
if (con == 10.1)
120
{
121
    global.typer = 42;
122
    if (global.chapter == 1)
123
    {
124
        global.msg[0] = stringsetloc(
(As you stood in front
of the fountain,)Wait for input
"(As you stood in front&of the fountain,)/", "obj_fountainkris_slash_Step_0_gml_150_0"
);
125
        global.msg[1] = stringsetloc(
(You felt something strange.)Wait for input
"(You felt something strange.)/", "obj_fountainkris_slash_Step_0_gml_151_0"
);
126
        global.msg[2] = stringsetloc(
(It was as if)Wait for input
"(It was as if)/", "obj_fountainkris_slash_Step_0_gml_152_0"
);
127
        global.msg[3] = stringsetloc(
(Your very SOUL was glowing...)Wait for inputClose Message
"(Your very SOUL was glowing...)/%", "obj_fountainkris_slash_Step_0_gml_153_0"
);
128
    }
129
    if (global.chapter == 2)
130
        global.msg[0] = stringsetloc(
(It was as if your very SOUL was glowing...)Wait for inputClose Message
"(It was as if your very SOUL was glowing...)/%", "obj_fountainkris_slash_Step_0_gml_160_0"
);
131
    instance_create(80 + JA_XOFF, 80, obj_writer);
132
    con = 12;
133
}
134
if (con == 12 && !instance_exists(obj_writer))
135
{
136
    snd_free_all();
137
    made = 1;
138
    instance_create(x + (sprite_width / 2), y + (sprite_width / 2) + 20, obj_darkfountain_event);
139
    con = 13;
140
}