Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_churchb_prophecyencounter_Create_0

(view raw script w/o annotations or w/e)
1
global.flag[7 disable_menu?] = 0;
2
con = 0;
3
timer = 0;
4
init = 0;
5
siner = 0;
6
forceactive = 0;
7
roomglow = instance_create(0, 0, obj_roomglow);
8
encounterflag = 1784;
9
encounterno = 155;
10
econ = 0;
11
bat = 0;
12
etimer = 0;
13
if (global.flag[encounterflag] == 1)
14
    econ = 99;
15
layer_set_visible("DEBUG_ASSETS", 0);
16
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
17
{
18
    
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);
19
    if (keyboard_check(ord("P")))
20
        global.plot = 235;
21
}
22
cutscene = 0;
23
if (global.plot < 235)
24
    global.plot = 235;
25
if (global.plot > 235)
26
    cutscene = -1;
27
depth = 5000;
28
with (obj_border_controller)
29
    show_border();