Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_PDC01A_Step_0

(view raw script w/o annotations or w/e)
1
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
2
{
3
    if (sunkus_kb_check_pressed(82))
4
    {
5
        snd_free_all();
6
        room_restart();
7
    }
8
}
9
if (con == 0)
10
{
11
    JA_XOFF = 0;
12
    con = 1;
13
    alarm[4]
 = 220;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
14
    fin = instance_create(0, 0, obj_fadein);
15
    with (fin)
16
        fadespeed = -0.005;
17
    with (blackall)
18
        visible = 0;
19
}
20
if (con == 1)
21
{
22
    y -= 1;
23
    image_index = susindex;
24
    susindex += 0.1;
25
    susy -= 1;
26
    global.interact = 1;
27
}
28
if (con == 2)
29
{
30
    image_speed = 0;
31
    image_index = 0;
32
    susindex = 0;
33
    con = 2.1;
34
    alarm[4]
 = 60;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
35
}
36
if (con == 3.1)
37
{
38
    JA_XOFF = langopt(0, 50);
39
    global.typer = 79;
40
    global.msg[0] = stringsetloc(
The Knight...Wait for input
"The Knight.../", "obj_ch4_PDC01A_slash_Step_0_gml_52_0"
);
41
    global.msg[1] = stringsetloc(
The Roaring Knight...Wait for input
"The Roaring Knight.../", "obj_ch4_PDC01A_slash_Step_0_gml_53_0"
);
42
    global.msg[2] = stringsetloc(
...Wait for input
".../", "obj_ch4_PDC01A_slash_Step_0_gml_54_0"
);
43
    global.msg[3] = stringsetloc(
The one who's\nmaking the dark.Wait for input
"The one who's\nmaking the dark./", "obj_ch4_PDC01A_slash_Step_0_gml_55_0"
);
44
    global.msg[4] = stringsetloc(
The one who's\ntrying to destroy\nthe world...Wait for input
"The one who's\ntrying to destroy\nthe world.../", "obj_ch4_PDC01A_slash_Step_0_gml_56_0"
);
45
    global.msg[5] = stringsetloc(
...Delay 11 so that's our enemy.Wait for inputClose Message
"..^1. so that's our enemy./%", "obj_ch4_PDC01A_slash_Step_0_gml_57_0"
);
46
    instance_create(100 + JA_XOFF, 80, obj_writer);
47
    con = 4;
48
}
49
if (con == 4 && !instance_exists(obj_writer))
50
{
51
    con = 5;
52
    alarm[4]
 = 30;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
53
    sussprite = spr_susier_bright;
54
}
55
if (con == 6 && !i_ex(obj_writer))
56
{
57
    con = 7;
58
    global.msg[0] = stringsetloc(
Up until today...Wait for inputClose Message
"Up until today.../%", "obj_ch4_PDC01A_slash_Step_0_gml_76_0"
);
59
    instance_create(100 + JA_XOFF, 80, obj_writer);
60
}
61
if (con == 7 && !i_ex(obj_writer))
62
{
63
    con = 8;
64
    alarm[4]
 = 30;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
65
}
66
if (con == 9 && !i_ex(obj_writer))
67
{
68
    con = 10;
69
    alarm[4]
 = 30;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
70
    global.msg[0] = stringsetloc(
It felt kind of like\nno matter how serious\nour adventures got...Wait for input
"It felt kind of like\nno matter how serious\nour adventures got.../", "obj_ch4_PDC01A_slash_Step_0_gml_92_0"
);
71
    global.msg[1] = stringsetloc(
They were just part\nof another world.Wait for inputClose Message
"They were just part\nof another world./%", "obj_ch4_PDC01A_slash_Step_0_gml_93_0"
);
72
    instance_create(100 + JA_XOFF, 80, obj_writer);
73
}
74
if (con == 11 && !i_ex(obj_writer))
75
{
76
    con = 12;
77
    alarm[4]
 = 40;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
78
    sussprite = spr_susieu_bright;
79
}
80
if (con == 13 && !i_ex(obj_writer))
81
{
82
    con = 14;
83
    global.msg[0] = stringsetloc(
...Wait for input
".../", "obj_ch4_PDC01A_slash_Step_0_gml_111_0"
);
84
    global.msg[1] = stringsetloc(
But now... someone's\ntaken Undyne... into\nthe shelter.Wait for input
"But now... someone's\ntaken Undyne... into\nthe shelter./", "obj_ch4_PDC01A_slash_Step_0_gml_112_0"
);
85
    global.msg[2] = stringsetloc(
The real shelter.Wait for inputClose Message
"The real shelter./%", "obj_ch4_PDC01A_slash_Step_0_gml_113_0"
);
86
    instance_create(100 + JA_XOFF, 80, obj_writer);
87
}
88
if (con == 14 && !i_ex(obj_writer))
89
{
90
    con = 15;
91
    alarm[4]
 = 40;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
92
    sussprite = spr_susier_bright;
93
}
94
if (con == 16 && !i_ex(obj_writer))
95
{
96
    con = 17;
97
    global.msg[0] = stringsetloc(
Kris... we have to\ndo something, before\nshe's...Wait for inputClose Message
"Kris... we have to\ndo something, before\nshe's.../%", "obj_ch4_PDC01A_slash_Step_0_gml_129_0"
);
98
    instance_create(100 + JA_XOFF, 80, obj_writer);
99
}
100
if (con == 17 && !i_ex(obj_writer))
101
{
102
    con = 18;
103
    alarm[4]
 = 40;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
104
    sussprite = spr_susieu_bright;
105
}
106
if (con == 19 && !i_ex(obj_writer))
107
{
108
    con = 20;
109
    global.msg[0] = stringsetloc(
...Wait for input
".../", "obj_ch4_PDC01A_slash_Step_0_gml_146_0"
);
110
    global.msg[1] = stringsetloc(
... there's no point\ntalking about it.Wait for inputClose Message
"... there's no point\ntalking about it./%", "obj_ch4_PDC01A_slash_Step_0_gml_147_0"
);
111
    instance_create(100 + JA_XOFF, 80, obj_writer);
112
}
113
if (con == 20 && !i_ex(obj_writer))
114
{
115
    con = 22;
116
    alarm[4]
 = 40;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
117
    sussprite = spr_susier_bright;
118
}
119
if (con == 23 && !i_ex(obj_writer))
120
{
121
    con = 24;
122
    global.msg[0] = stringsetloc(
Kris! Hurry up and\nseal the fountain!Wait for input
"Kris! Hurry up and\nseal the fountain!/", "obj_ch4_PDC01A_slash_Step_0_gml_163_0"
);
123
    global.msg[1] = stringsetloc(
It's time to wake\nup...Wait for input
"It's time to wake\nup.../", "obj_ch4_PDC01A_slash_Step_0_gml_164_0"
);
124
    global.msg[2] = stringsetloc(
Kris, are you\nlistening?Wait for inputClose Message
"Kris, are you\nlistening?/%", "obj_ch4_PDC01A_slash_Step_0_gml_165_0"
);
125
    instance_create(100 + JA_XOFF, 80, obj_writer);
126
}
127
if (con == 24 && !i_ex(obj_writer))
128
{
129
    con = 25;
130
    alarm[4]
 = 40;
gml_Object_obj_ch4_PDC01A_Alarm_4.gml

con++;
131
    sussprite = spr_susieu_bright;
132
}
133
if (con == 26 && !i_ex(obj_writer))
134
{
135
    con = 50;
136
    global.msg[0] = stringsetloc(
It's time to...Wait for inputClose Message
"It's time to.../%", "obj_ch4_PDC01A_slash_Step_0_gml_181_0"
);
137
    var writer = instance_create(100 + JA_XOFF, 80, obj_writer);
138
    writer.skippable = 0;
139
    writer.rate = 2;
140
}
141
if (con == 50 && !instance_exists(obj_writer))
142
{
143
    con = 99;
144
    snd_free_all();
145
    made = 1;
146
    global.plot = 5;
147
    global.darkzone = 0;
148
    
scr_become_light
scr_become_light

function
scr_become_light()
{ if (
scr_litemcheck(5) == 0)
scr_litemget(5);
if (
scr_keyitemcheck(2))
{ if (
scr_litemcheck(8) == 0)
scr_litemget(8);
} else {
scr_litemremove(8);
} if (
scr_keyitemcheck(13))
{ if (
scr_litemcheck(11) == 0)
scr_litemget(11);
} else {
scr_litemremove(11);
} global.lhp = ceil((global.hp[1] / global.maxhp[1]) * global.lmaxhp); if (global.lhp < 1) global.lhp = 1; if (global.lhp > global.lmaxhp) global.lhp = global.lmaxhp; scr_equip_lw_weapon_by_dw_id(global.charweapon[1]); global.lwstrength = get_lw_weapon_strength(global.lweapon); if (
scr_weaponcheck_inventory(26) > 0 || 
scr_weaponcheck_equipped_any(26) > 0)
{ if (!
scr_litemcheck(17) && global.lweapon != 17)
scr_litemget(17);
} var armorconverted = 0; if (
scr_armorcheck_equipped(1, 14) > 0)
{ armorconverted = 1; global.larmor = 14; } if (armorconverted == 1) global.ladef = 1; else global.ladef = 0; global.darkzone = 0; }
();
149
    with (obj_border_controller)
150
    {
151
        set_border(border_lw_town, 1);
152
        show_border(1);
153
    }
154
    room_goto(room_torhouse );
155
}