Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_BTB03_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0 && global.interact == 0)
2
{
3
    con = 1;
4
    alarm[0]
 = 1;
gml_Object_obj_ch3_BTB03_Alarm_0.gml

con++;
5
    global.interact = 1;
6
}
7
if (con == 2)
8
{
9
    con = 3;
10
    cutscene_master = 
scr_cutscene_make
scr_cutscene_make

function
scr_cutscene_make()
{ _cutscene_master = instance_create(0, 0, obj_cutscene_master); _cutscene_master.master_object = id; return _cutscene_master; }
();
11
    
scr_maincharacters_actors
scr_maincharacters_actors

function
scr_maincharacters_actors()
{ actor_count = 0; kr = 0; kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index; kr_actor.depth = obj_mainchara.depth; with (obj_mainchara) visible = 0; for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++) { if (i_ex(global.cinstance[__jj])) { if (global.cinstance[__jj].name == "susie") { actor_count++; su = __jj + 1; su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index; su_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "ralsei") { actor_count++; ra = __jj + 1; ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index; ra_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "noelle") { actor_count++; no = __jj + 1; no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index; no_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } } } }
();
12
    global.facing = 0;
13
    te = actor_count + 1;
14
    te_actor = instance_create(camerax() + view_wport[0] + 425, 485, obj_actor_tenna);
15
    
scr_actor_setup
scr_actor_setup

function
scr_actor_setup(arg0, arg1, arg2)
{ _actorid = arg0; _actorinstance = arg1; _actorname = arg2; obj_cutscene_master.actor_id[_actorid] = _actorinstance; obj_cutscene_master.actor_name[_actorid] = _actorname; with (_actorinstance) { number = arg0;
scr_set_facing_sprites(arg2);
} }
(te, te_actor, "tenna");
16
    te_actor.sprite_index = spr_tenna_grasp_anim;
17
    te_actor.preset = 0;
18
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
19
    if (kr_actor.y < (dustpile.y + 10) || kr_actor.y >= (dustpile.y + 20))
20
    {
21
        
c_walkdirect_speed
c_walkdirect_speed

function
c_walkdirect_speed(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, -arg2, 0);
}
(kr_actor.x, dustpile.y + 10, 6);
22
        
c_delaywalkdirect
c_delaywalkdirect

function
c_delaywalkdirect(arg0, arg1, arg2, arg3)
{
c_cmd_x("delaycmd", arg0, "walkdirect", arg1, arg2, arg3, 0);
}
(7, dustpile.x + 30, dustpile.y + 10, 12);
23
    }
24
    else
25
    {
26
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(dustpile.x + 30, dustpile.y + 10, 12);
27
    }
28
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
29
    if (su_actor.y < (dustpile.y + 4) || su_actor.y >= (dustpile.y + 6))
30
    {
31
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(su_actor.x, dustpile.y, 8);
32
        
c_delaywalkdirect
c_delaywalkdirect

function
c_delaywalkdirect(arg0, arg1, arg2, arg3)
{
c_cmd_x("delaycmd", arg0, "walkdirect", arg1, arg2, arg3, 0);
}
(9, dustpile.x + 30, dustpile.y, 12);
33
    }
34
    else
35
    {
36
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(dustpile.x + 30, dustpile.y, 18);
37
    }
38
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
39
    if (ra_actor.y < (dustpile.y + 2) || su_actor.y >= (dustpile.y + 4))
40
    {
41
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(ra_actor.x, dustpile.y + 6, 14);
42
        
c_delaywalkdirect
c_delaywalkdirect

function
c_delaywalkdirect(arg0, arg1, arg2, arg3)
{
c_cmd_x("delaycmd", arg0, "walkdirect", arg1, arg2, arg3, 0);
}
(15, dustpile.x + 30, dustpile.y + 6, 12);
43
    }
44
    else
45
    {
46
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(dustpile.x + 30, dustpile.y + 10, 22);
47
    }
48
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(30);
49
    
c_pannable
c_pannable

