Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_darkclimb_Step_0

(view raw script w/o annotations or w/e)
1
scr_populatechars
scr_populatechars

function
scr_populatechars()
{ if (!variable_instance_exists(id, "kris")) kris = 0; if (!variable_instance_exists(id, "ralsei")) ralsei = 0; if (!variable_instance_exists(id, "susie")) susie = 0; if (!variable_instance_exists(id, "noelle")) noelle = 0; if (kris == 0) { with (obj_mainchara) other.kris = id; } if (susie == 0) { with (obj_caterpillarchara) { if (name == "susie") other.susie = id; } } if (ralsei == 0) { with (obj_caterpillarchara) { if (name == "ralsei") other.ralsei = id; } } if (noelle == 0) { with (obj_caterpillarchara) { if (name == "noelle") other.noelle = id; } } }
();
2
if (!i_ex(krlight))
3
{
4
    krlight = instance_create(kris.x, kris.y, obj_light_following);
5
}
6
else
7
{
8
    krlight.target = kris;
9
    krlight.xoff = 18;
10
    krlight.size = 96;
11
    krlight.yoff = 38;
12
    if (i_ex(obj_climb_kris))
13
    {
14
        krlight.target = 27;
15
        krlight.xoff = 0;
16
        krlight.yoff = 0;
17
    }
18
}