Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_room_castle_front_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
shutta_pose = false;
4
shutta_pose_return = false;
5
shutta_posing = false;
6
critter_photo = false;
7
critter_timer = 0;
8
tasque_npc = -4;
9
poppup_npc = -4;
10
maus_npc = -4;
11
cround_npc = -4;
12
var recruited_shutta = 
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; } function scr_flag_name_get(arg0) { if (!global.is_console) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } else { return ""; } } function scr_getflag(arg0) { return
scr_flag_get(arg0);
}
(655) == 1;
13
if (recruited_shutta)
14
{
15
    critter_photo = true;
16
    shutta_marker = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(330, 349, spr_shutta_idle);
17
    with (shutta_marker)
18
    {
19
        image_speed = 0.2;
20
        
scr_flip
scr_flip

function
scr_flip(arg0)
{ if (arg0 == "h" || arg0 == "x") { x += ((sprite_get_width(sprite_index) - (sprite_get_xoffset(sprite_index) * 2)) * image_xscale); image_xscale = -image_xscale; } else { y += ((sprite_get_height(sprite_index) - (sprite_get_yoffset(sprite_index) * 2)) * image_yscale); image_yscale = -image_yscale; } }
("x");
21
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
22
    }
23
    var shutta_collider = instance_create(shutta_marker.x - 100, shutta_marker.y + 60, obj_solidblocksized);
24
    with (shutta_collider)
25
    {
26
        image_xscale = 2;
27
        image_yscale = 1.5;
28
    }
29
    var shutta_readable = instance_create(shutta_marker.x - 100, shutta_marker.y + 60, obj_readable_room1);
30
    with (shutta_readable)
31
    {
32
        extflag = "shutta";
33
        image_xscale = 4;
34
        image_yscale = 3;
35
    }
36
    if (scr_enemyrecruitcheck("tasque"))
37
    {
38
        tasque_npc = instance_create(650, 340, obj_npc_room_animated);
39
        with (tasque_npc)
40
        {
41
            extflag = "tasque";
42
            sprite_index = spr_npc_tasque_ribbon;
43
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
44
        }
45
        var tasque_collider = instance_create(tasque_npc.x, tasque_npc.y + 30, obj_solidblocksized);
46
        with (tasque_collider)
47
        {
48
            image_xscale = 3.2;
49
            image_yscale = 1.4;
50
        }
51
    }
52
    if (scr_enemyrecruitcheck("poppup"))
53
    {
54
        poppup_npc = instance_create(724, 422, obj_npc_room_animated);
55
        with (poppup_npc)
56
        {
57
            extflag = "poppup";
58
            sprite_index = spr_npc_poppup_ribbon;
59
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
60
        }
61
    }
62
    if (scr_enemyrecruitcheck("maus"))
63
    {
64
        maus_npc = instance_create(620, 421, obj_npc_room_animated);
65
        with (maus_npc)
66
        {
67
            extflag = "maus";
68
            sprite_index = spr_npc_maus_ribbon;
69
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
70
        }
71
    }
72
    cround_npc = instance_create(655, 460, obj_npc_room_animated);
73
    with (cround_npc)
74
    {
75
        extflag = "cround";
76
        sprite_index = spr_npc_cround_ribbon;
77
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
78
    }
79
}
80
81
critter_pose = function()
82
{
83
    with (tasque_npc)
84
        sprite_index = spr_npc_tasque_ribbon_pose;
85
    with (poppup_npc)
86
        sprite_index = spr_npc_poppup_ribbon_pose;
87
    with (maus_npc)
88
        sprite_index = spr_npc_maus_ribbon_pose;
89
    with (cround_npc)
90
        sprite_index = spr_npc_cround_ribbon_pose;
91
};
92
93
critter_reset = function()
94
{
95
    with (tasque_npc)
96
        sprite_index = spr_npc_tasque_ribbon;
97
    with (poppup_npc)
98
        sprite_index = spr_npc_poppup_ribbon;
99
    with (maus_npc)
100
        sprite_index = spr_npc_maus_ribbon;
101
    with (cround_npc)
102
        sprite_index = spr_npc_cround_ribbon;
103
};