Deltarune (Chapter 1) 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;
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;
39
}
40
if (con == 3.1)
41
{
42
    JA_XOFF = 0;
43
    if (global.lang == "ja")
44
        JA_XOFF = 50;
45
    global.typer = 37;
46
    global.msg[0] = 
Is this... the fountain...?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_47_0")
;
47
    instance_create(100 + JA_XOFF, 80, obj_writer);
48
    con = 4;
49
}
50
if (con == 4 && !instance_exists(obj_writer))
51
{
52
    sussprite = spr_susier_bright;
53
    con = 3.2;
54
    alarm[4] = 30;
55
}
56
if (con == 4.2)
57
{
58
    global.msg[0] = 
Dunno how, but...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_64_0")
;
59
    global.msg[1] = 
It feels like we
stumbled intoWait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_65_0")
;
60
    global.msg[2] = 
something really
important, didn't we...?Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_66_0")
;
61
    global.msg[3] = 
...Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_67_0")
;
62
    instance_create(100 + JA_XOFF, 80, obj_writer);
63
    con = 6;
64
}
65
if (con == 6 && !instance_exists(obj_writer))
66
{
67
    sussprite = spr_susieu_bright;
68
    con = 7;
69
    alarm[4] = 40;
70
}
71
if (con == 8)
72
{
73
    global.msg[0] = 
Well, there's no time to
think about that now.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_81_0")
;
74
    global.msg[1] = 
Right now...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_82_0")
;
75
    global.msg[2] = 
It's time to go home,Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_83_0")
;
76
    global.msg[3] = 
right,Delay 11 Kris?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_84_0")
;
77
    instance_create(100 + JA_XOFF, 80, obj_writer);
78
    con = 8.1;
79
}
80
if (con == 8.1 && !instance_exists(obj_writer))
81
{
82
    con = 9;
83
    alarm[4] = 40;
84
}
85
if (con == 9 && !instance_exists(obj_writer))
86
{
87
    y -= 1;
88
    image_index += 0.1;
89
}
90
if (con == 10)
91
{
92
    image_index = 0;
93
    con = 9.1;
94
    alarm[4] = 30;
95
}
96
if (con == 10.1)
97
{
98
    global.typer = 42;
99
    global.msg[0] = 
(As you stood in front
of the fountain,)Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_112_0")
;
100
    global.msg[1] = 
(You felt something strange.)Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_113_0")
;
101
    global.msg[2] = 
(It was as if)Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_114_0")
;
102
    global.msg[3] = 
(Your very SOUL was glowing...)Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_fountainkris_slash_Step_0_gml_115_0")
;
103
    instance_create(80 + JA_XOFF, 80, obj_writer);
104
    con = 12;
105
}
106
if (con == 12 && !instance_exists(obj_writer))
107
{
108
    snd_free_all();
109
    made = 1;
110
    instance_create(x + (sprite_width / 2), y + (sprite_width / 2) + 20, obj_darkfountain_event);
111
    con = 13;
112
}