Deltarune script viewer

← back to main script listing

gml_Object_obj_dustpile_susie_ch1_Step_0

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

function scr_depth_ch1() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
2
siner += 1;
3
if (con == 1 && __view_get(e__VW.XView, 0) >= 280 && obj_mainchara_ch1.y > 535)
4
{
5
    darksus = scr_dark_marker_ch1
scr_dark_marker_ch1

function scr_dark_marker_ch1(arg0, arg1, arg2) { thismarker = instance_create_ch1(arg0, arg1, obj_marker_ch1); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(873, 602, spr_susier_shadow_ch1);
6
    darksus.image_speed = 0.2;
7
    with (darksus)
8
        scr_depth_ch1
scr_depth_ch1

function scr_depth_ch1() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
9
    suspeed = point_distance(873, 602, 1116, 720) / 15;
10
    darksus.speed = suspeed;
11
    darksus.direction = point_direction(darksus.x, darksus.y, 1116, 720);
12
    con = 2;
13
    alarm[4] = 15;
14
}
15
if (con == 3)
16
{
17
    with (darksus)
18
        instance_destroy();
19
    con = 4;
20
}
21
if (con == 4 && __view_get(e__VW.XView, 0) >= 540 && obj_mainchara_ch1.y > 535)
22
{
23
    darksus2 = scr_dark_marker_ch1
scr_dark_marker_ch1

function scr_dark_marker_ch1(arg0, arg1, arg2) { thismarker = instance_create_ch1(arg0, arg1, obj_marker_ch1); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(1116, 720, spr_susier_shadow_ch1);
24
    darksus2.image_speed = 0.2;
25
    with (darksus2)
26
        scr_depth_ch1
scr_depth_ch1

function scr_depth_ch1() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
27
    suspeed = point_distance(1116, 720, 1348, 643) / 15;
28
    darksus2.speed = suspeed;
29
    darksus2.direction = point_direction(darksus2.x, darksus2.y, 1348, 643);
30
    con = 5;
31
    alarm[4] = 15;
32
}
33
if (con == 5)
34
{
35
    with (darksus)
36
        instance_destroy();
37
    con = 6;
38
}
39
if (con == 11)
40
{
41
    with (s)
42
        hspeed = 0;
43
    con = 12;
44
    alarm[4] = 20;
45
}
46
if (con == 13)
47
{
48
    global.fc = 1;
49
    global.fe = 7;
50
    global.typer = 30;
51
    global.msg[0] = 
* H-hey!Delay 11 B... back off!Delay 11
* Come any closer and I'll...!!Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_57_0")
;
52
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
53
    con = 14;
54
}
55
if (con == 14 && instance_exists(obj_dialoguer_ch1) == false)
56
{
57
    con = 15;
58
    alarm[4] = 30;
59
}
60
if (con == 15)
61
    image_alpha -= 0.04;
62
if (con == 16)
63
{
64
    with (s)
65
        sprite_index = spr_susiel_dark_ch1;
66
    global.fe = 6;
67
    global.msg[0] = 
* ... K...Delay 11
* Kris!Delay 11?
* Phew...Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_78_0")
;
68
    global.msg[1] = 
\E7* ... Hey,Delay 11 don't scare me like that,Delay 11 dumbass!Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_79_0")
;
69
    global.msg[2] = 
\E2* Unless you WANT to get clocked in the face,Delay 11 heh.Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_80_0")
;
70
    global.msg[3] = 
\E0* ... anyway,Delay 11 enough screwing around.Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_81_0")
;
71
    global.msg[4] = 
* We gotta find a way outta here.Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_82_0")
;
72
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
73
    con = 17;
74
}
75
if (con == 17 && instance_exists(obj_dialoguer_ch1) == false)
76
{
77
    with (s)
78
        sprite_index = spr_susier_dark_ch1;
79
    con = 18;
80
    alarm[4] = 30;
81
}
82
if (con == 19)
83
{
84
    with (s)
85
        sprite_index = spr_susieu_dark_ch1;
86
    con = 20;
87
    alarm[4] = 30;
88
}
89
if (con == 21)
90
{
91
    global.fe = 6;
92
    global.msg[0] = 
* Ummm...Delay 11
* Where is "here,Delay 11" anyway...?Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_104_0")
;
93
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
94
    con = 22;
95
}
96
if (con == 22 && instance_exists(obj_dialoguer_ch1) == false)
97
{
98
    con = 23;
99
    alarm[4] = 30;
100
}
101
if (con == 24)
102
{
103
    with (s)
104
        sprite_index = spr_susiel_dark_ch1;
105
    global.fe = 7;
106
    global.msg[0] = 
* It doesn't matter!Delay 11
* YOU got us into this mess,Delay 11 YOU get us out!Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_119_0")
;
107
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
108
    con = 25;
109
}
110
if (con == 25 && instance_exists(obj_dialoguer_ch1) == false)
111
{
112
    with (s)
113
    {
114
        hspeed = -4;
115
        image_speed = 0.2;
116
    }
117
    con = 26;
118
    alarm[4] = 15;
119
}
120
if (con == 27)
121
{
122
    thisremx = s.x;
123
    thisremy = s.y;
124
    s.speed = point_distance(s.x, s.y, partysus.x, partysus.y) / 10;
125
    s.direction = point_direction(s.x, s.y, partysus.x, partysus.y);
126
    con = 28;
127
    alarm[4] = 10;
128
}
129
if (con == 29)
130
{
131
    with (s)
132
        instance_destroy();
133
    with (partysus)
134
        visible = 1;
135
    con = 30;
136
    alarm[4] = 30;
137
}
138
if (con == 31)
139
{
140
    global.fe = 1;
141
    global.msg[0] = 
* Lead the way,Delay 11 Kris!Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_156_0")
;
142
    scr_getchar_ch1
scr_getchar_ch1

function scr_getchar_ch1(arg0) { getchar = 0; if (global.char[0] == 0) { global.char[0] = arg0; getchar = 1; } if (global.char[1] == 0 && getchar == 0) { global.char[1] = arg0; getchar = 1; } if (global.char[2] == 0 && getchar == 0) { global.char[2] = arg0; getchar = 1; } with (obj_darkcontroller_ch1) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } } } }
(2);
143
    con = 32;
