Deltarune script viewer

← back to main script listing

gml_Object_obj_queenart_red_Other_10

(view raw script w/o annotations or w/e)
1
if (flippable == true)
2
    flip = true;
3
if (isswitch == true)
4
{
5
    if (room == room_dw_mansion_east_2f_transformed_new)
6
    {
7
        if (extflag == "a")
8
        {
9
            if (global.flag[395 opened_sidea_painting] == 0)
10
            {
11
                global.flag[395 opened_sidea_painting] = 1;
12
                snd_play(snd_impact);
13
                instance_create(x, y, obj_shake);
14
                if (shine != -4)
15
                    instance_destroy(shine);
16
            }
17
            isswitch = false;
18
        }
19
        if (extflag == "b")
20
        {
21
            if (global.flag[396 opened_sideb_painting] == 0)
22
            {
23
                global.flag[396 opened_sideb_painting] = 1;
24
                snd_play(snd_impact);
25
                instance_create(x, y, obj_shake);
26
                if (shine != -4)
27
                    instance_destroy(shine);
28
            }
29
            isswitch = false;
30
        }
31
    }
32
    if (room == room_dw_mansion_fire_paintings)
33
    {
34
        if (extflag == "treasureswitch" && global.flag[398 activated_mint_painting] == 0)
35
        {
36
            snd_play(snd_impact);
37
            with (obj_queenart_mona)
38
            {
39
                if (extflag == "treasure")
40
                {
41
                    treasure = instance_create(x + (sprite_width / 2), y, obj_queenart_red);
42
                    treasure.flippable = false;
43
                    treasure.extflag = "treasure";
44
                    treasure.isswitch = true;
45
                    treasure.sprite_index = spr_queenart_mona_middlepoint;
46
                    treasure.spriteindex2 = spr_queenart_treasure_middlepoint;
47
                    treasure.flip = true;
48
                    instance_destroy();
49
                }
50
            }
51
            with (obj_overworld_bulletarea)
52
            {
53
                if (extflag == "bottom")
54
                    instance_destroy();
55
            }
56
            if (shine != -4)
57
                instance_destroy(shine);
58
            skip = true;
59
            isswitch = false;
60
            extflag = 0;
61
            global.flag[398 activated_mint_painting] = 1;
62
            dontshine = 1;
63
        }
64
        if (extflag == "treasure")
65
        {
66
            if (global.flag[138 got_painting_mint] == 0)
67
            {
68
                snd_play(snd_impact);
69
                itemflag = 138;
70
                var itemget = scr_itemget_anytype_text
scr_itemget_anytype_text

function scr_itemget_anytype_text() { noroom = 0; scr_itemget_anytype(argument[0], argument[1]); var itemgetstring = ""; itemname = "NULL"; itemtypename = "NULL"; var _itemtype = argument1; var _itemid = argument0; if (_itemtype == "armor") { scr_armorinfo(_itemid); itemname = armornametemp; itemtypename = stringsetloc(
ARMORs
"ARMORs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_22_0"
); } else if (_itemtype == "weapon") { scr_weaponinfo(_itemid); itemname = weaponnametemp; itemtypename = stringsetloc(
WEAPONs
"WEAPONs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_29_0"
); } if (_itemtype == "item") { scr_iteminfo(_itemid); itemname = itemnameb; itemtypename = stringsetloc(
ITEMs
"ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_36_0"
); if (_pocketed) itemtypename = stringsetloc(
STORAGE
"STORAGE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_38_0"
); } if (_itemtype == "key") { scr_keyiteminfo(_itemid); itemname = tempkeyitemname; itemtypename = stringsetloc(
KEY ITEMs
"KEY ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_44_0"
); } if (_itemtype == "money") { noroom = 0; itemtypename = stringsetloc(
MONEY HOLE
"MONEY HOLE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_51_0"
); itemname = string(_itemid) + stringsetloc(
Dark Dollars
" Dark Dollars", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_52_0"
); } if (noroom == 0) itemgetstring = stringsetsubloc("* (\\cY~1\\cW was added to your \\cY~2\\cW.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_76_0"); else itemgetstring = stringsetsubloc("* (You have too many \\cY~2\\cW to take \\cY~1\\c0.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_83_0"); if (argument_count >= 3) itemgetstring += argument[2]; else itemgetstring += "/%"; return itemgetstring; }
(2, "item");
71
                scr_speaker
scr_speaker

function scr_speaker(arg0) { _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("no_name");
72
                msgsetloc(0, 
* (You found a ReviveMint!)Wait for input
"* (You found a ReviveMint!)/", "obj_queenart_red_slash_Other_10_gml_91_0"
);
73
                msgnext(itemget);
74
                if (noroom == 0)
75
                    global.flag[itemflag] = 1;
76
                if (shine != -4)
77
                    instance_destroy(shine);
78
            }
79
            else
80
            {
81
                scr_speaker
scr_speaker

function scr_speaker(arg0) { _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("no_name");
82
                msgsetloc(0, 
* (There's nothing here.)Wait for inputClose Message
"* (There's nothing here.)/%", "obj_queenart_red_slash_Other_10_gml_107_0"
);
83
            }
84
            mydialoguer = instance_create(0, 0, obj_dialoguer);
85
        }
86
        if (extflag == "fireswitch" && global.flag[399 activated_painting_exit] == 0)
87
        {
88
            global.flag[399 activated_painting_exit] = 1;
89
            dontshine = 1;
90
            isswitch = false;
91
            decor = false;
92
            con = 0;
93
            flipcon = 0;
94
            flip = true;
95
            instance_create(x, y, obj_shake);
96
            with (shine)
97
                instance_destroy();
98
            with (obj_queenart_mona)
99
            {
100
                if (extflag == "exitblocker")
101
                {
102
                    decor = instance_create(x, y, obj_queenart_red);
103
                    decor.decorative = true;
104
                    decor.sprite_index = spr_queenart_red;
105
                    decor.spriteindex2 = spr_queenart_red;
106
                    decor.extflag = "decor";
107
                    decor.depth = 998000;
108
                    snd_play(snd_impact);
109
                    instance_destroy();
110
                }
111
            }
112
            with (obj_overworld_bulletarea)
113
            {
114
                if (extflag == "blocker")
115
                    instance_destroy();
116
            }
117
        }
118
    }
119
}
120
myinteract = 3;
121
global.interact = 1;
122
if (skip != 0)
123
    global.interact = 0;