Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_lotterymouseController_Create_0

(view raw script w/o annotations or w/e)
1
victory = 0;
2
if (global.flag[378 mouselottery_solved_2] == 1 && global.flag[377 mouselottery_solved] == 1)
3
{
4
    with (obj_bridgeSwapper)
5
        inert = 1;
6
    with (obj_lotteryMouseTrigger)
7
        inert = 1;
8
    with (obj_camera_area)
9
        instance_destroy();
10
    var hints = instance_create(x, y, obj_mouseLotteryCompleteHint);
11
    with (hints)
12
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
13
    instance_destroy();
14
}