Deltarune script viewer

← back to main script listing

gml_GlobalScript_scr_cutscene_commands

(view raw script w/o annotations or w/e)
1
function scr_cutscene_commands
scr_cutscene_commands

function scr_cutscene_commands() { if (_c == "delaycmd") { delaycmd = instance_create(0, 0, obj_cutscene_delaycmd); delaycmd.master_object = master_object; delaycmd.command_actor[0] = command_actor[i]; delaycmd.alarm[0] = command_arg1[i]; delaycmd._c = command_arg2[i]; delaycmd.command_arg1[0] = command_arg3[i]; delaycmd.command_arg2[0] = command_arg4[i]; delaycmd.command_arg3[0] = command_arg5[i]; delaycmd.command_arg4[0] = command_arg6[i]; if (instant) { delaycmd.alarm[0] = 0; delaycmd.instant = 1; with (delaycmd) event_user(0); } } if (_c == "walk") { if (!instant) { actor_move = instance_create(0, 0, obj_move_actor); actor_move.target = command_actor[i]; actor_move.direction_word = command_arg1[i]; actor_move.speed = command_arg2[i]; actor_move.time = command_arg3[i]; with (actor_move) event_user(8); } else { command_actor[i].x += lengthdir_x(command_arg2[i] * command_arg3[i], (scr_facing_letter_to_number(command_arg1[i]) * 90) - 90); command_actor[i].y += lengthdir_y(command_arg2[i] * command_arg3[i], (scr_facing_letter_to_number(command_arg1[i]) * 90) - 90); } } if (_c == "walkdirect") { if (!instant) { actor_move = instance_create(0, 0, obj_move_to_point); actor_move.target = command_actor[i]; actor_move.movex = command_arg1[i]; actor_move.movey = command_arg2[i]; actor_move.movemax = command_arg3[i]; if (command_arg1[i] == 0) actor_move.movex = command_actor[i].x; if (command_arg2[i] == 0) actor_move.movey = command_actor[i].y; } else { command_actor[i].x = command_arg1[i]; command_actor[i].y = command_arg2[i]; } } if (_c == "msgset") msgset(command_arg1[i], command_arg2[i]); if (_c == "msgnext") msgnext(command_arg1[i]); if (_c == "talk") { if (!instant) { mydialoguer = instance_create(0, 0, obj_dialoguer); if (msgside >= 0) mydialoguer.side = msgside; mydialoguer.zurasu = zurasu; } } if (_c == "msgface") scr_anyface(command_arg1[i], command_arg2[i], command_arg3[i]); if (_c == "msgfacenext") scr_anyface_next(command_arg1[i], command_arg2[i]); if (_c == "msgside") { if (command_arg1[i] == "any") msgside = -1; if (command_arg1[i] == "top") msgside = 0; if (command_arg1[i] == "bottom") msgside = 1; if (command_arg1[i] == "zurasuon") zurasu = 1; if (command_arg1[i] == "zurasuoff") zurasu = 0; } if (_c == "emote") { if (!instant) { command_actor[i].__arg0 = command_arg1[i]; command_actor[i].__arg1 = command_arg2[i]; command_actor[i].__arg2 = command_arg3[i]; if (command_arg3[i] == 0) { with (command_actor[i]) scr_emote(__arg0, __arg1); ...
()
2
{
3
    if (_c == "delaycmd")
4
    {
5
        delaycmd = instance_create(0, 0, obj_cutscene_delaycmd);
6
        delaycmd.master_object = master_object;
7
        delaycmd.command_actor[0] = command_actor[i];
8
        delaycmd.alarm[0] = command_arg1[i];
9
        delaycmd._c = command_arg2[i];
10
        delaycmd.command_arg1[0] = command_arg3[i];
11
        delaycmd.command_arg2[0] = command_arg4[i];
12
        delaycmd.command_arg3[0] = command_arg5[i];
13
        delaycmd.command_arg4[0] = command_arg6[i];
14
        if (instant)
15
        {
16
            delaycmd.alarm[0] = 0;
17
            delaycmd.instant = 1;
18
            with (delaycmd)
19
                event_user(0);
20
        }
21
    }
22
    if (_c == "walk")
23
    {
24
        if (!instant)
25
        {
26
            actor_move = instance_create(0, 0, obj_move_actor);
27
            actor_move.target = command_actor[i];
28
            actor_move.direction_word = command_arg1[i];
29
            actor_move.speed = command_arg2[i];
30
            actor_move.time = command_arg3[i];
31
            with (actor_move)
32
                event_user(8);
33
        }
34
        else
35
        {
36
            command_actor[i].x += lengthdir_x(command_arg2[i] * command_arg3[i], (scr_facing_letter_to_number
scr_facing_letter_to_number

function scr_facing_letter_to_number(arg0) { if (arg0 == "d") return 0; if (arg0 == "r") return 1; if (arg0 == "l") return 3; if (arg0 == "u") return 2; }
(command_arg1[i]) * 90) - 90);
37
            command_actor[i].y += lengthdir_y(command_arg2[i] * command_arg3[i], (scr_facing_letter_to_number
scr_facing_letter_to_number

function scr_facing_letter_to_number(arg0) { if (arg0 == "d") return 0; if (arg0 == "r") return 1; if (arg0 == "l") return 3; if (arg0 == "u") return 2; }
(command_arg1[i]) * 90) - 90);
38
        }
39
    }
40
    if (_c == "walkdirect")
41
    {
42
        if (!instant)
43
        {
44
            actor_move = instance_create(0, 0, obj_move_to_point);
45
            actor_move.target = command_actor[i];
46
            actor_move.movex = command_arg1[i];
47
            actor_move.movey = command_arg2[i];
48
            actor_move.movemax = command_arg3[i];
49
            if (command_arg1[i] == 0)
50
                actor_move.movex = command_actor[i].x;
51
            if (command_arg2[i] == 0)
52
                actor_move.movey = command_actor[i].y;
53
        }
54
        else
55
        {
56
            command_actor[i].x = command_arg1[i];
57
            command_actor[i].y = command_arg2[i];
58
        }
59
    }
60
    if (_c == "msgset")
61
        msgset(command_arg1[i], command_arg2[i]);
62
    if (_c == "msgnext")
63
        msgnext(command_arg1[i]);
64
    if (_c == "talk")
65
    {
66
        if (!instant)
67
        {
68
            mydialoguer = instance_create(0, 0, obj_dialoguer);
69
            if (msgside >= 0)
70
                mydialoguer.side = msgside;
71
            mydialoguer.zurasu = zurasu;
72
        }
73
    }
74
    if (_c == "msgface")
75
        scr_anyface
scr_anyface

function scr_anyface(arg0, arg1, arg2) { _speakerC = arg0; _msgno = arg1; _emotion = arg2; if (is_real(arg2)) { if (arg2 >= 10) { if (arg2 < 36) _emotion = chr(55 + arg2); else emotion = chr(61 + arg2); } } _speaker = string_lower(_speakerC); if (_speaker == "susie" || _speaker == "sus") scr_susface(_msgno, _emotion); if (_speaker == "ralsei" || _speaker == "ral") scr_ralface(_msgno, _emotion); if (_speaker == "noelle" || _speaker == "noe") scr_noeface(_msgno, _emotion); if (_speaker == "toriel" || _speaker == "tor") scr_torface(_msgno, _emotion); if (_speaker == "asgore" || _speaker == "asg") scr_asgface(_msgno, _emotion); if (_speaker == "king" || _speaker == "kin") scr_kingface(_msgno, _emotion); if (_speaker == "rudy" || _speaker == "rud") scr_rudface(_msgno, _emotion); if (_speaker == "lancer" || _speaker == "lan") scr_lanface(_msgno, _emotion); if (_speaker == "berdly" || _speaker == "ber") msgsetsubloc(arg1, "\\TX \\F0 \\E~1 \\FB \\TB %", string(_emotion), "scr_anyface_slash_scr_anyface_gml_23_0"); if (_speaker == "alphys" || _speaker == "alp") msgsetsubloc(arg1, "\\TX \\F0 \\E~1 \\Fa \\Ta %", string(_emotion), "scr_anyface_slash_scr_anyface_gml_24_0"); if (_speaker == "none" || _speaker == "x" || _speaker == "no name" || _speaker == "no_name") scr_noface(_msgno); if (_speaker == "rouxls" || _speaker == "rou") scr_rurusface(_msgno, _emotion); if (_speaker == "queen" || _speaker == "que") msgsetsubloc(arg1, "\\TX \\F0 \\E~1 \\FQ \\TQ %", string(_emotion), "scr_anyface_slash_scr_anyface_gml_27_0"); if (_speaker == "queen2" || _speaker == "que2") msgsetsubloc(arg1, "\\TX \\F0 \\E~1 \\F0 \\Tq %", string(_emotion), "scr_anyface_slash_scr_anyface_gml_28_0_b"); if (_speaker == "sans" || _speaker == "san") msgsetsubloc(arg1, "\\TX \\F0 \\E~1 \\Fs \\Ts %", string(_emotion), "scr_anyface_slash_scr_anyface_gml_28_0"); if (_speaker == "undyne" || _speaker == "und") msgsetsubloc(arg1, "\\TX \\F0 \\E~1 \\FU \\TU %", string(_emotion), "scr_anyface_slash_scr_anyface_gml_29_0"); if (_speaker == "burgerpants") msgsetsubloc(arg1, "\\TX \\F0 \\E~1 \\Fb \\T0 %", string(_emotion), "scr_anyface_slash_scr_anyface_gml_30_0"); if (_speaker == "sneo") msgsetsub(arg1, "\\TX \\F0 \\E~1 \\Tp %", string(_emotion)); }
(command_arg1[i], command_arg2[i], command_arg3[i]);
76
    if (_c == "msgfacenext")
77
        scr_anyface_next
scr_anyface_next

function scr_anyface_next(arg0, arg1) { global.msgno++; scr_anyface(arg0, global.msgno, arg1); }
(command_arg1[i], command_arg2[i]);
78
    if (_c == "msgside")
79
    {
80
        if (command_arg1[i] == "any")
81
            msgside = -1;
82
        if (command_arg1[i] == "top")
83
            msgside = 0;
84
        if (command_arg1[i] == "bottom")
85
            msgside = 1;
86
        if (command_arg1[i] == "zurasuon")
87
            zurasu = 1;
88
        if (command_arg1[i] == "zurasuoff")
89
            zurasu = 0;
90
    }
91
    if (_c == "emote")
92
    {
93
        if (!instant)
94
        {
95
            command_actor[i].__arg0 = command_arg1[i];
96
            command_actor[i].__arg1 = command_arg2[i];
97
            command_actor[i].__arg2 = command_arg3[i];
98
            if (command_arg3[i] == 0)
99
            {
100
                with (command_actor[i])
101
                    scr_emote
scr_emote

function scr_emote() { __dmult = 1 + global.darkzone; __emotebubble = instance_create(x, y - 15, obj_excblcon); __emotebubble.alarm[0] = argument[1]; __emotebubble.image_xscale = __dmult; __emotebubble.image_yscale = __dmult; __emotexoff = 0; __anchorx = sprite_get_xoffset(sprite_index); if (argument[0] == "!") { __emotebubble.sprite_index = spr_exc; __emotebubble.y = y - (10 * __dmult); __emotexoff = 10 * __dmult; } if (argument[0] == "?") { __emotebubble.sprite_index = spr_emote_questionmark; __emotebubble.y = y - (10 * __dmult); __emotexoff = 10 * __dmult; } if (argument[0] == "...") { __emotebubble.sprite_index = spr_emote_ellipsis; __emotebubble.y = y - (10 * __dmult); __emotexoff = 10 * __dmult; } if (argument_count >= 3) __emotexoff = argument[2]; if (image_xscale > 0) __emotebubble.x = (((x - (__anchorx * image_xscale)) + ((sprite_width / 2) * sign(image_xscale))) - (__emotebubble.sprite_width / 2)) + __emotexoff; else __emotebubble.x = ((x + (__anchorx * image_xscale)) - ((sprite_width / 2) * sign(image_xscale)) - (__emotebubble.sprite_width / 2)) + __emotexoff; }
(__arg0, __arg1);
102
            }
103
            else
104
            {
105
                with (command_actor[i])
106
                    scr_emote
scr_emote

function scr_emote() { __dmult = 1 + global.darkzone; __emotebubble = instance_create(x, y - 15, obj_excblcon); __emotebubble.alarm[0] = argument[1]; __emotebubble.image_xscale = __dmult; __emotebubble.image_yscale = __dmult; __emotexoff = 0; __anchorx = sprite_get_xoffset(sprite_index); if (argument[0] == "!") { __emotebubble.sprite_index = spr_exc; __emotebubble.y = y - (10 * __dmult); __emotexoff = 10 * __dmult; } if (argument[0] == "?") { __emotebubble.sprite_index = spr_emote_questionmark; __emotebubble.y = y - (10 * __dmult); __emotexoff = 10 * __dmult; } if (argument[0] == "...") { __emotebubble.sprite_index = spr_emote_ellipsis; __emotebubble.y = y - (10 * __dmult); __emotexoff = 10 * __dmult; } if (argument_count >= 3) __emotexoff = argument[2]; if (image_xscale > 0) __emotebubble.x = (((x - (__anchorx * image_xscale)) + ((sprite_width / 2) * sign(image_xscale))) - (__emotebubble.sprite_width / 2)) + __emotexoff; else __emotebubble.x = ((x + (__anchorx * image_xscale)) - ((sprite_width / 2) * sign(image_xscale)) - (__emotebubble.sprite_width / 2)) + __emotexoff; }
(__arg0, __arg1, __arg2);
107
            }
108
        }
109
    }
110
    if (_c == "speaker")
111
        scr_speaker
scr_speaker

function scr_speaker(arg0) { _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
(command_arg1[i]);
112
    if (_c == "fe")
113
    {
114
        global.fe = command_arg1[i];
115
        if (command_arg2[i] != -2)
116
            global.fc = command_arg2[i];
117
    }
118
    if (_c == "msc")
119
    {
120
        global.msc = command_arg1[i];
121
        scr_text
scr_text

function scr_text(arg0) { switch (arg0) { case 0: break; case 10: global.choicemsg[0] = stringsetloc(
#Yes
"#Yes", "scr_text_slash_scr_text_gml_8_0"
); global.choicemsg[1] = stringsetloc(
#No
"#No", "scr_text_slash_scr_text_gml_9_0"
); global.choicemsg[2] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_12_0_b"
); global.choicemsg[3] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_13_0_b"
); global.msg[0] = stringsetloc(
* You really didn't want to throw it away.Wait for input
"* You really didn't want to throw it away./", "scr_text_slash_scr_text_gml_12_0"
); global.msg[1] = stringsetloc(
* Throw it away anyway?Wait for input
"* Throw it away anyway?/", "scr_text_slash_scr_text_gml_13_0"
); global.msg[2] = stringsetloc(
Choice type 2
"\\C2 ", "scr_text_slash_scr_text_gml_14_0"
); if (global.chapter >= 2) msgsetloc(0,
* You took it from your pocket.Delay 11
* You have a very,Delay 11 very,Delay 11 bad feeling about throwing it away.Wait for input
"* You took it from your pocket^1.&* You have a \\cYvery^1, very^1, bad feeling\\c0 about throwing it away./", "scr_text_slash_scr_text_gml_19_0"
); break; case 11: if (global.choice == 0) { global.flag[466 junkball_dropped] = 1; snd_play(snd_bageldefeat); global.msg[0] = stringsetloc(
* Hand shaking,Delay 11 you dropped the ball of junk on the ground.Wait for input
"* Hand shaking^1, you dropped the ball of junk on the ground./", "scr_text_slash_scr_text_gml_20_0"
); global.msg[1] = stringsetloc(
* It broke into pieces.Wait for input
"* It broke into pieces./", "scr_text_slash_scr_text_gml_21_0"
); global.msg[2] = stringsetloc(
* You felt bitter.Wait for inputClose Message
"* You felt bitter./%", "scr_text_slash_scr_text_gml_22_0"
); script_execute(scr_litemshift, global.menucoord[1], 0); for (i = 0; i < 12; i += 1) global.item[i] = 0; for (i = 0; i < 48; i += 1) { global.armor[i] = 0; global.weapon[i] = 0; } } else { global.msg[0] = stringsetloc(
* You felt a feeling of relief.Wait for inputClose Message
"* You felt a feeling of relief./%", "scr_text_slash_scr_text_gml_34_0"
); } break; case 100: global.msg[0] = stringsetloc(
* Hey, Kris!Delay 11 What's up?Delay 11
* Didja lose your pencil again?Wait for input
"* Hey, Kris^1! What's up^1?&* Didja lose your pencil again?/", "scr_text_slash_scr_text_gml_39_0"
); global.msg[1] = stringsetloc(
Face 4* Here,Delay 11 you want the candy-cane one or the one with lights on it?Wait for input
"\\E4* Here^1, you want the candy-cane one or the one with lights on it?/", "scr_text_slash_scr_text_gml_40_0"
); global.msg[2] = stringsetloc(
Face 1* Huh?Delay 11
* You want to be partners?Wait for input
"\\E1* Huh^1?&* You want to be partners?/", "scr_text_slash_scr_text_gml_41_0"
); global.msg[3] = stringsetloc(
Face 4* Ummm...Delay 11 Sorry...Delay 11
* Berdly already asked me...Wait for input
"\\E4* Ummm..^1. Sorry..^1.&* Berdly already asked me.../", "scr_text_slash_scr_text_gml_42_0"
); global.msg[4] = stringsetloc(
Face 0* But I could ask Ms. Alphys if we could make a group of 3!Wait for input
"\\E0* But I could ask Ms. Alphys if we could make a group of 3!/", "scr_text_slash_scr_text_gml_43_0"
); global.msg[5] = stringsetloc(
Face 4* I'll ask if you're sure!

Not yet Yes. Ask.Choice type 1
"\\E4* I'll ask if you're sure!& &Not yet Yes. Ask.\\C1 ", "scr_text_slash_scr_text_gml_44_0"
); global.msg[6] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_47_0"
); break; case 101: if (global.choice == 1) { global.msg[0] = stringsetloc(
Face 0* OK,Delay 11 I'll ask!Wait for input
"\\E0* OK^1, I'll ask!/", "scr_text_slash_scr_text_gml_51_0"
); global.msg[1] = stringsetloc(
* Miss Alphys!Delay 11
* Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message
"* Miss Alphys^1!&* Umm^1, is it OK if we have a group of 3?/%", "scr_text_slash_scr_text_gml_52_0"
); with (obj_classscene) con = 20; } if (global.choice == 0) global.msg[0] = stringsetloc(
Face 4* Yeah,Delay 11 I'm sure there's someone else you can ask!Wait for inputClose Message
"\\E4* Yeah^1, I'm sure there's someone else you can ask!/%", "scr_text_slash_scr_text_gml_57_0"
); break; case 102: global.msg[0] = stringsetloc(
Face 0* Do you wanna be partners?
Not yet YesChoice type 1
"\\E0* Do you wanna be partners?&Not yet Yes\\C1 ", "scr_text_slash_scr_text_gml_62_0"
); global.msg[1] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_65_0"
); break; case 103: if (global.choice == 1) { global.msg[0] = stringsetloc(
Face 0* OK,Delay 11 I'll ask!Wait for input
"\\E0* OK^1, I'll ask!/", "scr_text_slash_scr_text_gml_69_0"
); global.msg[1] = stringsetloc(
* Miss Alphys!Delay 11
* Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message
"* Miss Alphys^1!&* Umm^1, is it OK if we have a group of 3?/%", "scr_text_slash_scr_text_gml_70_0"
); with (obj_classscene) con = 20; } if (global.choice == 0) global.msg[0] = stringsetloc(
Face 4* Umm,Delay 11 OK.Delay 11
* You just keep doing your thing,Delay 11 Kris.Wait for inputClose Message
"\\E4* Umm^1, OK^1.&* You just keep doing your thing^1, Kris./%", "scr_text_slash_scr_text_gml_75_0"
); break; case 104: global.msg[0] = stringsetloc(
Face 0* Alright.Delay 11
* Let's get this over with.Wait for input
"\\E0* Alright^1.&* Let's get this over with./", "scr_text_slash_scr_text_gml_80_0"
); global.msg[1] = stringsetloc(
* We'll get more chalk.Delay 11
* Mosey back to class.Delay 11
* And then,Delay 11 Kris...Wait for input
"* We'll get more chalk^1.&* Mosey back to class^1.&* And then^1, Kris.../", "scr_text_slash_scr_text_gml_81_0"
); global.msg[2] = stringsetloc(
Face 2* YOU'LL do our project.Wait for input
"\\E2* YOU'LL do our project./", "scr_text_slash_scr_text_gml_82_0"
); global.msg[3] = stringsetloc(
* How's that sound?

Good BadChoice type 1
"* How's that sound?& &Good Bad\\C1 ", "scr_text_slash_scr_text_gml_83_0"
); global.msg[4] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_86_0"
); break; case 105: global.msg[0] = stringsetloc(
Close MessageClose Message
" %%", "scr_text_slash_scr_text_gml_90_0"
); break; case 110: global.choicemsg[0] = stringsetloc(
#Yes
"#Yes", "scr_text_slash_scr_text_gml_92_0"
); global.choicemsg[1] = stringsetloc(
#No
"#No", "scr_text_slash_scr_text_gml_93_0"
); global.choicemsg[2] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_96_0"
); global.choicemsg[3] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_97_0"
); if (global.flag[100 got_glowshard] == 0) { global.msg[0] = stringsetloc(
* (There's something glowing inside.)Wait for input
"* (There's something glowing inside.)/", "scr_text_slash_scr_text_gml_98_0"
); global.msg[1] = stringsetloc(
* (Take it?)Wait for input
"* (Take it?)/ ", "scr_text_slash_scr_text_gml_99_0"
); global.msg[2] = stringsetloc(
Choice type 2
" \\C2", "scr_text_slash_scr_text_gml_100_0"
); } else { global.msg[0] = stringsetloc(
* (It's dark inside.)Wait for inputClose Message
"* (It's dark inside.)/%", "scr_text_slash_scr_text_gml_104_0"
); } break; case 111: ...
(global.msc);
122
    }
123
    if (_c == "instancecreate")
124
    {
125
        _instance = instance_create(command_arg1[i], command_arg2[i], command_arg3[i]);
126
        if (i_ex(master_object))
127
            master_object.cutscene_instance = _instance;
128
    }
129
    if (_c == "var")
130
    {
131
        if (instant)
132
        {
133
            if (command_arg5[i] != 0)
134
            {
135
                command_arg3[i] = command_arg4[i];
136
                command_arg5[i] = 0;
137
            }
138
        }
139
        __chosenid = 0;
140
        if (command_arg1[i] == 0)
141
            __chosenid = command_actor[i];
142
        else
143
            __chosenid = command_arg1[i];
144
        if (command_arg5[i] == 0)
145
        {
146
            variable_instance_set(__chosenid, command_arg2[i], command_arg3[i]);
147
        }
148
        else if (command_arg6[i] == 0)
149
        {
150
            scr_lerpvar_instance
scr_lerpvar_instance

function scr_lerpvar_instance() { __lerpvar = instance_create(0, 0, obj_lerpvar); __lerpvar.target = argument[0]; __lerpvar.varname = argument[1]; __lerpvar.pointa = argument[2]; __lerpvar.pointb = argument[3]; __lerpvar.maxtime = argument[4]; if (argument_count >= 6) __lerpvar.easetype = argument[5]; if (argument_count >= 7) __lerpvar.easeinout = argument[6]; return __lerpvar; }
(__chosenid, command_arg2[i], command_arg3[i], command_arg4[i], command_arg5[i]);
151
        }
152
        else if (!is_string(command_arg6[i]))
153
        {
154
            scr_lerpvar_instance
scr_lerpvar_instance

function scr_lerpvar_instance() { __lerpvar = instance_create(0, 0, obj_lerpvar); __lerpvar.target = argument[0]; __lerpvar.varname = argument[1]; __lerpvar.pointa = argument[2]; __lerpvar.pointb = argument[3]; __lerpvar.maxtime = argument[4]; if (argument_count >= 6) __lerpvar.easetype = argument[5]; if (argument_count >= 7) __lerpvar.easeinout = argument[6]; return __lerpvar; }
(__chosenid, command_arg2[i], command_arg3[i], command_arg4[i], command_arg5[i], command_arg6[i], "in");
155
        }
156
        else
157
        {
158
            var __easetype = real(string_digits(command_arg6[i]));
159
            if (string_char_at(command_arg6[i], 1) == "-")
160
            {
161
                __easetype *= -1;
162
                command_arg6[i] = string_delete(command_arg6[i], 1, 1);
163
            }
164
            command_arg6[i] = string_delete(command_arg6[i], 1, 1);
165
            scr_lerpvar_instance
scr_lerpvar_instance

function scr_lerpvar_instance() { __lerpvar = instance_create(0, 0, obj_lerpvar); __lerpvar.target = argument[0]; __lerpvar.varname = argument[1]; __lerpvar.pointa = argument[2]; __lerpvar.pointb = argument[3]; __lerpvar.maxtime = argument[4]; if (argument_count >= 6) __lerpvar.easetype = argument[5]; if (argument_count >= 7) __lerpvar.easeinout = argument[6]; return __lerpvar; }
(__chosenid, command_arg2[i], command_arg3[i], command_arg4[i], command_arg5[i], __easetype, command_arg6[i]);
166
        }
167
    }
168
    if (_c == "script")
169
    {
170
        if (command_arg3[i] != -10)
171
        {
172
            var __sarg1 = command_arg2[i];
173
            var __sarg2 = command_arg3[i];
174
            var __sarg3 = command_arg4[i];
175
            var __sarg4 = command_arg5[i];
176
            var __sarg5 = command_arg6[i];
177
            var __sarg_counted = 3;
178
            if (command_arg4[i] == -3.14)
179
                __sarg_counted--;
180
            if (command_arg5[i] == -3.14)
181
                __sarg_counted--;
182
            if (command_arg6[i] == -3.14)
183
                __sarg_counted--;
184
            if (command_arg3[i] == 0)
185
            {
186
                if (__sarg_counted == 0)
187
                {
188
                    with (command_arg1[i])
189
                        script_execute(__sarg1);
190
                }
191
                if (__sarg_counted == 1)
192
                {
193
                    with (command_arg1[i])
194
                        script_execute(__sarg1, __sarg3);
195
                }
196
                if (__sarg_counted == 2)
197
                {
198
                    with (command_arg1[i])
199
                        script_execute(__sarg1, __sarg3, __sarg4);
200
                }
201
                if (__sarg_counted == 3)
202
                {
203
                    with (command_arg1[i])
204
                        script_execute(__sarg1, __sarg3, __sarg4, __sarg5);
205
                }
206
            }
207
            else
208
            {
209
                if (__sarg_counted == 0)
210
                {
211
                    with (command_arg1[i])
212
                        scr_script_repeat
scr_script_repeat

function scr_script_repeat() { var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = -2; __scriptdelay.max_time = argument[1]; __scriptdelay.rate = argument[2]; __scriptdelay.constant = 1; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 3); __i++) __scriptdelay.script_arg[__i] = argument[__i + 3]; __scriptdelay.arg_count = argument_count - 3; return __scriptdelay; }
(__sarg1, -1, __sarg2);
213
                }
214
                if (__sarg_counted == 1)
215
                {
216
                    with (command_arg1[i])
217
                        scr_script_repeat
scr_script_repeat

function scr_script_repeat() { var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = -2; __scriptdelay.max_time = argument[1]; __scriptdelay.rate = argument[2]; __scriptdelay.constant = 1; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 3); __i++) __scriptdelay.script_arg[__i] = argument[__i + 3]; __scriptdelay.arg_count = argument_count - 3; return __scriptdelay; }
(__sarg1, -1, __sarg2, __sarg3);
218
                }
219
                if (__sarg_counted == 2)
220
                {
221
                    with (command_arg1[i])
222
                        scr_script_repeat
scr_script_repeat

function scr_script_repeat() { var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = -2; __scriptdelay.max_time = argument[1]; __scriptdelay.rate = argument[2]; __scriptdelay.constant = 1; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 3); __i++) __scriptdelay.script_arg[__i] = argument[__i + 3]; __scriptdelay.arg_count = argument_count - 3; return __scriptdelay; }
(__sarg1, -1, __sarg2, __sarg3, __sarg4);
223
                }
