Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_cc_event_Step_0

(view raw script w/o annotations or w/e)
1
if (room == room_cc_4f)
2
{
3
    if (global.flag[245 made_bluh_chest] == 0)
4
    {
5
        bluhtotal = 0;
6
        with (obj_bluhpainting)
7
        {
8
            if (bluh == 1)
9
                obj_cc_event.bluhtotal += 1;
10
        }
11
        if (bluhtotal >= 3)
12
        {
13
            snd_play(snd_splat);
14
            chest = instance_create(480, 980, obj_treasure_room);
15
            global.flag[245 made_bluh_chest] = 1;
16
        }
17
    }
18
}