Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_gameshow_populatevars

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

function
scr_gameshow_populatevars()
{ if (!variable_instance_exists(id, "kr_real")) kr_real = 0; if (!variable_instance_exists(id, "su_real")) su_real = 0; if (!variable_instance_exists(id, "ra_real")) ra_real = 0; if (!variable_instance_exists(id, "tenna")) tenna = 0; if (kr_real == 0) { with (obj_mainchara) other.kr_real = id; } if (su_real == 0) { with (obj_caterpillarchara) { if (name == "susie") other.su_real = id; } } if (ra_real == 0) { with (obj_caterpillarchara) { if (name == "ralsei") other.ra_real = id; } } if (tenna == 0) { with (obj_actor_tenna) other.tenna = id; } }
()
2
{
3
    if (!variable_instance_exists(id, "kr_real"))
4
        kr_real = 0;
5
    if (!variable_instance_exists(id, "su_real"))
6
        su_real = 0;
7
    if (!variable_instance_exists(id, "ra_real"))
8
        ra_real = 0;
9
    if (!variable_instance_exists(id, "tenna"))
10
        tenna = 0;
11
    if (kr_real == 0)
12
    {
13
        with (obj_mainchara)
14
            other.kr_real = id;
15
    }
16
    if (su_real == 0)
17
    {
18
        with (obj_caterpillarchara)
19
        {
20
            if (name == "susie")
21
                other.su_real = id;
22
        }
23
    }
24
    if (ra_real == 0)
25
    {
26
        with (obj_caterpillarchara)
27
        {
28
            if (name == "ralsei")
29
                other.ra_real = id;
30
        }
31
    }
32
    if (tenna == 0)
33
    {
34
        with (obj_actor_tenna)
35
            other.tenna = id;
36
    }
37
}