Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_checkmarktreasurebox_Other_10

(view raw script w/o annotations or w/e)
1
if (!opened)
2
{
3
    myinteract = 3;
4
    global.interact = 1;
5
    image_index = 1;
6
    opened = true;
7
    snd_play(snd_locker);
8
    screen = instance_create(980, 100, obj_queenscreen);
9
    screen.image_index = 10;
10
    with (obj_event_manager)
11
        trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_23, UnknownEnum.Value_939);
12
}
13
else
14
{
15
    with (obj_darkcontroller)
16
        charcon = 0;
17
    global.msc = 0;
18
    global.typer = 5;
19
    if (global.darkzone == 1)
20
        global.typer = 6;
21
    global.fc = 0;
22
    global.fe = 0;
23
    global.interact = 1;
24
    image_index = 1;
25
    global.msg[0] = stringsetloc(
* (The chest is empty.)Wait for inputClose Message
"* (The chest is empty.)/%", "obj_treasure_room_slash_Other_10_gml_18_0"
);
26
    myinteract = 3;
27
    mydialoguer = instance_create(0, 0, obj_dialoguer);
28
    talked += 1;
29
}
30
31
enum UnknownEnum
32
{
33
    Value_0,
34
    Value_23 = 23,
35
    Value_939 = 939
36
}