Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_town_event_Create_0

(view raw script w/o annotations or w/e)
1
choicetimer = 0;
2
flush = 0;
3
con = 0;
4
if (room == room_town_mid)
5
{
6
    if (global.flag[271 talk_pizzapants] == 0)
7
    {
8
        bnpc = instance_create(x, y, obj_npc_room_animated);
9
        bnpc.sprite_index = spr_npc_icemascot1;
10
    }
11
    else
12
    {
13
        bnpc = instance_create(x + 7, y + 4, obj_npc_room);
14
        bnpc.sprite_index = spr_npc_burgerpants;
15
    }
16
}
17
if (room == room_town_south)
18
{
19
    policewindow = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(292, 57, spr_policewindow);
20
    with (policewindow)
21
        depth = 940000;
22
}
23
if (room == room_graveyard)
24
{
25
    overlay = instance_create(0, 0, obj_backgrounder_sprite);
26
    with (obj_mainchara)
27
        bg = 1;
28
    with (overlay)
29
    {
30
        image_alpha = 0.4;
31
        ss = 0.1;
32
        sprite_index = spr_graveyard_overlay;
33
        depth = 1000;
34
    }
35
}