Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_populatechars

(view raw script w/o annotations or w/e)
1
function 
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
{
3
    if (!variable_instance_exists(id, "kris"))
4
        kris = 0;
5
    if (!variable_instance_exists(id, "ralsei"))
6
        ralsei = 0;
7
    if (!variable_instance_exists(id, "susie"))
8
        susie = 0;
9
    if (!variable_instance_exists(id, "noelle"))
10
        noelle = 0;
11
    if (kris == 0)
12
    {
13
        with (obj_mainchara)
14
            other.kris = id;
15
    }
16
    if (susie == 0)
17
    {
18
        with (obj_caterpillarchara)
19
        {
20
            if (name == "susie")
21
                other.susie = id;
22
        }
23
    }
24
    if (ralsei == 0)
25
    {
26
        with (obj_caterpillarchara)
27
        {
28
            if (name == "ralsei")
29
                other.ralsei = id;
30
        }
31
    }
32
    if (noelle == 0)
33
    {
34
        with (obj_caterpillarchara)
35
        {
36
            if (name == "noelle")
37
                other.noelle = id;
38
        }
39
    }
40
}