function
c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
}
(1);
50
    
c_panspeed
c_panspeed

function
c_panspeed(arg0, arg1, arg2)
{
c_cmd("panspeed", arg0, arg1, arg2, 0);
}
(6, 0, 90);
51
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(91);
52
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(te);
53
    
c_tenna_preset
c_tenna_preset

function
c_tenna_preset(arg0)
{
c_cmd("tenna", "preset", arg0, 0, 0);
}
(16);
54
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(1);
55
    
c_imageindex
c_imageindex

function
c_imageindex(arg0)
{
c_cmd("imageindex", arg0, 0, 0, 0);
}
(1015);
56
    
c_imagespeed
c_imagespeed

function
c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
}
(0.25);
57
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("tenna");
58
    
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
* Elnina!!Delay 11 Lanino!? You two!? C'mon,Delay 11 old friends,Delay 11 you can't leave...!Wait for inputClose Message
"* Elnina!^1! Lanino!? You two!? C'mon^1, old friends^1, you can't leave...!/%", "obj_ch3_BTB03_slash_Step_0_gml_47_0"
);
59
    
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
60
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(te_actor, "image_speed", 0.75);
61
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(te_actor, "wobbleamt", 30);
62
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "staff_leave", true);
63
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "staff_leave_loop", true);
64
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(160);
65
    
c_var_lerp_instance
c_var_lerp_instance

function
c_var_lerp_instance()
{ if (argument_count < 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], 0);
else if (argument_count == 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
else if (argument_count == 7)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], string(argument[5]) + string(argument[6]));
} function c_lerp_var_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
} function c_lerpvar_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
}
(te_actor, "image_speed", 0.5, 0, 100);
66
    
c_var_lerp_instance
c_var_lerp_instance

function
c_var_lerp_instance()
{ if (argument_count < 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], 0);
else if (argument_count == 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
else if (argument_count == 7)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], string(argument[5]) + string(argument[6]));
} function c_lerp_var_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
} function c_lerpvar_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
}
(te_actor, "wobbleamt", 30, 0, 100);
67
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(30);
68
    
c_panspeed
c_panspeed

function
c_panspeed(arg0, arg1, arg2)
{
c_cmd("panspeed", arg0, arg1, arg2, 0);
}
(4, 0, 52);
69
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(100);
70
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(te);
71
    
c_tenna_sprite
c_tenna_sprite

function
c_tenna_sprite(arg0)
{
c_cmd("tenna", "sprite", arg0, 0, 0);
}
(spr_tenna_tie_adjust_c);
72
    
c_tenna_preset
c_tenna_preset

function
c_tenna_preset(arg0)
{
c_cmd("tenna", "preset", arg0, 0, 0);
}
(15);
73
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(te_actor, "xscale", -2);
74
    
c_var_lerp_instance
c_var_lerp_instance

function
c_var_lerp_instance()
{ if (argument_count < 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], 0);
else if (argument_count == 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
else if (argument_count == 7)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], string(argument[5]) + string(argument[6]));
} function c_lerp_var_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
} function c_lerpvar_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
}
(te_actor, "wobbleamt", 6, 0, 60);
75
    
c_msgzurasu
c_msgzurasu

function
c_msgzurasu(arg0)
{ if (arg0 == 1)
c_cmd("msgside", "zurasuon", 0, 0, 0);
else
c_cmd("msgside", "zurasuoff", 0, 0, 0);
}
(1);
76
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("tenna");
77
    
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
* Fine!!Delay 11 Fine,Delay 11 you wanna go,Delay 11 GO!!Wait for input
"* Fine!^1! Fine^1, you wanna go^1, GO!!/", "obj_ch3_BTB03_slash_Step_0_gml_82_0"
);
78
    
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
* We'll see how far the Lightners get...Wait for inputClose Message
"* We'll see how far the Lightners get.../%", "obj_ch3_BTB03_slash_Step_0_gml_83_0"
);
79
    
c_talk
c_talk

function
c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
}
();
80
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(60);
81
    
