Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_flowershop_event_Create_0

(view raw script w/o annotations or w/e)
1
tcon = 0;
2
image_speed = 0.05;
3
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
4
if (room == room_flowershop_1f)
5
{
6
    counter = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(20, 103, spr_flowershop_counter);
7
    with (counter)
8
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
9
    flowera = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(177, 136, spr_flowershop_flowers);
10
    flowerb = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(177, 82, spr_flowershop_flowers);
11
    with (flowera)
12
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
13
    with (flowerb)
14
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
15
    con = 1;
16
    if (global.flag[262 bouquet_quest_stage] >= 1)
17
    {
18
        instance_create(x, y + sprite_height, obj_npc_facing);
19
        visible = 0;
20
        if (global.flag[262 bouquet_quest_stage] == 1)
21
            con = 50;
22
        if (global.flag[262 bouquet_quest_stage] >= 2)
23
            con = -1;
24
    }
25
    if (global.flag[262 bouquet_quest_stage] == 0)
26
        global.interact = 1;
27
    image_speed = 0;
28
}
29
if (room == room_flowershop_1f)
30
{
31
    if (global.entrance == 2)
32
    {
33
        global.interact = 0;
34
        global.entrance = 0;
35
        with (obj_mainchara)
36
            x = global.flag[264 asgore_stairs_side];
37
    }
38
}
39
if (room == room_flowershop_2f)
40
{
41
    visible = 0;
42
    if (global.entrance == 1)
43
    {
44
        global.entrance = 0;
45
        global.interact = 0;
46
        with (obj_mainchara)
47
            x = global.flag[264 asgore_stairs_side];
48
        if (obj_mainchara.x < 160)
49
            x = 255;
50
        if (obj_mainchara.x > 160)
51
            x = 15;
52
        instance_create(x, y + sprite_height, obj_npc_facing);
53
        con = -1;
54
    }
55
}