224
                if (__sarg_counted == 3)
225
                {
226
                    with (command_arg1[i])
227
                        scr_script_repeat
scr_script_repeat

function scr_script_repeat() { var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = -2; __scriptdelay.max_time = argument[1]; __scriptdelay.rate = argument[2]; __scriptdelay.constant = 1; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 3); __i++) __scriptdelay.script_arg[__i] = argument[__i + 3]; __scriptdelay.arg_count = argument_count - 3; return __scriptdelay; }
(__sarg1, -1, __sarg2, __sarg3, __sarg4, __sarg5);
228
                }
229
            }
230
        }
231
        else
232
        {
233
            var __commandtarget = command_arg1[i];
234
            var __commandscript = command_arg2[i];
235
            with (obj_script_delayed)
236
            {
237
                if (script == __commandscript && target == __commandtarget)
238
                {
239
                    instance_destroy();
240
alarm[0]
241
                    max_time = -300;
242
                }
243
            }
244
        }
245
    }
246
    if (_c == "globalvar")
247
        variable_global_set(command_arg1[i], command_arg2[i]);
248
    if (_c == "autowalk")
249
    {
250
        command_actor[i].auto_facing = command_arg1[i];
251
        command_actor[i].auto_walk = command_arg1[i];
252
    }
253
    if (_c == "autofacing")
