Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_room_teevie_large_01_Create_0

(view raw script w/o annotations or w/e)
1
if (
scr_debug
scr_debug

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

function
scr_setparty(arg0, arg1, arg2)
{ 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, 0);
3
var _marquee = instance_create(100, 340, obj_dw_ch3_teevie_marquee);
4
_marquee.mystring = stringsetloc(
Now playing...
"Now playing...", "obj_room_teevie_large_01_slash_Create_0_gml_5_0"
);
5
_marquee.width = 220;
6
with (_marquee)
7
    
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
8
var _encounter_id = 117;
9
var _encounter_flag = 590;
10
for (var i = 0; i < 5; i++)
11
{
12
    var enemy_encounter = instance_create(0, 0, obj_chaseenemy);
13
    with (enemy_encounter)
14
    {
15
        path_start(path_teevie_large_01, 8, path_action_continue, 1);
16
        path_position = i * 0.2;
17
        myencounter = _encounter_id;
18
        encounterflag = _encounter_flag;
19
        sprite_index = spr_shadowman_idle_a;
20
        touchsprite = spr_shadowman_hurt;
21
        touchtype = 1;
22
        boxtype = 1;
23
        radius = 1;
24
        alertskip = 0;
25
        pacetype = 11;
26
        chasetype = -1;
27
        ignoresolid = 0;
28
        moveradius = 10;
29
        eraser = 1;
30
        alerttype = 1;
31
        canAlertThroughWalls = 0;
32
        extflag = "shutta";
33
    }
34
}
35
var tv_screen_left = instance_create(0, 0, obj_dw_teevie_tv_screens);
36
with (tv_screen_left)
37
{
38
    x = 420;
39
    y = 500;
40
    width = 3;
41
    height = 3;
42
    depth = 1000010;
43
    tvbasesprite = spr_dw_teevie_tv_base;
44
}