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