Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_treasure_room_Step_1

(view raw script w/o annotations or w/e)
1
if (myinteract == 0)
2
{
3
    if (close == 1)
4
        image_index = 0;
5
    close = 0;
6
}
7
if (!init)
8
{
9
    if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
10
    {
11
        if (itemflag == 1999)
12
            noflag = true;
13
        if (itemidchest == 0)
14
        {
15
            needsitem = true;
16
            itemidchest = 1;
17
        }
18
    }
19
    if (tempchest)
20
        image_index = 0;
21
    init = 1;
22
}