Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_npc_musical_door_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
fade_timer = 0;
3
sold_out = false;
4
plugboynpc = instance_create(142, 304, obj_npc_room);
5
plugboynpc.sprite_index = spr_npc_plugboy_static;
6
if (global.plot < 60)
7
{
8
    capnnpc = instance_create(195, 137, obj_npc_room_animated);
9
    capnnpc.sprite_index = spr_npc_hatguy;
10
    kknpc = instance_create(355, 113, obj_npc_room_animated);
11
    kknpc.sprite_index = spr_npc_kk;
12
    rebelnpc = instance_create(430, 310, obj_npc_room);
13
    rebelnpc.sprite_index = spr_npc_plugboy_bandana;
14
}
15
else
16
{
17
    if (global.flag[416 field_tempsave] == 0)
18
    {
19
        global.flag[416 field_tempsave] = 1;
20
        
scr_tempsave
scr_tempsave

function
scr_tempsave()
{ filechoicebk2 = global.filechoice; global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2; }
();
21
    }
22
    instance_destroy();
23
}