Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_GSA07_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.plot >= 120 && global.plot < 130)
4
{
5
    lancer_npc = instance_create(292, 260, obj_npc_room);
6
    with (lancer_npc)
7
    {
8
        extflag = "lancer";
9
        sprite_index = spr_lancer_ut;
10
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
11
    }
12
    if (global.plot < 125)
13
        con = 0;
14
    else
15
        lancer_npc.x = 352;
16
    if (global.plot > 125)
17
        lancer_npc.sprite_index = spr_lancer_dt;
18
}
19
if (global.plot >= 205)
20
{
21
    if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1085) == 0)
22
        
scr_flag_set
scr_flag_set

function
scr_flag_set(arg0, arg1)
{ global.flag[arg0] = arg1; }
(1085, 1);
23
}