Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_scissors_act_controller_CleanUp_0

related scripts: CleanUp_0 Create_0Draw_0

(view raw script w/o annotations or w/e)
1
with (obj_scissors_act_player)
2
    instance_destroy();
3
with (obj_scissors_line)
4
    con = 1;
5
with (obj_scissors_act_node_small)
6
{
7
    if (con == 1)
8
    {
9
        if (i_ex(obj_scissors_act_controller) && obj_scissors_act_controller.type == 0)
10
            other.mercy += 3;
11
        if (i_ex(obj_scissors_act_controller) && obj_scissors_act_controller.type == 1)
12
            other.mercy += 2.5;
13
        if (i_ex(obj_scissors_act_controller) && obj_scissors_act_controller.type == 2)
14
            other.mercy += 2;
15
    }
16
    instance_destroy();
17
}
18
with (obj_scissors_act_node_big)
19
{
20
    if (con == 1)
21
    {
22
        if (i_ex(obj_scissors_act_controller) && obj_scissors_act_controller.type == 0)
23
            other.mercy += 7;
24
        if (i_ex(obj_scissors_act_controller) && obj_scissors_act_controller.type == 1)
25
            other.mercy += 4;
26
        if (i_ex(obj_scissors_act_controller) && obj_scissors_act_controller.type == 2)
27
            other.mercy += 4;
28
    }
29
    instance_destroy();
30
}
31
with (obj_writer)
32
    instance_destroy();
33
mercy = round(mercy);
34
if (mercy == 99)
35
    mercy = 100;
36
if (mercy > 100)
37
    mercy = 100;
38
if (hypercut && mercy < 25)
39
    mercy = 25;
40
if (hypercut && mercy > 99)
41
    mercy = 99;
42
with (parentid)
43
{
44
    mercy = other.mercy;
45
    cuttextcon = 1;
46
}