Deltarune script viewer

← back to main script listing

gml_Object_obj_flowershop_event_ch1_Create_0

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

function scr_depth_ch1() //gml_Script_scr_depth_ch1 { depth = 100000 - (y * 10 + sprite_height * 10) }
()
4
if (room == room_flowershop_1f_ch1)
5
{
6
    counter = scr_marker_ch1
scr_marker_ch1

function scr_marker_ch1(argument0, argument1, argument2) //gml_Script_scr_marker_ch1 { thismarker = instance_create_ch1(argument0, argument1, obj_marker_ch1) with (thismarker) { sprite_index = argument2 image_speed = 0 } return thismarker; }
(20, 103, spr_flowershop_counter_ch1)
7
    with (counter)
8
        scr_depth_ch1
scr_depth_ch1

function scr_depth_ch1() //gml_Script_scr_depth_ch1 { depth = 100000 - (y * 10 + sprite_height * 10) }
()
9
    flowera = scr_marker_ch1
scr_marker_ch1

function scr_marker_ch1(argument0, argument1, argument2) //gml_Script_scr_marker_ch1 { thismarker = instance_create_ch1(argument0, argument1, obj_marker_ch1) with (thismarker) { sprite_index = argument2 image_speed = 0 } return thismarker; }
(177, 136, spr_flowershop_flowers_ch1)
10
    flowerb = scr_marker_ch1
scr_marker_ch1

function scr_marker_ch1(argument0, argument1, argument2) //gml_Script_scr_marker_ch1 { thismarker = instance_create_ch1(argument0, argument1, obj_marker_ch1) with (thismarker) { sprite_index = argument2 image_speed = 0 } return thismarker; }
(177, 82, spr_flowershop_flowers_ch1)
11
    with (flowera)
12
        scr_depth_ch1
scr_depth_ch1

function scr_depth_ch1() //gml_Script_scr_depth_ch1 { depth = 100000 - (y * 10 + sprite_height * 10) }
()
13
    with (flowerb)
14
        scr_depth_ch1
scr_depth_ch1

function scr_depth_ch1() //gml_Script_scr_depth_ch1 { depth = 100000 - (y * 10 + sprite_height * 10) }
()
15
    con = 1
16
    if (global.flag[262 bouquet_quest_stage] >= 1)
17
    {
18
        instance_create_ch1(x, (y + sprite_height), obj_npc_facing_ch1)
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_ch1)
30
{
31
    if (global.entrance == 2)
32
    {
33
        global.interact = 0
34
        global.entrance = 0
35
        with (obj_mainchara_ch1)
36
            x = global.flag[264 asgore_stairs_side]
37
    }
38
}
39
if (room == room_flowershop_2f_ch1)
40
{
41
    visible = 0
42
    if (global.entrance == 1)
43
    {
44
        global.entrance = 0
45
        global.interact = 0
46
        with (obj_mainchara_ch1)
47
            x = global.flag[264 asgore_stairs_side]
48
        if (obj_mainchara_ch1.x < 160)
49
            x = 255
50
        if (obj_mainchara_ch1.x > 160)
51
            x = 15
52
        instance_create_ch1(x, (y + sprite_height), obj_npc_facing_ch1)
53
        con = -1
54
    }
55
}