Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_shadowgerson_Create_0

(view raw script w/o annotations or w/e)
1
layer_set_visible("debug_assets", 0);
2
movetocutscene = 0;
3
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
4
{
5
    
scr_setparty
scr_setparty

function
scr_setparty(arg0 = false, arg1 = false, arg2 = false)
{ var kris = obj_mainchara; var slot = 0; var __make = true; if (!i_ex(kris)) __make = false;
scr_losechar();
safe_delete(obj_caterpillarchara); if (arg0 == true) {
scr_getchar(2);
if (__make) { with (
scr_makecaterpillar(kris.x, kris.y, 2, slot))
{ halign = (global.darkzone == 0) ? 3 : 6; valign = (global.darkzone == 0) ? 6 : 16; x -= halign; y -= valign; } } slot++; } if (arg1 == true) {
scr_getchar(3);
if (__make) { with (
scr_makecaterpillar(kris.x, kris.y, 3, slot))
{ halign = 2; valign = 12; x -= halign; y -= valign; } } slot++; } if (arg2 == true) {
scr_getchar(4);
if (__make) { with (
scr_makecaterpillar(kris.x, kris.y, 4, slot))
{ halign = (global.darkzone == 0) ? 2 : 4; valign = (global.darkzone == 0) ? 9 : 18; x -= halign; y -= valign; } } slot++; } }
(1, 1);
6
    if (global.tempflag[90] == 1 || keyboard_check(ord("P")))
7
    {
8
        global.facing = 1;
9
        global.tempflag[90] = 0;
10
        movetocutscene = 1;
11
    }
12
}
13
if (global.plot < 126)
14
    global.plot = 126;
15
cutscene = 0;
16
if (global.plot >= 128)
17
    cutscene = 999;
18
init = 0;
19
roomglow = instance_create(0, 0, obj_roomglow);
20
prop1 = instance_create(620, 570, obj_dw_church_prophecy);
21
prop1.extflag = "main3";
22
prop2 = instance_create(1300, 378, obj_dw_church_prophecy);
23
prop2.extflag = "joke2";
24
germark = 0;
25
dogerson = 0;