c_wait_talk
c_wait_talk

function
c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
}
();
82
    
c_tenna_sprite
c_tenna_sprite

function
c_tenna_sprite(arg0)
{
c_cmd("tenna", "sprite", arg0, 0, 0);
}
(spr_tenna_laugh);
83
    
c_imagespeed
c_imagespeed

function
c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
}
(0.2);
84
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(te_actor, "xscale", 2);
85
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("tenna");
86
    
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
* WITHOUT THE WEATHER CHANNEL!!Delay 11 HAHAHA!Wait for inputClose Message
"* WITHOUT THE WEATHER CHANNEL!^1! HAHAHA!/%", "obj_ch3_BTB03_slash_Step_0_gml_96_0"
);
87
    
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
88
    
c_var_lerp_instance
c_var_lerp_instance

function
c_var_lerp_instance()
{ if (argument_count < 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], 0);
else if (argument_count == 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
else if (argument_count == 7)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], string(argument[5]) + string(argument[6]));
} function c_lerp_var_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
} function c_lerpvar_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
}
(te_actor, "image_speed", 0.2, 0.5, 30);
89
    
c_tenna_preset
c_tenna_preset

function
c_tenna_preset(arg0)
{
c_cmd("tenna", "preset", arg0, 0, 0);
}
(16);
90
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(te_actor, "xscale", -2);
91
    
c_tenna_sprite
c_tenna_sprite

function
c_tenna_sprite(arg0)
{
c_cmd("tenna", "sprite", arg0, 0, 0);
}
(spr_tenna_laugh);
92
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("tenna");
93
    
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
* How can they know the Weather without TV!?!? Hahahaha!!Wait for inputClose Message
"* How can they know the Weather without TV!?!? Hahahaha!!/%", "obj_ch3_BTB03_slash_Step_0_gml_106_0"
);
94
    
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
95
    
c_halt
c_halt

function
c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
}
();
96
    
c_tenna_sprite
c_tenna_sprite

function
c_tenna_sprite(arg0)
{
c_cmd("tenna", "sprite", arg0, 0, 0);
}
(spr_tenna_grasp_anim);
97
    
c_tenna_preset
c_tenna_preset

function
c_tenna_preset(arg0)
{
c_cmd("tenna", "preset", arg0, 0, 0);
}
(15);
98
    
c_imagespeed
c_imagespeed

function
c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
}
(0.5);
99
    
c_var_lerp_instance
c_var_lerp_instance

function
c_var_lerp_instance()
{ if (argument_count < 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], 0);
else if (argument_count == 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
else if (argument_count == 7)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], string(argument[5]) + string(argument[6]));
} function c_lerp_var_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
} function c_lerpvar_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
}
(te_actor, "wobbleamt", 6, 0, 30);
100
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(te_actor, "xscale", 2);
101
    
c_shakeobj
c_shakeobj

function
c_shakeobj()
{
c_cmd("shakeobj", 0, 0, 0, 0);
}
();
102
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("tenna");
103
    
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
* What? Apps? What...Delay 11 What are those!? Everything's changing so fast...Wait for inputClose Message
"* What? Apps? What..^1. What are those!? Everything's changing so fast.../%", "obj_ch3_BTB03_slash_Step_0_gml_119_0"
);
104
    
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
105
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "musfade", 1);
106
    
c_imagespeed
c_imagespeed

function
c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
}
(0);
107
    
c_imageindex
c_imageindex

function
c_imageindex(arg0)
{
c_cmd("imageindex", arg0, 0, 0, 0);
}
(2);
108
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "show_spotlight", true);
109
    
c_soundplay
c_soundplay

function
c_soundplay(arg0)
{
c_cmd("soundplay", arg0, 0, 0, 0);
} function c_sndplay(arg0) {
c_soundplay(arg0);
} function c_snd_play(arg0) {
c_soundplay(arg0);
} function c_sound_play(arg0) {
c_soundplay(arg0);
}
(snd_impact);
110
    
c_soundplay
c_soundplay

