Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_treasuremarker_Create_0

(view raw script w/o annotations or w/e)
1
depth = 999990;
2
image_speed = 0;
3
animateonce = false;
4
autodepth = false;
5
digamt = 1;
6
skip = false;
7
if ((holeid == 2 && global.flag[1040 got_hero_photo] > 0) || (holeid == 3 && global.flag[1040 got_hero_photo] > 1) || (holeid == 1 && global.flag[1040 got_hero_photo] > 2))
8
{
9
    skip = true;
10
    event_user(2);
11
}
12
if (room == room_dw_b3bs_rouxls_lanina)
13
{
14
    if (global.flag[1169 got_lanina_points] == 1)
15
    {
16
        
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(x, y, spr_board_holemarker, 0, depth, 2);
17
        instance_destroy();
18
    }
19
}
20
camkill = false;