254
        command_actor[i].auto_facing = command_arg1[i];
255
    if (_c == "autodepth")
256
        command_actor[i].auto_depth = command_arg1[i];
257
    if (_c == "depth")
258
        command_actor[i].depth = command_arg1[i];
259
    if (_c == "depthobject")
260
        command_actor[i].depth = command_arg1[i].depth + command_arg2[i];
261
    if (_c == "flip")
262
    {
263
        command_actor[i].__flipvalue = command_arg1[i];
264
        with (command_actor[i])
265
            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; } }
(__flipvalue);
266
    }
267
    if (_c == "facing")
268
    {
269
        if (command_arg1[i] == "l" || command_arg1[i] == "d" || command_arg1[i] == "r" || command_arg1[i] == "u")
270
        {
271
            scr_actor_facing
scr_actor_facing

function scr_actor_facing(arg0, arg1) { __newfacing = arg1; arg0.facing = __newfacing; if (__newfacing == "d") arg0.sprite_index = arg0.dsprite; if (__newfacing == "r") arg0.sprite_index = arg0.rsprite; if (__newfacing == "l") arg0.sprite_index = arg0.lsprite; if (__newfacing == "u") arg0.sprite_index = arg0.usprite; }
(command_actor[i], command_arg1[i]);
272
        }
273
        else
274
        {
275
            command_actor[i]._setfacing = command_arg1[i];
276
            with (command_actor[i])
277
                scr_set_facing_sprites
scr_set_facing_sprites

function scr_set_facing_sprites(arg0) { _actorname = arg0; name = arg0; if (is_string(_actorname)) { if (_actorname == "kris") { name = "kris"; if (global.darkzone == 0) _actorname = "krislight"; if (global.darkzone == 1) _actorname = "krisdark"; } if (_actorname == "susie") { name = "susie"; if (global.darkzone == 0) { _actorname = "susielight"; if (global.chapter >= 2) _actorname = "susielighteyes"; } if (global.darkzone == 1) { if (global.chapter == 1) _actorname = "susiedark"; if (global.chapter >= 2) _actorname = "susiedarkeyes"; } } if (_actorname == "ralsei") { name = "ralsei"; if (global.chapter <= 1) _actorname = "ralseihat"; if (global.chapter > 1) _actorname = "ralseinohat"; } if (_actorname == "noelle") { name = "noelle"; if (global.darkzone == 0) _actorname = "noellelight"; if (global.darkzone == 1) _actorname = "noelledark"; } if (_actorname == "berdly") { name = "berdly"; if (global.darkzone == 0) _actorname = "berdlylight"; if (global.darkzone == 1) _actorname = "berdlydark"; } if (_actorname == "krislight") { usprite = spr_krisu; rsprite = spr_krisr; dsprite = spr_krisd; lsprite = spr_krisl; } if (_actorname == "krisdark") { usprite = spr_krisu_dark; rsprite = spr_krisr_dark; dsprite = spr_krisd_dark; lsprite = spr_krisl_dark; } if (_actorname == "susielight") { usprite = spr_susieu; rsprite = spr_susier; dsprite = spr_susied; lsprite = spr_susiel; } if (_actorname == "susielighteyes") { usprite = spr_susie_walk_up_lw; rsprite = spr_susie_walk_right_lw; dsprite = spr_susie_walk_down_lw; lsprite = spr_susie_walk_left_lw; } if (_actorname == "susiedark") { usprite = spr_susieu_dark; rsprite = spr_susier_dark; dsprite = spr_susied_dark; lsprite = spr_susiel_dark; specialsprite[4] = spr_susie_shock_r; specialsprite[5] = spr_susie_shock; } if (_actorname == "susiedarkeyes") { usprite = spr_susie_walk_up_dw; rsprite = spr_susie_walk_right_dw; dsprite = spr_susie_walk_down_dw; lsprite = spr_susie_walk_left_dw; specialsprite[4] = spr_susie_shock_r; specialsprite[5] = spr_susie_shock; } ...
(_setfacing);
278
        }
279
    }
280
    if (_c == "halt")
281
    {
282
        with (command_actor[i])
283
            scr_halt
scr_halt

function scr_halt() { image_index = 0; image_speed = 0; speed = 0; }
();
284
    }
285
    if (_c == "spin")
286
    {
287
        if (i_ex(command_actor[i]))
288
            command_actor[i].spinspeed = command_arg1[i];
289
    }
290
    if (_c == "stick")
291
    {
292
        if (command_arg1[i] == "on")
293
        {
294
            var _stickobj = command_arg2[i];
295
            var _stickdepth = command_arg3[i];
296
            with (command_actor[i])
297
                scr_stickto
scr_stickto

function scr_stickto(arg0, arg1) { _stickto = instance_create(0, 0, obj_stickto); _stickto.stickingobj = id; _stickto.stucktoobj = arg0; _stickto.relativedepth = arg1; with (_stickto) event_user(0); }
(_stickobj, _stickdepth);
298
        }
299
        else
300
        {
301
            with (command_actor[i])
302
                scr_stickto_stop
scr_stickto_stop

function scr_stickto_stop() { if (variable_instance_exists(id, "_stickto")) { with (_stickto) instance_destroy(); } }
();
303
        }
304
    }
305
    if (_c == "sprite")
306
        command_actor[i].sprite_index = command_arg1[i];
307
    if (_c == "specialsprite")
308
    {
309
        command_actor[i].sprite_index = command_actor[i].specialsprite[command_arg1[i]];
310
        command_actor[i].specialspriteno = command_arg1[i];
311
    }
312
    if (_c == "visible")
313
        command_actor[i].visible = command_arg1[i];
314
    if (_c == "imagespeed")
315
        command_actor[i].image_speed = command_arg1[i];
316
    if (_c == "imageindex")
317
        command_actor[i].image_index = command_arg1[i];
318
    if (_c == "animate")
319
    {
320
        if (i_ex(command_actor[i]) && !instant)
321
        {
322
            command_actor[i].__arg0 = command_arg1[i];
323
            command_actor[i].__arg1 = command_arg2[i];
324
            command_actor[i].__arg2 = command_arg3[i];
325
            with (command_actor[i])
326
                scr_animate
scr_animate

function scr_animate(arg0, arg1, arg2) { __animator = instance_create(x, y, obj_animator); __animator.target = id; __animator.initframe = arg0; __animator.endframe = arg1; __animator.fake_image_speed = arg2; return __animator; }
(__arg0, __arg1, __arg2);
327
        }
328
    }
329
    if (_c == "soundplay")
330
    {
331
        if (!instant)
332
        {
333
            var _snd = snd_play(command_arg1[i]);
334
            if (command_arg2[i] != 0)
335
                snd_volume(_snd, command_arg2[i], 0);
336
            if (command_arg2[i] != 0)
337
                snd_pitch(_snd, command_arg3[i]);
338
        }
339
    }
340
    if (_c == "mus" || _c == "music")
341
    {
342
        if (command_arg1[i] == "loop")
343
            mus_loop(global.currentsong[1]);
344
        if (command_arg1[i] == "play")
345
            mus_play(global.currentsong[1]);
346
        if (command_arg1[i] == "stop")
347
            snd_stop(global.currentsong[1]);
348
        if (command_arg1[i] == "free_all")
349
            snd_free_all();
350
        if (command_arg1[i] == "free")
351
            snd_free(global.currentsong[0]);
352
        if (command_arg1[i] == "pause")
353
            snd_pause(global.currentsong[1]);
354
        if (command_arg1[i] == "resume")
355
            snd_resume(global.currentsong[1]);
356
        if (command_arg1[i] == "init")
357
            global.currentsong[0] = snd_init(command_arg2[i]);
358
        if (command_arg1[i] == "initplay")
359
            mus_initplay(command_arg2[i]);
360
        if (command_arg1[i] == "initloop")
361
            mus_initloop(command_arg2[i]);
362
        if (command_arg1[i] == "volume")
363
            mus_volume(global.currentsong[1], command_arg2[i], command_arg3[i]);
364
        if (command_arg1[i] == "pitch")
365
            snd_pitch(global.currentsong[1], command_arg2[i]);
366
        if (command_arg1[i] == "pitchtime")
367
            snd_pitch_time(global.currentsong[1], command_arg2[i], command_arg3[i]);
368
        if (command_arg1[i] == "loopsfx")
369
            mysound = snd_loop(command_arg2[i]);
370
        if (command_arg1[i] == "loopsfxpitch")
371
            snd_pitch(mysound, command_arg2[i]);
372
        if (command_arg1[i] == "loopsfxpitchtime")
373
            snd_pitch_time(mysound, command_arg2[i], command_arg3[i]);
374
        if (command_arg1[i] == "loopsfxstop")
375
            snd_stop(mysound);
376
        if (command_arg1[i] == "loopsfxvolume")
377
            snd_volume(mysound, command_arg2[i], command_arg3[i]);
378
    }
379
    if (_c == "fadeout")
380
    {
381
        if (command_arg1[i] > 0)
382
        {
383
            __fadeouter = scr_fadeout
scr_fadeout

function scr_fadeout(arg0) { __fadeouter = instance_create(camerax() - 200, cameray() - 200, obj_fadeout); __fadeouter.fadespeed = 1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(command_arg1[i]);
384
            if (command_arg2[i] != 0)
385
                __fadeouter.image_blend = command_arg2[i];
386
        }
387
        if (command_arg1[i] < 0)
388
        {
389
            if (instance_exists(obj_fadeout))
390
            {
391
                obj_fadeout.image_alpha = 1;
392
                obj_fadeout.fadespeed = 1 / command_arg1[i];
393
                obj_fadeout.fadein = 1;
394
            }
395
        }
396
    }
397
    if (_c == "panspeed")
398
    {
399
        if (!instant)
400
        {
401
            scr_pan
scr_pan

function scr_pan(arg0, arg1, arg2) { panner = instance_create(0, 0, obj_panner); panner.panmax = arg2; panner.panx = arg0; panner.pany = arg1; }
(command_arg1[i], command_arg2[i], command_arg3[i]);
402
        }
403
        else
404
        {
405
            camerax_set(camerax() + (command_arg1[i] * command_arg3[i]));
406
            cameray_set(cameray() + (command_arg2[i] * command_arg3[i]));
407
        }
408
    }
409
    if (_c == "pan")
410
    {
411
        if (!instant)
412
        {
413
            scr_pan_lerp
scr_pan_lerp

function scr_pan_lerp(arg0, arg1, arg2) { panner = instance_create(arg0, arg1, obj_panner); panner.panmax = arg2; panner.type = 1; }
(command_arg1[i], command_arg2[i], command_arg3[i]);
414
        }
415
        else
416
        {
417
            camerax_set(command_arg1[i]);
418
            cameray_set(command_arg2[i]);
419
        }
420
    }
421
    if (_c == "panobj")
422
    {
423
        scr_pan_to_obj
scr_pan_to_obj

function scr_pan_to_obj(arg0, arg1) { _panx = arg0.x - floor((__view_get(e__VW.WView, 0) / 2) - (arg0.sprite_width / 2)); _pany = arg0.y - floor((__view_get(e__VW.HView, 0) / 2) - (arg0.sprite_height / 2)); if (_panx < 0) _panx = 0; if (_panx >= (room_width - __view_get(e__VW.WView, 0))) _panx = room_width - __view_get(e__VW.WView, 0); if (_pany < 0) _pany = 0; if (_pany >= (room_height - __view_get(e__VW.HView, 0))) _pany = room_height - __view_get(e__VW.HView, 0); scr_pan_lerp(_panx, _pany, arg1); } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
(command_arg1[i], command_arg2[i]);
424
        if (instant)
425
        {
426
            with (obj_panner)
427
            {
428
                camerax_set(finalx);
429
                cameray_set(finaly);
430
                instance_destroy();
431
            }
432
        }
433
    }
434
    if (_c == "pannable")
435
    {
436
        if (instance_exists(obj_mainchara))
437
            obj_mainchara.cutscene = command_arg1[i];
438
    }
439
    if (_c == "shake")
440
    {
441
        if (!instant)
442
            instance_create(0, 0, obj_shake);
443
    }
444
    if (_c == "shakex")
445
    {
446
        if (!instant)
447
        {
448
            myshake = instance_create(0, 0, obj_shake);
449
            myshake.shakex = command_arg1[i];
450
            myshake.shakey = command_arg2[i];
451
            myshake.shakespeed = command_arg3[i];
452
        }
453
    }
454
    if (_c == "shakeobj")
455
    {
456
        if (!instant)
457
        {
458
            with (command_actor[i])
459
                scr_shakeobj
scr_shakeobj

function scr_shakeobj() { shakeobj = instance_create(x, y, obj_shakeobj); shakeobj.target = id; with (shakeobj) event_user(0); }
();
460
        }
461
    }
462
    if (_c == "jump")
463
    {
464
        if (i_ex(command_actor[i]))
465
        {
466
            command_actor[i].__arg0 = command_arg1[i];
467
            command_actor[i].__arg1 = command_arg2[i];
468
            command_actor[i].__arg2 = command_arg3[i];
469
            command_actor[i].__arg3 = command_arg4[i];
470
            if (!instant)
471
            {
472
                with (command_actor[i])
473
                    scr_jump_to_point
scr_jump_to_point

function scr_jump_to_point(arg0, arg1, arg2, arg3) { return scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0); }
(__arg0, __arg1, __arg2, __arg3);
474
            }
475
            else
476
            {
477
                command_actor[i].x = command_arg1[i];
478
                command_actor[i].y = command_arg2[i];
479
            }
480
        }
481
    }
482
    if (_c == "jumpinplace")
483
    {
484
        if (i_ex(command_actor[i]))
485
        {
486
            command_actor[i].__arg0 = command_arg1[i];
487
            command_actor[i].__arg1 = command_arg2[i];
488
            if (!instant)
489
            {
490
                with (command_actor[i])
491
                    scr_jump_in_place
scr_jump_in_place

function scr_jump_in_place(arg0, arg1) { scr_jump_to_point(x, y, arg0, arg1); }
(__arg0, __arg1);
492
            }
493
        }
494
    }
495
    if (_c == "jumpsprite")
496
    {
497
        if (i_ex(command_actor[i]))
498
        {
499
            command_actor[i].__arg0 = command_arg1[i];
500
            command_actor[i].__arg1 = command_arg2[i];
501
            command_actor[i].__arg2 = command_arg3[i];
502
            command_actor[i].__arg3 = command_arg4[i];
503
            command_actor[i].__arg4 = command_arg5[i];
504
            command_actor[i].__arg5 = command_arg6[i];
505
            if (!instant)
506
            {
507
                with (command_actor[i])
508
                    scr_jump_to_point_sprite
scr_jump_to_point_sprite

function scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, arg4, arg5) { __jump_to_point = instance_create(x, y, obj_jump_to_point); __jump_to_point.target = id; with (__jump_to_point) { startx = x; starty = y; endx = arg0; endy = arg1; jumpspeed = arg2; jumptime = arg3; jumpsprite = arg4; landsprite = arg5; if (arg4 > 0) usesprites = 1; drawshadow = 0; } return __jump_to_point; }
(__arg0, __arg1, __arg2, __arg3, __arg4, __arg5);
509
            }
510
            else
511
            {
512
                command_actor[i].x = command_arg1[i];
513
                command_actor[i].y = command_arg2[i];
514
            }
515
        }
516
    }
517
    if (_c == "addxy")
518
    {
519
        command_actor[i].x += command_arg1[i];
520
        command_actor[i].y += command_arg2[i];
521
    }
522
    if (_c == "setxy")
523
    {
524
        command_actor[i].x = command_arg1[i];
525
        command_actor[i].y = command_arg2[i];
526
    }
527
    if (_c == "arg_objectxy")
528
    {
529
        command_arg1[i + 1] = command_arg1[i].x + command_arg2[i];
530
        command_arg2[i + 1] = command_arg1[i].y + command_arg3[i];
531
    }
532
    if (_c == "actortoobject")
533
    {
534
        instance_create(command_actor[i].x, command_actor[i].y, command_arg1[i]);
535
        command_actor[i].visible = 0;
536
    }
537
    if (_c == "actortokris")
538
    {
539
        for (jjj = 0; jjj < 20; jjj++)
540
        {
541
            if (actor_name[jjj] == "kris" && i_ex(actor_id[jjj]))
542
            {
543
                obj_mainchara.x = actor_id[jjj].x;
544
                obj_mainchara.y = actor_id[jjj].y;
545
                obj_mainchara.visible = 1;
546
                actor_id[jjj].visible = 0;
547
                if (actor_id[jjj].facing == "d")
548
                    global.facing = 0;
549
                if (actor_id[jjj].facing == "r")
550
                    global.facing = 1;
551
                if (actor_id[jjj].facing == "u")
552
                    global.facing = 2;
553
                if (actor_id[jjj].facing == "l")
554
                    global.facing = 3;
555
            }
556
        }
557
    }
558
    if (_c == "actortocaterpillar")
559
    {
560
        _caterpillar_moved = 0;
561
        for (lll = 0; lll < 2; lll++)
562
        {
563
            if (i_ex(global.cinstance[lll]))
564
            {
565
                for (jjj = 0; jjj < 20; jjj++)
566
                {
567
                    if (actor_name[jjj] == global.cinstance[lll].name && i_ex(actor_id[jjj]))
568
                    {
569
                        if (global.cinstance[lll].x != actor_id[jjj].x)
570
                        {
571
                            global.cinstance[lll].x = actor_id[jjj].x;
572
                            _caterpillar_moved = 1;
573
                        }
574
                        if (global.cinstance[lll].y != actor_id[jjj].y)
575
                        {
576
                            global.cinstance[lll].y = actor_id[jjj].y;
577
                            _caterpillar_moved = 1;
578
                        }
579
                        scr_caterpillar_facing_single
scr_caterpillar_facing_single

function scr_caterpillar_facing_single(arg0, arg1) { with (obj_caterpillarchara) { if (name == arg0) { for (i = 0; i < 25; i += 1) facing[i] = scr_facing_letter_to_number(arg1); } } }
(actor_name[jjj], actor_id[jjj].facing);
580
                        global.cinstance[lll].visible = 1;
581
                        actor_id[jjj].visible = 0;
582
                    }
583
                }
584
            }
585
        }
586
        if (_caterpillar_moved == 1)
587
        {
588
            with (obj_caterpillarchara)
589
                scr_caterpillar_interpolate
scr_caterpillar_interpolate

function scr_caterpillar_interpolate() { _newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y))); remx[0] = obj_mainchara.x; remy[0] = obj_mainchara.y; facing[0] = _newfacing; for (_iaia = target; _iaia > 0; _iaia -= 1) { remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target); if (global.darkzone == 1) remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target); else remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target); facing[_iaia] = _newfacing; } }
();
590
        }
