Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_cloverpuzzle_event_Create_0

(view raw script w/o annotations or w/e)
1
con = 99;
2
pcon = 0;
3
ptimer = 0;
4
puzzle = instance_create(500, 440, obj_suitspuzz);
5
with (puzzle)
6
{
7
    max_suit = 3;
8
    drawclue = 0;
9
    sol[0] = 9;
10
    sol[1] = 9;
11
    sol[2] = 9;
12
    sol[3] = 9;
13
}
14
if (global.plot < 75)
15
{
16
    con = 0;
17
}
18
else
19
{
20
}
21
spiken[0] = 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; }
(520, 280, spr_spiketile);
22
spiken[1] = 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; }
(560, 280, spr_spiketile);
23
with (spiken[0])
24
    depth = 970000;
25
with (spiken[1])
26
    depth = 970000;
27
if (global.flag[234 solved_clover_puzzle] == 0)
28
{
29
    blockn = instance_create(520, 280, obj_soliddark);
30
    with (blockn)
31
        image_xscale = 2;
32
}
33
else
34
{
35
    with (spiken[0])
36
        image_index = 1;
37
    with (spiken[1])
38
        image_index = 1;
39
}
40
if (global.flag[235 clover_puzzle_2?] == 0)
41
{
42
    blocke = instance_create(1040, 400, obj_soliddark);
43
    with (blocke)
44
        instance_destroy();
45
    with (blocke)
46
        image_yscale = 2;
47
}
48
else
49
{
50
}