Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_intro1_Step_0

(view raw script w/o annotations or w/e)
1
if (!darkinit)
2
{
3
    
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; } } }
();
4
    slight = instance_create(236, 246, obj_light_following);
5
    slight.target = susie;
6
    slight.xoff = 26;
7
    slight.yoff = 46;
8
    if (i_ex(ralsei))
9
    {
10
        rlight = instance_create(ralsei.x, ralsei.y, obj_light_following);
11
        rlight.target = ralsei;
12
        rlight.xoff = 18;
13
        rlight.yoff = 40;
14
    }
15
    klight = instance_create(406, 254, obj_light_following);
16
    klight.target = kris;
17
    klight.xoff = 18;
18
    klight.yoff = 38;
19
    darkinit = 1;
20
}
21
if (con == 1)
22
{
23
    setxy(388, 216, kris);
24
    setxy(210, 200, susie);
25
    con = 2;
26
}