Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queenvaseonwheels_Other_10

(view raw script w/o annotations or w/e)
1
if (room != room_dw_mansion_east_2f_c)
2
{
3
    if (instance_exists(obj_controller_dw_mansion_east_1f_a))
4
        obj_controller_dw_mansion_east_1f_a.triggered = 1;
5
    image_index = 1;
6
    snd_play(choose(snd_break1, snd_break2));
7
    brokenpot = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x, y, sprite_index);
8
    brokenpot.image_index = 1;
9
    brokenpot.depth = 800000;
10
    if (room == room_dw_mansion_east_2f_c)
11
    {
12
        if (instance_exists(obj_npc_sign))
13
        {
14
            with (obj_npc_sign)
15
            {
16
                newenem = instance_create(x, y, obj_chaseenemy);
17
                with (newenem)
18
                {
19
                    if (image_xscale > 0)
20
                        x -= sprite_width;
21
                    myencounter = 56;
22
                    sprite_index = spr_npc_swatchling_sweep;
23
                    touchsprite = spr_swatchling_hurt;
24
                    radius = 10000;
25
                    ignoresolid = 1;
26
                    alertcon = 0;
27
                    eraser = 1;
28
                }
29
                instance_destroy();
30
            }
31
        }
32
        if (instance_exists(obj_controller_dw_mansion_potBalance))
33
            obj_controller_dw_mansion_potBalance.triggered = 1;
34
    }
35
    instance_destroy();
36
}
37
else
38
{
39
    if (type == 0 && image_index == 0)
40
        con = 999;
41
    if (type == 1 && image_index == 0)
42
        con = 9999;
43
}