144
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
145
}
146
if (con == 32 && instance_exists(obj_dialoguer_ch1) == false)
147
{
148
    y -= 200;
149
    con = 33;
150
    global.interact = 0;
151
    speedtimer = 0;
152
}
153
if (con == 33 && global.interact == 0)
154
{
155
    speedtimer += 1;
156
    if (obj_mainchara_ch1.x < 560)
157
    {
158
        global.flag[202 ran_in_dark] = 2;
159
        global.interact = 1;
160
        con = 34;
161
        global.fc = 1;
162
        global.typer = 30;
163
        global.fe = 0;
164
        global.msg[0] = 
* Oh my god.Delay 11 Nevermind.Delay 11
* You have NO idea where you're going.Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_182_0")
;
165
        instance_create_ch1(0, 0, obj_dialoguer_ch1);
166
    }
167
    if (obj_mainchara_ch1.x > 1760)
168
    {
169
        global.interact = 1;
170
        con = 35;
171
        global.fc = 1;
172
        global.typer = 30;
173
        global.fe = 0;
174
        if (speedtimer < 80)
175
        {
176
            global.flag[202 ran_in_dark] = 1;
177
            global.msg[0] = 
* Huff... puff...Delay 11
* What,Delay 11 you wanna make it a race?Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_197_0")
;
178
        }
179
        else
180
        {
181
            global.msg[0] = 
* Oh my god.Delay 11 Nevermind.Delay 11
* You walk WAY too slow.Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_dustpile_susie_slash_Step_0_gml_201_0")
;
182
        }
183
        instance_create_ch1(0, 0, obj_dialoguer_ch1);
184
    }
185
}
186
if (con == 34 && instance_exists(obj_dialoguer_ch1) == false)
187
{
188
    with (partysus)
189
        visible = 0;
190
    news = scr_dark_marker_ch1
scr_dark_marker_ch1

function scr_dark_marker_ch1(arg0, arg1, arg2) { thismarker = instance_create_ch1(arg0, arg1, obj_marker_ch1); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(partysus.x, partysus.y, spr_susier_dark_ch1);
191
    with (news)
192
    {
193
        move_towards_point(940, 660, 14);
194
        image_speed = 0.334;
195
    }
196
    con = 39;
197
    alarm[4] = 40;
198
}
199
if (con == 35 && instance_exists(obj_dialoguer_ch1) == false)
200
{
201
    with (partysus)
202
        visible = 0;
203
    news = scr_dark_marker_ch1
scr_dark_marker_ch1

function scr_dark_marker_ch1(arg0, arg1, arg2) { thismarker = instance_create_ch1(arg0, arg1, obj_marker_ch1); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(partysus.x, partysus.y, spr_susier_dark_ch1);
204
    with (news)
205
    {
206
        hspeed = 14;
207
        image_speed = 0.334;
208
    }
209
    con = 39;
210
    alarm[4] = 40;
211
}
212
if (con == 40)
213
{
214
    scr_losechar_ch1
scr_losechar_ch1

function scr_losechar_ch1() { global.char[2] = 0; global.char[1] = 0; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; with (obj_darkcontroller_ch1) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } } } }
();
215
    global.facing = 0;
216
    if (global.plot < 14)
217
        global.plot = 14;
218
    global.interact = 0;
219
    with (news)
220
        instance_destroy();
221
    con = 41;
222
    instance_destroy();
223
}
224
225
enum e__VW
226
{
227
    XView,
228
    YView,
229
    WView,
230
    HView,
231
    Angle,
232
    HBorder,
233
    VBorder,
234
    HSpeed,
235
    VSpeed,
236
    Object,
237
    Visible,
238
    XPort,
239
    YPort,
240
    WPort,
241
    HPort,
242
    Camera,
243
    SurfaceID
244
}