Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_climbstartertrig_Other_10

(view raw script w/o annotations or w/e)
1
if (obj_mainchara.holding_item != -4)
2
{
3
    if (myinteract == 1)
4
    {
5
        global.interact = 1;
6
        myinteract = 400;
7
    }
8
    exit;
9
}
10
if (global.interact == 0 && !i_ex(obj_climb_kris) && obj_mainchara.visible == true)
11
{
12
    if (myinteract == 1)
13
    {
14
        if (global.flag[23 can_climb] == 1)
15
        {
16
            global.interact = 1;
17
            myinteract = 3;
18
        }
19
        else
20
        {
21
            global.interact = 1;
22
            myinteract = 400;
23
        }
24
    }
25
}