Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queenscreen_Create_0

(view raw script w/o annotations or w/e)
1
sprite_index = 
scr_84_get_sprite
scr_84_get_sprite

function
scr_84_get_sprite(arg0)
{ return ds_map_find_value(global.chemg_sprite_map, arg0); }
("spr_queenscreen");
2
extflag = false;
3
image_speed = 0;
4
siner = 0;
5
con = 0;
6
timer = 0;
7
image_xscale = 4;
8
image_yscale = 0;
9
dismiss = 0;
10
depth = 100000;
11
activecon = 1;
12
tasquecon = 0;
13
tasquetimer = 0;
14
tasquetriggered = 0;
15
tasquespeed = 4;
16
tasquex = 0;
17
tasquey = 0;
18
tasquedir = 0;
19
extspawnflag = 0;
20
count = 0;
21
brokenscreen = false;
22
bluecheckcon = 0;
23
bluechecktimer = 0;
24
init = 0;
25
if (image_index == 30)
26
{
27
    brokeAlpha = 0;
28
    brokenscreen = true;
29
    timer2 = 0;
30
    r = 30;
31
    xx = x;
32
    yy = y;
33
    image_angle = random_range(-r, r);
34
    for (var i = 0; i < 10; i++)
35
    {
36
        xx[i] = random_range(-r, r);
37
        yy[i] = random_range(-r, r);
38
    }
39
}
40
if (room == room_dw_cyber_tasque_battle && image_index == 9)
41
{
42
    if (global.flag[526 encount_first_tasq] != 0)
43
        image_index = 11;
44
}
45
if (room == room_dw_cyber_maze_tasque && image_index == 9)
46
{
47
    if (global.flag[539 encount_glowwrist_tasq] != 0)
48
        image_index = 11;
49
}
50
if (extflag == 4)
51
{
52
    if (room == room_dw_cyber_maze_tasque)
53
    {
54
        if (global.flag[367 got_chestmark] == 1)
55
            instance_destroy();
56
    }
57
    if (room == room_dw_cyber_keyboard_puzzle_3)
58
    {
59
        if (global.flag[420 giasfelfebrehber] == 1)
60
            instance_destroy();
61
    }
62
    if (room == room_dw_cyber_battle_maze_2)
63
    {
64
        if (global.flag[407 got_chestmark_2] == 1)
65
            instance_destroy();
66
    }
67
}