function
c_soundplay(arg0)
{
c_cmd("soundplay", arg0, 0, 0, 0);
} function c_sndplay(arg0) {
c_soundplay(arg0);
} function c_snd_play(arg0) {
c_soundplay(arg0);
} function c_sound_play(arg0) {
c_soundplay(arg0);
}
(snd_locker);
111
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(60);
112
    
c_imageindex
c_imageindex

function
c_imageindex(arg0)
{
c_cmd("imageindex", arg0, 0, 0, 0);
}
(0);
113
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("tenna");
114
    
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
* M...Delay 11 Mike? Mike,Delay 11 you...Delay 11 you're leaving,Delay 11 too!?Wait for inputClose Message
"* M..^1. Mike? Mike^1, you..^1. you're leaving^1, too!?/%", "obj_ch3_BTB03_slash_Step_0_gml_135_0"
);
115
    
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
116
    
c_halt
c_halt

function
c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
}
();
117
    
c_tenna_sprite
c_tenna_sprite

function
c_tenna_sprite(arg0)
{
c_cmd("tenna", "sprite", arg0, 0, 0);
}
(spr_tenna_grasp_e);
118
    
c_tenna_preset
c_tenna_preset

function
c_tenna_preset(arg0)
{
c_cmd("tenna", "preset", arg0, 0, 0);
}
(15);
119
    
c_shakeobj
c_shakeobj

function
c_shakeobj()
{
c_cmd("shakeobj", 0, 0, 0, 0);
}
();
120
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("tenna");
121
    
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
* MIKE!!Delay 11 NO!!Delay 11 ANYONE BUT YOU!!Delay 11 ANYONE!!Wait for inputClose Message
"* MIKE!^1! NO!^1! ANYONE BUT YOU!^1! ANYONE!!/%", "obj_ch3_BTB03_slash_Step_0_gml_145_0"
);
122
    
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
123
    c_lerp_var_instance(te_actor, "wobbleamt", 6, 20, 30);
124
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(60);
125
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "staff_cleanup", true);
126
    
c_pan
c_pan

function
c_pan(arg0, arg1, arg2)
{
c_cmd("pan", arg0, arg1, arg2, 0);
}
(2050, 233, 30);
127
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "musfade", 3);
128
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(60);
129
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
130
    
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(dustpile.x + 240, 435, 40);
131
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
132
    
c_delaywalkdirect
c_delaywalkdirect

function
c_delaywalkdirect(arg0, arg1, arg2, arg3)
{
c_cmd_x("delaycmd", arg0, "walkdirect", arg1, arg2, arg3, 0);
}
(12, dustpile.x + 180, 417, 30);
133
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
134
    
c_delaywalkdirect
c_delaywalkdirect

function
c_delaywalkdirect(arg0, arg1, arg2, arg3)
{
c_cmd_x("delaycmd", arg0, "walkdirect", arg1, arg2, arg3, 0);
}
(18, dustpile.x + 140, 423, 30);
135
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(20);
136
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "hide_spotlight", true);
137
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(30);
138
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
139
    
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("d");
140
    
c_actortokris
c_actortokris

function
c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
}
();
141
    
c_actortocaterpillar
c_actortocaterpillar

function
c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
}
();
142
    
c_terminatekillactors
c_terminatekillactors

function
c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
}
();
143
}
144
if (con == 3 && !i_ex(obj_cutscene_master))
145
{
146
    with (obj_mainchara)
147
        cutscene = 0;
148
    global.interact = 0;
149
    global.facing = 0;
150
    global.plot = 280;
151
    if (global.tempflag[90] != 0)
152
        global.tempflag[90] = 0;
153
    with (dustpile_block)
154
        instance_destroy();
155
    with (dustpile_readable)
156
        instance_destroy();
157
    con = 99;
158
}
159
if (staff_leave)
160
{
161
    staff_leave_timer++;
162
    if (staff_leave_phase == 0)
163
    {
164
        if (staff_leave_timer == 1)
165
        {
166
            with (staff_markers[staff_index])
167
            {
168
            }
169
        }
170
        if (staff_leave_timer == 10)
171
        {
172
            if (staff_index > 0)
173
            {
174
                with (staff_markers[staff_index])
175
                    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ 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_lerpvar_respect() { 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]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, x - 30, 25);
176
            }
177
            else
178
            {
179
                with (staff_markers[staff_index])
180
                    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ 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_lerpvar_respect() { 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]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, x - 40, 50);
181
            }
182
        }