591
    }
592
    if (_c == "saveload")
593
    {
594
        if (command_arg1[i] == "save")
595
            scr_cutscene_savestate
scr_cutscene_savestate

function scr_cutscene_savestate() { scr_debug_print("Cutscene Saved"); masterArray = variable_instance_get_names(id); for (var i = 0; i < array_length_1d(masterArray); i++) myVar[i] = variable_instance_get(id, masterArray[i]); remCameraX = camerax(); remCameraY = cameray(); for (var i = 0; i < 20; i++) { actorSaved[i] = 0; if (i_ex(actor_id[i])) { actorSaved[i] = 1; with (actor_id[i]) scr_instance_save_local_vars(); } } for (var i = 0; i < 10; i++) { objectSaved[i] = 0; if (i_ex(save_object[i])) { objectSaved[i] = 1; with (save_object[i]) scr_instance_save_local_vars(); } } }
();
596
        if (command_arg1[i] == "load")
597
            scr_cutscene_loadstate
scr_cutscene_loadstate

function scr_cutscene_loadstate() { scr_debug_print("Cutscene Loaded"); for (var i = 0; i < 20; i++) { if (i_ex(actor_id[i])) { if (actorSaved[i] == 1) { with (actor_id[i]) scr_instance_load_local_vars(); } } } for (var i = 0; i < 10; i++) { if (i_ex(save_object[i])) { if (objectSaved[i] == 1) { with (save_object[i]) scr_instance_load_local_vars(); } } } for (var i = 0; i < array_length_1d(masterArray); i++) variable_instance_set(id, masterArray[i], myVar[i]); camerax_set(remCameraX); cameray_set(remCameraY); with (obj_panner) instance_destroy(); with (obj_move_actor) instance_destroy(); with (obj_move_to_point) instance_destroy(); with (obj_shakeobj) instance_destroy(); with (obj_shake) instance_destroy(); with (obj_dialoguer) instance_destroy(); with (obj_writer) instance_destroy(); with (obj_face) instance_destroy(); with (obj_cutscene_delaycmd) instance_destroy(); with (obj_jump_to_point) instance_destroy(); with (obj_stickto) instance_destroy(); with (obj_lerpvar) instance_destroy(); loadedState = 1; waiting = 0; scr_cutscene_master_commands_initialize(); }
();
598
    }
