Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_savepoint_Other_10

(view raw script w/o annotations or w/e)
1
global.msc = 0;
2
global.typer = 5;
3
if (global.darkzone == 1)
4
    global.typer = 6;
5
global.fc = 0;
6
global.fe = 0;
7
global.interact = 1;
8
nodialogue = 1;
9
if (room == room_dark1a)
10
{
11
    nodialogue = 0;
12
    global.msg[0] = 
* At times,Delay 11 you see it flickering.Delay 11
* The light only you can see.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_savepoint_slash_Other_10_gml_17_0")
;
13
    global.msg[1] = 
* By second nature,Delay 11 you reach out,Delay 11 and...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_savepoint_slash_Other_10_gml_18_0")
;
14
}
15
if (room == room_dark_eyepuzzle)
16
{
17
    nodialogue = 0;
18
    if (global.hp[1] < global.maxhp[1])
19
    {
20
        global.msg[0] = 
* You bathed your body in the light.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_savepoint_slash_Other_10_gml_26_0")
;
21
        global.msg[1] = 
* A power shines within you,Delay 11 breaking through the darkness.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_savepoint_slash_Other_10_gml_27_0")
;
22
        global.msg[2] = 
* The pain you had melted away...Delay 11
* (HP fully restored.)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_savepoint_slash_Other_10_gml_28_0")
;
23
    }
24
    if (global.hp[1] < 30)
25
    {
26
        global.msg[0] = 
* For some reason,Delay 11 you punished yourself with the spores.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_savepoint_slash_Other_10_gml_33_0")
;
27
        global.msg[1] = 
* The light relieves you...Delay 11
* (HP fully restored.)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_savepoint_slash_Other_10_gml_34_0")
;
28
    }
29
    if (global.hp[1] == global.maxhp[1])
30
    {
31
        global.msg[0] = 
* You bathed your body in the light.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_savepoint_slash_Other_10_gml_39_0")
;
32
        global.msg[1] = 
* A power shines within you,Delay 11 breaking through the darkness.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_savepoint_slash_Other_10_gml_40_0")
;
33
        global.msg[2] = 
* Any pain you may have had melted away...Delay 11
* (HP fully restored.)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_savepoint_slash_Other_10_gml_41_0")
;
34
    }
35
    if (talked >= 1)
36
        nodialogue = 1;
37
}
38
if (room == room_castle_town)
39
{
40
    nodialogue = 0;
41
    global.msg[0] = 
* In front of you,Delay 11 a castle looms beneath the empty town.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_savepoint_slash_Other_10_gml_51_0")
;
42
    global.msg[1] = 
* A black geyser emerges from it,Delay 11 piercing endlessly into the sky.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_savepoint_slash_Other_10_gml_52_0")
;
43
    global.msg[2] = 
* The power of this place shines within you.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_savepoint_slash_Other_10_gml_53_0")
;
44
    if (scr_havechar
scr_havechar

function scr_havechar(arg0) { _rreturn = 0; if (global.char[0] == arg0) _rreturn = 1; if (global.char[1] == arg0) _rreturn = 1; if (global.char[2] == arg0) _rreturn = 1; return _rreturn; }
(3))
45
    {
46
        global.msg[0] = 
* Ralsei,Delay 11 the lonely prince,Delay 11 is now your ally.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_savepoint_slash_Other_10_gml_57_0")
;
47
        global.msg[1] = 
* The power of fluffy boys shines within you.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_savepoint_slash_Other_10_gml_58_0")
;
48
    }
49
}
50
if (room == room_field_start)
51
{
52
    nodialogue = 0;
53
    global.msg[0] = 
* With the door closed behind you,Delay 11 your adventure will truly begin...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_savepoint_slash_Other_10_gml_66_0")
;
54
    global.msg[1] = 
* The power of adventure shines within you.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_savepoint_slash_Other_10_gml_67_0")
;
55
    if (global.plot >= 37)
56
    {
57
        global.msg[0] = 
* The door is still closed.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_savepoint_slash_Other_10_gml_71_0")
;
58
        global.msg[1] = 
* The power of backtracking shines within you.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_savepoint_slash_Other_10_gml_72_0")
;
59
    }
60
}
61
if (room == room_field_shop1)
62
{
63
    nodialogue = 0;
64
    global.msg[0] = 
* Susie,Delay 11 the violet tormentor,Delay 11 is now your ally.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_savepoint_slash_Other_10_gml_80_0")
;
65
    global.msg[1] = 
* The power of mean girls shines within you.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_savepoint_slash_Other_10_gml_81_0")
;
66
    if (scr_havechar
scr_havechar

function scr_havechar(arg0) { _rreturn = 0; if (global.char[0] == arg0) _rreturn = 1; if (global.char[1] == arg0) _rreturn = 1; if (global.char[2] == arg0) _rreturn = 1; return _rreturn; }
(2) == 0)
67
    {
68
        global.msg[0] = 
* Susie,Delay 11 the violet tormentor,Delay 11 left your party immediately.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_savepoint_slash_Other_10_gml_84_0")
;
69
        global.msg[1] = 
* The power of mean girls does not shine within you.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_savepoint_slash_Other_10_gml_85_0")
;
70
    }
71
}
72
if (room == room_field_checkers3)
73
{
74
    nodialogue = 0;
75
    tname = 
failing to name your team
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_savepoint_slash_Other_10_gml_92_0")
;
76
    if (global.flag[214 team_name] == 1)
77
        tname = 
The $!$? Squad
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_savepoint_slash_Other_10_gml_93_0")
;
78
    if (global.flag[214 team_name] == 2)
79
        tname = 
The Lancer Fan Club
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_savepoint_slash_Other_10_gml_94_0")
;
80
    if (global.flag[214 team_name] == 3)
81
        tname = 
The Fun Gang
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_savepoint_slash_Other_10_gml_95_0")
;
82
    global.msg[0] = scr_84_get_subst_string
scr_84_get_subst_string

function scr_84_get_subst_string() { var str = argument[0]; var sub_id = 1; length = string_length(str); pos = 0; while (sub_id < argument_count) { var sub = "~" + string(sub_id); str = string_replace_all(str, sub, argument[sub_id]); sub_id = sub_id + 1; } return str; }
(
* The power of ~1 shines within you.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_savepoint_slash_Other_10_gml_96_0")
, tname);
83
}
84
if (room == room_forest_savepoint1)
85
{
86
    nodialogue = 0;
87
    global.msg[0] = 
* The blocky foliage grows thick above your head...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_savepoint_slash_Other_10_gml_102_0")
;
88
    global.msg[1] = 
* The power of the forest shines within you.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_savepoint_slash_Other_10_gml_103_0")
;
89
}
90
if (room == room_forest_savepoint2)
91
{
92
    nodialogue = 0;
93
    global.msg[0] = 
* In the heart of the woods,Delay 11 a bake sale stands quietly.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_savepoint_slash_Other_10_gml_110_0")
;
94
    global.msg[1] = 
* The power of reoccurring bake sales shines within you.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_savepoint_slash_Other_10_gml_111_0")
;
95
}
96
myinteract = 3;
97
if (nodialogue == 0)
98
    mydialoguer = instance_create(0, 0, obj_dialoguer);
99
talked += 1;
100
snd_play(snd_power);
101
for (i = 0; i < 4; i += 1)
102
{
103
    if (global.hp[i] < global.maxhp[i])
104
        global.hp[i] = global.maxhp[i];
105
}