Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_viroring_controller_Create_0

(view raw script w/o annotations or w/e)
1
noleave = 0;
2
if (global.chapter != 2 || global.plot >= 64)
3
    layer_set_visible(layer_get_id("SLIDE_TILES"), 1);
4
else
5
    layer_set_visible(layer_get_id("SLIDE_TILES"), 0);
6
if (global.flag[427 unlocked_mint_chest] == 1)
7
{
8
    plat = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(758, 1150, spr_viroring_hiddenplatform);
9
    plat.depth = 998000;
10
    leftlight = instance_create(760, 1200, obj_cyber_wall_lights_left);
11
    leftlight.image_xscale = 1;
12
    leftlight.depth = plat.depth - 10;
13
    midlight = instance_create(802, 1200, obj_cyber_wall_lights);
14
    midlight.depth = plat.depth - 10;
15
    midlight2 = instance_create(842, 1200, obj_cyber_wall_lights);
16
    midlight2.depth = plat.depth - 10;
17
    rightlight = instance_create(864, 1200, obj_cyber_wall_lights_right);
18
    rightlight.depth = plat.depth - 12;
19
    chest = instance_create(844, 1144, obj_treasure_room);
20
    with (obj_ow_viroring)
21
    {
22
        if (trigNum == 3)
23
            con = 99;
24
    }
25
    if (instance_exists(obj_overworld_bulletarea))
26
        obj_overworld_bulletarea.image_yscale = 22;
27
}
28
if (global.flag[352 solved_viro_dodge] == 1)
29
    instance_destroy();