183
        if (staff_leave_timer == 20)
184
        {
185
            staff_index++;
186
            staff_leave_timer = 0;
187
            if (staff_leave_loop)
188
            {
189
                if (staff_index >= array_length_1d(staff_markers))
190
                    staff_leave_phase++;
191
            }
192
            else
193
            {
194
                staff_leave = false;
195
            }
196
        }
197
    }
198
    else if (staff_leave_phase == 1)
199
    {
200
        if (staff_leave_timer == 45)
201
        {
202
            with (staff_markers[1])
203
                image_xscale = -2;
204
        }
205
        if (staff_leave_timer == 60)
206
        {
207
            with (staff_markers[0])
208
                image_index = 1;
209
        }
210
        if (staff_leave_timer == 80)
211
        {
212
            staff_index++;
213
            staff_leave_timer = 0;
214
            if (staff_leave_loop)
215
            {
216
                if (staff_index >= array_length_1d(staff_markers))
217
                    staff_leave_phase++;
218
            }
219
            else
220
            {
221
                staff_leave = false;
222
            }
223
        }
224
    }
225
    else if (staff_leave_phase == 2)
226
    {
227
        if (staff_leave_timer == 10)
228
        {
229
            with (staff_markers[1])
230
                image_xscale = 2;
231
        }
232
        if (staff_leave_timer == 40)
233
        {
234
            with (staff_markers[1])
235
                image_xscale = -2;
236
        }
237
        if (staff_leave_timer == 50)
238
        {
239
            with (staff_markers[1])
240
                image_index = 1;
241
        }
242
        if (staff_leave_timer == 60)
243
        {
244
            with (staff_markers[1])
245
                image_index = 1;
246
        }
247
        if (staff_leave_timer == 75)
248
        {
249
            with (staff_markers[0])
250
            {
251
                image_xscale = -2;
252
                
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ 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_lerpvar_respect() { 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]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, camerax() - 100, 30);
253
            }
254
        }
255
        if (staff_leave_timer == 79)
256
        {
257
            with (staff_markers[1])
258
                
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ 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_lerpvar_respect() { 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]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, camerax() - 100, 30);
259
        }
260
        if (staff_leave_timer == 120)
261
        {
262
            staff_index++;
263
            staff_leave_timer = 0;
264
            if (staff_leave_loop)
265
            {
266
                if (staff_index >= array_length_1d(staff_markers))
267
                    staff_leave = false;
268
            }
269
            else
270
            {
271
                staff_leave = false;
272
            }
273
        }
274
    }
275
}
276
if (staff_cleanup)
277
{
278
    staff_cleanup = false;
279
    camenary_hover = false;
280
    var i = array_length_1d(staff_markers) - 1;
281
    while (i >= 0)
282
    {
283
        with (staff_markers[i])
284
            instance_destroy();
285
        i--;
286
    }
287
}
288
if (show_spotlight)
289
{
290
    show_spotlight = false;
291
    spotlight = instance_create(2842, y, obj_ch3_BTB03_spotlight);
292
}
293
if (hide_spotlight)
294
{
295
    hide_spotlight = false;
296
    with (spotlight)
297
        clean_up();
298
}
299
if (musfade == 1)
300
{
301
    musfade = 2;
302
    musvol = audio_sound_get_gain(global.currentsong[1]);
303
    snd_volume(global.currentsong[1], 0, 0);
304
}
305
if (musfade == 3)
306
{
307
    snd_volume(global.currentsong[1], musfade, 240);
308
    musfade = 0;
309
}