Deltarune script viewer

← back to main script listing

gml_Object_obj_controller_dw_mansion_single_pot_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
drawtimer = 0;
3
visible = true;
4
queen_monitor_frame = 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; }
(142, 80, spr_dw_mansion_monitor_frame);
5
with (queen_monitor_frame)
6
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
7
queen_monitor = instance_create(queen_monitor_frame.x + 175, queen_monitor_frame.y + 60, obj_queenmonitor);
8
queen_monitor.depth = queen_monitor_frame + 100;
9
if (global.flag[400 vase_intro_status] == 0)
10
    con = 0;
11
if (global.flag[400 vase_intro_status] == 1)
12
    con = 3;
13
if (global.flag[400 vase_intro_status] == 2)
14
{
15
    con = 5;
16
    with (obj_queenvase)
17
    {
18
        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);
19
        brokenpot.image_index = 1;
20
        brokenpot.depth = 800000;
21
        instance_destroy();
22
    }
23
    if (global.flag[540 encount_butlers_1] == 6)
24
    {
25
        enemy1 = instance_create(-146, 200, obj_chaseenemy);
26
        with (enemy1)
27
        {
28
            myencounter = 64;
29
            sprite_index = spr_npc_swatchling_sweep;
30
            touchsprite = spr_swatchling_hurt;
31
            radius = 10000;
32
            ignoresolid = 1;
33
            alertcon = 0;
34
            alertskip = 1;
35
            eraser = 1;
36
            facing = 1;
37
            chasetype = 7;
38
        }
39
    }
40
}