Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_cliff_petalwarp_Other_18

(view raw script w/o annotations or w/e)
1
with (obj_mainchara)
2
{
3
    roomenterfreezeend = 1;
4
    if (holding_item != -4 && other.doorKeepHeldItem)
5
    {
6
        with (obj_helditem)
7
        {
8
            if (held)
9
            {
10
                if (object_index == obj_wateringcan)
11
                {
12
                    if (mode == 1)
13
                        global.flag[1332] = 2;
14
                    else
15
                        global.flag[1332] = 1;
16
                }
17
                if (object_index == obj_pinwheel_held)
18
                    global.flag[1332] = 3;
19
            }
20
        }
21
    }
22
    else
23
    {
24
        global.flag[1332] = 0;
25
    }
26
}
27
global.entrance_animation = 2;
28
global.start_in_platmode = false;
29
if (doorFadeMusic)
30
{
31
    alarm[3]
 = doorFadeMusicTime;
gml_Object_obj_cliff_petalwarp_Alarm_3.gml

snd_free(global.currentsong[0]);
32
    mus_volume(global.currentsong[1], 0, alarm[3]
);
gml_Object_obj_cliff_petalwarp_Alarm_3.gml

snd_free(global.currentsong[0]);
33
}
34
with (obj_overworldbulletparent)
35
    active = 0;