Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_credits_ch5_castle_area_1_Create_0

(view raw script w/o annotations or w/e)
1
global.interact = 1;
2
_credits_audio = instance_find(obj_credits_ch5_audio, 0);
3
_credits_audio.add_event_listener(id);
4
with (obj_mainchara)
5
{
6
    freeze = 1;
7
    cutscene = 1;
8
    visible = false;
9
    x = -100;
10
    y = -100;
11
}
12
_queen_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; }
(280, 85, spr_queen_walk_down);
13
with (_queen_marker)
14
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
15
_lancer_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; }
(220, 141, spr_lancer_wave);
16
with (_lancer_marker)
17
{
18
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
19
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_index", 0, 8, 30);
20
}
21
_ralsei_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; }
(340, 127, spr_ralsei_walk_down);
22
with (_ralsei_marker)
23
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
24
_elegance_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; }
(390, 57, spr_npc_mrelegance);
25
with (_elegance_marker)
26
{
27
    image_blend = merge_color(c_black, c_white, 0.6);
28
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
29
}
30
_rudinn_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; }
(322, 40, spr_diamondm_idle);
31
with (_rudinn_marker)
32
{
33
    image_blend = merge_color(c_black, c_white, 0.6);
34
    image_speed = 0.2;
35
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
36
}
37
_hathy_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; }
(281, -14, spr_heartenemy_overworld);
38
with (_hathy_marker)
39
{
40
    image_blend = merge_color(c_black, c_white, 0.6);
41
    image_speed = 0.2;
42
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
43
}
44
_ruru_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; }
(373, -10, spr_rurus_idle);
45
with (_ruru_marker)
46
{
47
    image_blend = merge_color(c_black, c_white, 0.6);
48
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
49
}
50
_rabbick_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; }
(346, -45, spr_npc_rabbick_clean);
51
with (_rabbick_marker)
52
{
53
    image_blend = merge_color(c_black, c_white, 0.6);
54
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
55
}
56
if (scr_enemyrecruitcheck("sha"))
57
{
58
    _shadow_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; }
(220, 50, spr_npc_shadowguy_cat_dance);
59
    with (_shadow_marker)
60
        
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");
61
    _shadow_marker.image_speed = 0.2;
62
    with (_shadow_marker)
63
    {
64
        image_blend = merge_color(c_black, c_white, 0.6);
65
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
66
    }
67
}
68
if (
scr_recruited_all
scr_recruited_all

function
scr_recruited_all()
{ var recruited_all = true; var min_chapter = 1; var max_chapter = global.chapter + 1; for (var i = min_chapter; i < max_chapter; i++) { recruited_all = scr_recruited_all_in_chapter(i); if (!recruited_all) break; } return recruited_all; } function scr_recruited_all_previous() { var recruited_all = true; var min_chapter = 1; var max_chapter = global.chapter; for (var i = min_chapter; i < max_chapter; i++) { recruited_all = scr_recruited_all_in_chapter(i); if (!recruited_all) break; } return recruited_all; } function scr_recruited_all_in_chapter(arg0) { var chapter = arg0; var recruit_data = scr_get_chapter_recruit_data(chapter); var all_recruited = true; for (var i = 0; i < array_length_1d(recruit_data); i++) { if (global.flag[600 + recruit_data[i]] < 1) { all_recruited = false; break; } } return all_recruited; } function scr_get_chapter_recruit_data(arg0) { var chapter = arg0; var recruit_ids = []; if (chapter == 1) recruit_ids = [5, 6, 11, 13, 14, 15, 22, 23]; if (chapter == 2) recruit_ids = [30, 31, 32, 33, 34, 35, 36, 40, 42, 44]; if (chapter == 3) recruit_ids = [54, 55, 56, 57, 58, 59, 60, 61]; if (chapter == 4) recruit_ids = [62, 63, 64, 65, 66, 67, 68, 69]; if (chapter == 5) recruit_ids = [70, 71, 72, 73, 74, 75, 76, 77]; return recruit_ids; } function scr_get_total_recruits(arg0) { var totalrecruits = 0; var chapter = arg0; var recruit_data = scr_get_chapter_recruit_data(chapter); for (var i = 0; i < array_length_1d(recruit_data); i++) { if (global.flag[600 + recruit_data[i]] == 1) totalrecruits++; } return totalrecruits; }
())
69
{
70
    _nubert_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; }
(386, 90, spr_npc_nubert_super);
71
    with (_nubert_marker)
72
    {
73
        image_blend = merge_color(c_black, c_white, 0.6);
74
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
75
    }
76
}
77
if (scr_enemyrecruitcheck("swa"))
78
{
79
    _swatch_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; }
(180, 10, spr_npc_swatchling_down);
80
    with (_swatch_marker)
81
    {
82
        image_blend = merge_color(c_black, c_white, 0.6);
83
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
84
    }
85
}
86
if (scr_enemyrecruitcheck("tas"))
87
{
88
    _tasque_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; }
(200, -12, spr_tasque_idle_flipped);
89
    with (_tasque_marker)
90
    {
91
        image_blend = merge_color(c_black, c_white, 0.6);
92
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
93
    }
94
}
95
if (scr_enemyrecruitcheck("star"))
96
{
97
    _sw_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; }
(165, 105, spr_npc_originalstarwalker);
98
    with (_sw_marker)
99
    {
100
        image_blend = merge_color(c_black, c_white, 0.6);
101
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
102
    }
103
}
104
con = 0;
105
customcon = 0;
106
107
emit_event = function(arg0)
108
{
109
    if (arg0 != "timestamp_changed")
110
        exit;
111
    if (_credits_audio.get_timestamp() == 68.26)
112
    {
113
        _credits_audio.remove_event_listener(id);
114
        instance_create(0, 0, obj_persistentfadein);
115
        room_goto(room_dw_castle_town);
116
    }
117
};