599
    if (_c == "select")
600
    {
601
        actor_selected = actor_name[command_arg1[i]];
602
        actor_selected_id = actor_id[command_arg1[i]];
603
    }
604
    if (_c == "waitcustom")
605
    {
606
        with (master_object)
607
            customcon = 1;
608
        cs_wait_custom = 1;
609
        waiting = 1;
610
        breakme = 1;
611
    }
612
    if (_c == "waitdialoguer")
613
    {
614
        if (!instant)
615
        {
616
            waiting = 1;
617
            cs_wait_dialogue = 1;
618
            breakme = 1;
619
        }
620
    }
621
    if (_c == "waitbox")
622
    {
623
        if (!instant)
624
        {
625
            waiting = 1;
626
            cs_wait_box = command_arg1[i];
627
            breakme = 1;
628
        }
629
    }
630
    if (_c == "wait")
631
    {
632
        cs_wait_amount = command_arg1[i];
633
        if (instant)
634
            cs_wait_amount = 1;
635
        cs_wait_timer = 0;
636
        waiting = 1;
637
        breakme = 1;
638
    }
639
    if (_c == "terminate")
640
    {
641
        terminate_this_frame = 1;
642
        breakme = 1;
643
    }
644
    if (_c == "terminatekillactors")
645
    {
646
        kill_actors = 1;
647
        terminate_this_frame = 1;
648
        breakme = 1;
649
    }
650
}