Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_dw_cliff_silver_hammer_Step_0

related scripts: Create_0Draw_0Other_11Step_0 Step_1Step_2

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

function
scr_populatechars()
{ if (!variable_instance_exists(id, "kris")) kris = 0; if (!variable_instance_exists(id, "ralsei")) ralsei = 0; if (!variable_instance_exists(id, "susie")) susie = 0; if (!variable_instance_exists(id, "noelle")) noelle = 0; if (kris == 0) { with (obj_mainchara) other.kris = id; } if (susie == 0) { with (obj_caterpillarchara) { if (name == "susie") other.susie = id; } } if (ralsei == 0) { with (obj_caterpillarchara) { if (name == "ralsei") other.ralsei = id; } } if (noelle == 0) { with (obj_caterpillarchara) { if (name == "noelle") other.noelle = id; } } }
();
2
if (!init)
3
{
4
    doIdle = function()
5
    {
6
        with (ferroll.marker)
7
        {
8
            sprite_index = spr_npc_ferroll_idle;
9
            image_index = 0;
10
            image_speed = 1/15;
11
        }
12
    };
13
    
14
    powerup = function()
15
    {
16
        with (ferroll.marker)
17
        {
18
            sprite_index = spr_npc_ferroll_powerup;
19
            image_index = 0;
20
            image_speed = 0.35;
21
        }
22
    };
23
    
24
    dohammer = function(arg0 = true)
25
    {
26
        var fer = ferroll.marker;
27
        with (ferroll.marker)
28
        {
29
            var damagefunc = function()
30
            {
31
                with (instance_create(x + 112, y + 90, obj_dmgwriter))
32
                {
33
                    damage = 6;
34
                    snd_play(snd_hurt1);
35
                }
36
            };
37
            
38
            smashcount++;
39
            sprite_index = spr_npc_ferroll_hammer;
40
            image_index = 0;
41
            image_speed = 0;
42
            scr_delay_var("image_index", 1, 5);
43
            scr_delay_var("image_index", 2, 7);
44
            var pitch = 1;
45
            if ((smashcount % 2) == 0)
46
                pitch = 1.1;
47
            snd_play_delay(snd_squeaky, 6, 1, pitch);
48
            if (arg0)
49
            {
50
                delay_function(damagefunc, 6);
51
            }
52
            else
53
            {
54
                var smash = function()
55
                {
56
                    with (obj_dw_cliff_silver_hammer)
57
                    {
58
                        with (smashmarker)
59
                        {
60
                            image_index++;
61
                            
scr_debug_print
scr_debug_print

function
scr_debug_print()
{ if (!
scr_debug())
exit; } function scr_debug_clear_all() { }
(image_index);
62
                        }
63
                    }
64
                };
65
                
66
                delay_function(smash, 7);
67
            }
68
            delay_function(scr_shakescreen, 7);
69
            scr_delay_var("image_index", 3, 9);
70
            scr_delay_var("image_index", 4, 11);
71
            scr_delay_var("image_index", 5, 13);
72
        }
73
    };
74
    
75
    smashparty = function()
76
    {
77
        con = 20;
78
        timer = 0;
79
    };
80
    
81
    smashmoney = function()
82
    {
83
        con = 40;
84
        timer = 0;
85
    };
86
    
87
    doIdle();
88
    init = 1;
89
}
90
var havemoney = (global.gold >= 50) ? true : false;
91
if (con == 0)
92
{
93
    if (ferroll.myinteract == 3)
94
    {
95
        scr_flag_set_ext(1762, 1, 1, 2);
96
        global.interact = 1;
97
        con = 1;
98
        ferroll.myinteract = 99;
99
        
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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
100
        msgsetloc(0, 
* Achoo!Delay 11 I am the GREAT SMITH,Delay 11 FERROLL.Wait for input
"* Achoo^1! I am the GREAT SMITH^1, FERROLL./", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_152_0"
);
101
        msgnextloc(
* Give me anything,Delay 11 and I'll show you my GREAT STRENGTH.Wait for input
"* Give me anything^1, and I'll show you my GREAT STRENGTH./", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_153_0"
);
102
        var opt1 = stringsetloc(
#Give $50
"#Give $50", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_154_0"
);
103
        var opt2 = stringsetloc(
#Massage
"#Massage", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_155_0"
);
104
        var opt3 = stringsetloc(
Nothing
"Nothing", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_156_0"
);
105
        if (!havemoney)
106
            opt3 = "#" + opt3;
107
        if (havemoney)
108
            
scr_readychoicer
scr_readychoicer

function
scr_readychoicer(arg0 = "", arg1 = "", arg2 = "", arg3 = "", arg4 = -1, arg5 = -1)
{ global.msc = -99; global.choice = -1; global.choicemsg = [arg0, arg1, arg2, arg3]; var count = 2; if (arg2 != "") count++; if (arg3 != "") count++; var chooseString = "\\C" + string(count); if (arg4 == -1 && instance_exists(obj_cutscene_master)) arg4 = true; if (arg5) { if (arg4)
c_msgset(0, chooseString);
else msgset(0, chooseString); } else if (arg4) {
c_msgnext(chooseString);
} else { msgnext(chooseString); } }
(opt1, opt2, opt3);
109
        else
110
            
scr_readychoicer
scr_readychoicer

function
scr_readychoicer(arg0 = "", arg1 = "", arg2 = "", arg3 = "", arg4 = -1, arg5 = -1)
{ global.msc = -99; global.choice = -1; global.choicemsg = [arg0, arg1, arg2, arg3]; var count = 2; if (arg2 != "") count++; if (arg3 != "") count++; var chooseString = "\\C" + string(count); if (arg4 == -1 && instance_exists(obj_cutscene_master)) arg4 = true; if (arg5) { if (arg4)
c_msgset(0, chooseString);
else msgset(0, chooseString); } else if (arg4) {
c_msgnext(chooseString);
} else { msgnext(chooseString); } }
(opt2, opt3);
111
        d_make(0);
112
    }
113
}
114
if (con == 1 && global.choice != -1)
115
{
116
    var shouldnt = stringsetloc(
* (You probably shouldn't.)Wait for inputClose Message
"* (You probably shouldn't.)/%", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_167_0"
);
117
    if (havemoney && global.choice == 0)
118
    {
119
        if (!moneysmashed)
120
        {
121
            con = 4.1;
122
        }
123
        else
124
        {
125
            k_d(1);
126
            
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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
127
            msgset(0, shouldnt);
128
            d_make(0);
129
            con = 99;
130
        }
131
    }
132
    else if ((!havemoney && global.choice == 0) || (havemoney && global.choice == 1))
133
    {
134
        if (!partysmashed)
135
        {
136
            k_d(3);
137
            
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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
138
            msgsetloc(0, 
* That's right.Delay 11 Your body is a mountain as well.Wait for input
"* That's right^1. Your body is a mountain as well./", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_191_0"
);
139
            msgnextloc(
* It must be rugged...Delay 11 powerful...Wait for input
"* It must be rugged..^1. powerful.../", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_192_0"
);
140
            msgnextloc(
* And what better way to sculpt it,Delay 11 than the smashing of metal!?Wait for inputClose Message
"* And what better way to sculpt it^1, than the smashing of metal!?/%", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_193_0"
);
141
            d_make(0);
142
            con = 1.2;
143
        }
144
        else
145
        {
146
            k_d(1);
147
            
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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
148
            msgset(0, shouldnt);
149
            d_make(0);
150
            con = 99;
151
        }
152
    }
153
    else
154
    {
155
        k_d();
156
        con = 99;
157
    }
158
}
159
if (con == 4.1)
160
{
161
    global.facing = 2;
162
    global.interact = 1;
163
    snd_play(snd_item);
164
    smashmarker = scr_marker_fromasset(findsprite(spr_dw_cliff_silver_hammer_coinStack), undefined, 1);
165
    smashmarker.image_speed = 0;
166
    smashmarker.image_index = 0;
167
    global.gold -= 50;
168
    k_d(1);
169
    
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; }
();
170
    
scr_maincharacters_actors
scr_maincharacters_actors

function
scr_maincharacters_actors()
{ if (i_ex(obj_plat_player)) { scr_maincharacters_actors_plat(); exit; } 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; } } } }
();
171
    var kr1 = kr_actor;
172
    var su1 = su_actor;
173
    var ra1 = ra_actor;
174
    var su2 = findspriteinfo(spr_susie_up_dw, "CUT1", undefined, undefined);
175
    var ra2 = findspriteinfo(spr_ralsei_walk_up, "CUT1", undefined, undefined);
176
    var kr2 = findspriteinfo(spr_krisu_dark, "CUT1", undefined, undefined);
177
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
178
    var wait1 = 
c_walkto_straight
c_walkto_straight

function
c_walkto_straight(arg0 = 
{ x: 0, y: 0 }, arg1 = { x: 40, y: 40 }, arg2 = 4, arg3 = 0, arg4 = "") { var disth = max(round(abs(arg0.x - arg1.x) / arg2), 1); var distv = max(round(abs(arg0.y - arg1.y) / arg2), 1); if (arg3 == 0) { if (distv > 0)
c_walkdirect(arg0.x, arg1.y, distv);
if (disth > 0)
c_delaywalkdirect(distv + 1, arg1.x, arg1.y, disth);
} else { if (distv > 0)
c_walkdirect(arg1.x, arg0.y, disth);
if (disth > 0)
c_delaywalkdirect(disth + 1, arg1.x, arg1.y, distv);
} var toface = "-1"; if (is_string(arg4)) { if (arg4 == "u" || arg4 == "U" || arg4 == "r" || arg4 == "R" || arg4 == "d" || arg4 == "D" || arg4 == "l" || arg4 == "L") toface = string_lower(arg4); } else { switch (arg4) { case 0: toface = "d"; break; case 1: toface = "r"; break; case 2: toface = "u"; break; case 3: toface = "l"; break; } } if (toface != "-1")
c_delayfacing(disth + distv + 1, toface);
return disth + distv; } function c_walktostraight_list(arg0, arg1 = [], arg2 = "-1", arg3 = 4) { var totalwait = 0; for (var i = 0; i < array_length(arg1); i++) { var pref = "h"; if (variable_struct_exists(arg1[i], "pref")) { if ((is_string(arg1[i].pref) && (arg1[i].pref == "v" || arg1[i].pref == "V")) || arg1[i].pref == 0) pref = "v"; } var st = arg0; if (i > 0) st = arg1[i - 1].inst; var ed = arg1[i].inst; var thisspd = arg3; if (variable_struct_exists(arg1[i], "spd")) thisspd = arg1[i].spd; var disth = max(round(abs(st.x - ed.x) / thisspd), 0); var distv = max(round(abs(st.y - ed.y) / thisspd), 0); if (pref == "h") { if (disth > 0) { if (totalwait == 0)
c_walkdirect(ed.x, st.y, disth);
else
c_delaywalkdirect(totalwait, ed.x, st.y, disth);
totalwait += disth; show_debug_message_concat(i, ", distv=", disth); } if (distv > 0) { if (totalwait == 0)
c_walkdirect(ed.x, ed.y, distv);
else
c_delaywalkdirect(totalwait, ed.x, ed.y, distv);
totalwait += distv; } } else { if (distv > 0) { if (totalwait == 0)
c_walkdirect(st.x, ed.y, distv);
...
(kr1, kr2, 4, undefined, "u");
179
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
180
    var wait2 = 
c_walkto_straight
c_walkto_straight

function
c_walkto_straight(arg0 = 
{ x: 0, y: 0 }, arg1 = { x: 40, y: 40 }, arg2 = 4, arg3 = 0, arg4 = "") { var disth = max(round(abs(arg0.x - arg1.x) / arg2), 1); var distv = max(round(abs(arg0.y - arg1.y) / arg2), 1); if (arg3 == 0) { if (distv > 0)
c_walkdirect(arg0.x, arg1.y, distv);
if (disth > 0)
c_delaywalkdirect(distv + 1, arg1.x, arg1.y, disth);
} else { if (distv > 0)
c_walkdirect(arg1.x, arg0.y, disth);
if (disth > 0)
c_delaywalkdirect(disth + 1, arg1.x, arg1.y, distv);
} var toface = "-1"; if (is_string(arg4)) { if (arg4 == "u" || arg4 == "U" || arg4 == "r" || arg4 == "R" || arg4 == "d" || arg4 == "D" || arg4 == "l" || arg4 == "L") toface = string_lower(arg4); } else { switch (arg4) { case 0: toface = "d"; break; case 1: toface = "r"; break; case 2: toface = "u"; break; case 3: toface = "l"; break; } } if (toface != "-1")
c_delayfacing(disth + distv + 1, toface);
return disth + distv; } function c_walktostraight_list(arg0, arg1 = [], arg2 = "-1", arg3 = 4) { var totalwait = 0; for (var i = 0; i < array_length(arg1); i++) { var pref = "h"; if (variable_struct_exists(arg1[i], "pref")) { if ((is_string(arg1[i].pref) && (arg1[i].pref == "v" || arg1[i].pref == "V")) || arg1[i].pref == 0) pref = "v"; } var st = arg0; if (i > 0) st = arg1[i - 1].inst; var ed = arg1[i].inst; var thisspd = arg3; if (variable_struct_exists(arg1[i], "spd")) thisspd = arg1[i].spd; var disth = max(round(abs(st.x - ed.x) / thisspd), 0); var distv = max(round(abs(st.y - ed.y) / thisspd), 0); if (pref == "h") { if (disth > 0) { if (totalwait == 0)
c_walkdirect(ed.x, st.y, disth);
else
c_delaywalkdirect(totalwait, ed.x, st.y, disth);
totalwait += disth; show_debug_message_concat(i, ", distv=", disth); } if (distv > 0) { if (totalwait == 0)
c_walkdirect(ed.x, ed.y, distv);
else
c_delaywalkdirect(totalwait, ed.x, ed.y, distv);
totalwait += distv; } } else { if (distv > 0) { if (totalwait == 0)
c_walkdirect(st.x, ed.y, distv);
...
(ra1, ra2, 4, undefined, "u");
181
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
182
    var wait3 = 
c_walkto_straight
c_walkto_straight

function
c_walkto_straight(arg0 = 
{ x: 0, y: 0 }, arg1 = { x: 40, y: 40 }, arg2 = 4, arg3 = 0, arg4 = "") { var disth = max(round(abs(arg0.x - arg1.x) / arg2), 1); var distv = max(round(abs(arg0.y - arg1.y) / arg2), 1); if (arg3 == 0) { if (distv > 0)
c_walkdirect(arg0.x, arg1.y, distv);
if (disth > 0)
c_delaywalkdirect(distv + 1, arg1.x, arg1.y, disth);
} else { if (distv > 0)
c_walkdirect(arg1.x, arg0.y, disth);
if (disth > 0)
c_delaywalkdirect(disth + 1, arg1.x, arg1.y, distv);
} var toface = "-1"; if (is_string(arg4)) { if (arg4 == "u" || arg4 == "U" || arg4 == "r" || arg4 == "R" || arg4 == "d" || arg4 == "D" || arg4 == "l" || arg4 == "L") toface = string_lower(arg4); } else { switch (arg4) { case 0: toface = "d"; break; case 1: toface = "r"; break; case 2: toface = "u"; break; case 3: toface = "l"; break; } } if (toface != "-1")
c_delayfacing(disth + distv + 1, toface);
return disth + distv; } function c_walktostraight_list(arg0, arg1 = [], arg2 = "-1", arg3 = 4) { var totalwait = 0; for (var i = 0; i < array_length(arg1); i++) { var pref = "h"; if (variable_struct_exists(arg1[i], "pref")) { if ((is_string(arg1[i].pref) && (arg1[i].pref == "v" || arg1[i].pref == "V")) || arg1[i].pref == 0) pref = "v"; } var st = arg0; if (i > 0) st = arg1[i - 1].inst; var ed = arg1[i].inst; var thisspd = arg3; if (variable_struct_exists(arg1[i], "spd")) thisspd = arg1[i].spd; var disth = max(round(abs(st.x - ed.x) / thisspd), 0); var distv = max(round(abs(st.y - ed.y) / thisspd), 0); if (pref == "h") { if (disth > 0) { if (totalwait == 0)
c_walkdirect(ed.x, st.y, disth);
else
c_delaywalkdirect(totalwait, ed.x, st.y, disth);
totalwait += disth; show_debug_message_concat(i, ", distv=", disth); } if (distv > 0) { if (totalwait == 0)
c_walkdirect(ed.x, ed.y, distv);
else
c_delaywalkdirect(totalwait, ed.x, ed.y, distv);
totalwait += distv; } } else { if (distv > 0) { if (totalwait == 0)
c_walkdirect(st.x, ed.y, distv);
...
(su1, su2, 4, undefined, "u");
183
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(max(wait1, wait2, wait3) + 1);
184
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("no_name");
185
    
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,
* Achoo!Delay 11 Behold my technique!Wait for inputClose Message
"* Achoo^1! Behold my technique!/%", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_244_0"
);
186
    
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
187
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(1);
188
    
c_actortokris
c_actortokris

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

function
c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
} function c_actortocaterpillarstill() {
c_cmd("actortocaterpillarstill", 0, 0, 0, 0);
}
();
190
    
c_customfunc
c_customfunc

function
c_customfunc(arg0, arg1 = -1)
{ if (instance_exists(obj_cutscene_master)) { with (obj_cutscene_master) array_push(customfuncs, arg0);
c_cmd("customfunc", arg1, 0, 0, 0);
} }
(function()
191
    {
192
        
scr_caterpillar_facing
scr_caterpillar_facing

function
scr_caterpillar_facing(arg0)
{ with (obj_caterpillarchara) { for (i = 0; i < 25; i += 1) facing[i] = arg0; } }
("ralsei", "u");
193
        
scr_caterpillar_facing
scr_caterpillar_facing

function
scr_caterpillar_facing(arg0)
{ with (obj_caterpillarchara) { for (i = 0; i < 25; i += 1) facing[i] = arg0; } }
("susie", "u");
194
    });
195
    
c_terminatekillactors
c_terminatekillactors

function
c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
}
();
196
    
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);
} } }
("ralsei", "u");
197
    
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);
} } }
("susie", "u");
198
    con = 1.1;
199
}
200
if (con == 1.1 && !instance_exists(obj_cutscene_master))
201
{
202
    coincon = 1;
203
    timer = 0;
204
    con = -1;
205
}
206
if (con == 1.2 && !d_ex())
207
{
208
    global.facing = 2;
209
    global.interact = 1;
210
    k_d(1);
211
    
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; }
();
212
    
scr_maincharacters_actors
scr_maincharacters_actors

function
scr_maincharacters_actors()
{ if (i_ex(obj_plat_player)) { scr_maincharacters_actors_plat(); exit; } 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; } } } }
();
213
    var kr1 = kr_actor;
214
    var su1 = su_actor;
215
    var ra1 = ra_actor;
216
    var su2 = findspriteinfo(spr_susie_up_dw, "CUT1", undefined, undefined);
217
    var ra2 = findspriteinfo(spr_ralsei_walk_up, "CUT1", undefined, undefined);
218
    var kr2 = findspriteinfo(spr_krisu_dark, "CUT1", undefined, undefined);
219
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
220
    var wait1 = 
c_walkto_straight
c_walkto_straight

function
c_walkto_straight(arg0 = 
{ x: 0, y: 0 }, arg1 = { x: 40, y: 40 }, arg2 = 4, arg3 = 0, arg4 = "") { var disth = max(round(abs(arg0.x - arg1.x) / arg2), 1); var distv = max(round(abs(arg0.y - arg1.y) / arg2), 1); if (arg3 == 0) { if (distv > 0)
c_walkdirect(arg0.x, arg1.y, distv);
if (disth > 0)
c_delaywalkdirect(distv + 1, arg1.x, arg1.y, disth);
} else { if (distv > 0)
c_walkdirect(arg1.x, arg0.y, disth);
if (disth > 0)
c_delaywalkdirect(disth + 1, arg1.x, arg1.y, distv);
} var toface = "-1"; if (is_string(arg4)) { if (arg4 == "u" || arg4 == "U" || arg4 == "r" || arg4 == "R" || arg4 == "d" || arg4 == "D" || arg4 == "l" || arg4 == "L") toface = string_lower(arg4); } else { switch (arg4) { case 0: toface = "d"; break; case 1: toface = "r"; break; case 2: toface = "u"; break; case 3: toface = "l"; break; } } if (toface != "-1")
c_delayfacing(disth + distv + 1, toface);
return disth + distv; } function c_walktostraight_list(arg0, arg1 = [], arg2 = "-1", arg3 = 4) { var totalwait = 0; for (var i = 0; i < array_length(arg1); i++) { var pref = "h"; if (variable_struct_exists(arg1[i], "pref")) { if ((is_string(arg1[i].pref) && (arg1[i].pref == "v" || arg1[i].pref == "V")) || arg1[i].pref == 0) pref = "v"; } var st = arg0; if (i > 0) st = arg1[i - 1].inst; var ed = arg1[i].inst; var thisspd = arg3; if (variable_struct_exists(arg1[i], "spd")) thisspd = arg1[i].spd; var disth = max(round(abs(st.x - ed.x) / thisspd), 0); var distv = max(round(abs(st.y - ed.y) / thisspd), 0); if (pref == "h") { if (disth > 0) { if (totalwait == 0)
c_walkdirect(ed.x, st.y, disth);
else
c_delaywalkdirect(totalwait, ed.x, st.y, disth);
totalwait += disth; show_debug_message_concat(i, ", distv=", disth); } if (distv > 0) { if (totalwait == 0)
c_walkdirect(ed.x, ed.y, distv);
else
c_delaywalkdirect(totalwait, ed.x, ed.y, distv);
totalwait += distv; } } else { if (distv > 0) { if (totalwait == 0)
c_walkdirect(st.x, ed.y, distv);
...
(kr1, kr2, 4, undefined, "u");
221
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
222
    var wait2 = 
c_walkto_straight
c_walkto_straight

function
c_walkto_straight(arg0 = 
{ x: 0, y: 0 }, arg1 = { x: 40, y: 40 }, arg2 = 4, arg3 = 0, arg4 = "") { var disth = max(round(abs(arg0.x - arg1.x) / arg2), 1); var distv = max(round(abs(arg0.y - arg1.y) / arg2), 1); if (arg3 == 0) { if (distv > 0)
c_walkdirect(arg0.x, arg1.y, distv);
if (disth > 0)
c_delaywalkdirect(distv + 1, arg1.x, arg1.y, disth);
} else { if (distv > 0)
c_walkdirect(arg1.x, arg0.y, disth);
if (disth > 0)
c_delaywalkdirect(disth + 1, arg1.x, arg1.y, distv);
} var toface = "-1"; if (is_string(arg4)) { if (arg4 == "u" || arg4 == "U" || arg4 == "r" || arg4 == "R" || arg4 == "d" || arg4 == "D" || arg4 == "l" || arg4 == "L") toface = string_lower(arg4); } else { switch (arg4) { case 0: toface = "d"; break; case 1: toface = "r"; break; case 2: toface = "u"; break; case 3: toface = "l"; break; } } if (toface != "-1")
c_delayfacing(disth + distv + 1, toface);
return disth + distv; } function c_walktostraight_list(arg0, arg1 = [], arg2 = "-1", arg3 = 4) { var totalwait = 0; for (var i = 0; i < array_length(arg1); i++) { var pref = "h"; if (variable_struct_exists(arg1[i], "pref")) { if ((is_string(arg1[i].pref) && (arg1[i].pref == "v" || arg1[i].pref == "V")) || arg1[i].pref == 0) pref = "v"; } var st = arg0; if (i > 0) st = arg1[i - 1].inst; var ed = arg1[i].inst; var thisspd = arg3; if (variable_struct_exists(arg1[i], "spd")) thisspd = arg1[i].spd; var disth = max(round(abs(st.x - ed.x) / thisspd), 0); var distv = max(round(abs(st.y - ed.y) / thisspd), 0); if (pref == "h") { if (disth > 0) { if (totalwait == 0)
c_walkdirect(ed.x, st.y, disth);
else
c_delaywalkdirect(totalwait, ed.x, st.y, disth);
totalwait += disth; show_debug_message_concat(i, ", distv=", disth); } if (distv > 0) { if (totalwait == 0)
c_walkdirect(ed.x, ed.y, distv);
else
c_delaywalkdirect(totalwait, ed.x, ed.y, distv);
totalwait += distv; } } else { if (distv > 0) { if (totalwait == 0)
c_walkdirect(st.x, ed.y, distv);
...
(ra1, ra2, 4, undefined, "u");
223
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
224
    var wait3 = 
c_walkto_straight
c_walkto_straight

function
c_walkto_straight(arg0 = 
{ x: 0, y: 0 }, arg1 = { x: 40, y: 40 }, arg2 = 4, arg3 = 0, arg4 = "") { var disth = max(round(abs(arg0.x - arg1.x) / arg2), 1); var distv = max(round(abs(arg0.y - arg1.y) / arg2), 1); if (arg3 == 0) { if (distv > 0)
c_walkdirect(arg0.x, arg1.y, distv);
if (disth > 0)
c_delaywalkdirect(distv + 1, arg1.x, arg1.y, disth);
} else { if (distv > 0)
c_walkdirect(arg1.x, arg0.y, disth);
if (disth > 0)
c_delaywalkdirect(disth + 1, arg1.x, arg1.y, distv);
} var toface = "-1"; if (is_string(arg4)) { if (arg4 == "u" || arg4 == "U" || arg4 == "r" || arg4 == "R" || arg4 == "d" || arg4 == "D" || arg4 == "l" || arg4 == "L") toface = string_lower(arg4); } else { switch (arg4) { case 0: toface = "d"; break; case 1: toface = "r"; break; case 2: toface = "u"; break; case 3: toface = "l"; break; } } if (toface != "-1")
c_delayfacing(disth + distv + 1, toface);
return disth + distv; } function c_walktostraight_list(arg0, arg1 = [], arg2 = "-1", arg3 = 4) { var totalwait = 0; for (var i = 0; i < array_length(arg1); i++) { var pref = "h"; if (variable_struct_exists(arg1[i], "pref")) { if ((is_string(arg1[i].pref) && (arg1[i].pref == "v" || arg1[i].pref == "V")) || arg1[i].pref == 0) pref = "v"; } var st = arg0; if (i > 0) st = arg1[i - 1].inst; var ed = arg1[i].inst; var thisspd = arg3; if (variable_struct_exists(arg1[i], "spd")) thisspd = arg1[i].spd; var disth = max(round(abs(st.x - ed.x) / thisspd), 0); var distv = max(round(abs(st.y - ed.y) / thisspd), 0); if (pref == "h") { if (disth > 0) { if (totalwait == 0)
c_walkdirect(ed.x, st.y, disth);
else
c_delaywalkdirect(totalwait, ed.x, st.y, disth);
totalwait += disth; show_debug_message_concat(i, ", distv=", disth); } if (distv > 0) { if (totalwait == 0)
c_walkdirect(ed.x, ed.y, distv);
else
c_delaywalkdirect(totalwait, ed.x, ed.y, distv);
totalwait += distv; } } else { if (distv > 0) { if (totalwait == 0)
c_walkdirect(st.x, ed.y, distv);
...
(su1, su2, 4, undefined, "u");
225
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(max(wait1, wait2, wait3) + 1);
226
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(1);
227
    
c_actortokris
c_actortokris

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

function
c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
} function c_actortocaterpillarstill() {
c_cmd("actortocaterpillarstill", 0, 0, 0, 0);
}
();
229
    
c_customfunc
c_customfunc

function
c_customfunc(arg0, arg1 = -1)
{ if (instance_exists(obj_cutscene_master)) { with (obj_cutscene_master) array_push(customfuncs, arg0);
c_cmd("customfunc", arg1, 0, 0, 0);
} }
(function()
230
    {
231
        
scr_caterpillar_facing
scr_caterpillar_facing

function
scr_caterpillar_facing(arg0)
{ with (obj_caterpillarchara) { for (i = 0; i < 25; i += 1) facing[i] = arg0; } }
("ralsei", "u");
232
        
scr_caterpillar_facing
scr_caterpillar_facing

function
scr_caterpillar_facing(arg0)
{ with (obj_caterpillarchara) { for (i = 0; i < 25; i += 1) facing[i] = arg0; } }
("susie", "u");
233
    });
234
    
c_terminatekillactors
c_terminatekillactors

function
c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
}
();
235
    
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);
} } }
("ralsei", "u");
236
    
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);
} } }
("susie", "u");
237
    con = 1.22;
238
}
239
240
var fedamagefunc = function()
241
{
242
    
scr_shakescreen
scr_shakescreen

function
scr_shakescreen(arg0 = 4)
{ with (instance_create(x, y, obj_shake)) { shakex = arg0; shakey = arg0; } }
();
243
    with (ferroll)
244
    {
245
        with (marker)
246
        {
247
            snd_play(snd_horriblemetalclang);
248
            with (instance_create(x + 112, y + 90, obj_dmgwriter))
249
            {
250
                damage = 6;
251
                snd_play(snd_hurt1);
252
            }
253
        }
254
    }
255
};
256
257
if (con == 1.22 && !instance_exists(obj_cutscene_master))
258
{
259
    var fe = ferroll.marker;
260
    var kr1 = findspriteinfo(spr_krisu_dark, "CUT1");
261
    var su1 = findspriteinfo(spr_susie_up_dw, "CUT1");
262
    var ra1 = findspriteinfo(spr_ralsei_walk_up, "CUT1");
263
    var kr2 = findspriteinfo(spr_krisd_dark, "SMASH_ASSETS");
264
    var su2 = findspriteinfo(spr_susie_shock_r, "SMASH_ASSETS");
265
    var ra2 = findspriteinfo(spr_ralsei_shocked_right, "SMASH_ASSETS");
266
    timer++;
267
    if (timer == 1)
268
        sprite_set(fe, 3234, 0, 0.35);
269
    if (timer == 15)
270
    {
271
        snd_play(snd_item);
272
        var l = findsprite(spr_krisd_dark, "SMASH_ASSETS");
273
        kris_marker = scr_marker_fromasset(l, fe.depth + 1);
274
        with (obj_mainchara)
275
            visible = false;
276
    }
277
    if (timer == 25)
278
        sprite_set(fe, 6017, 0, 0);
279
    if (timer == 30)
280
        sprite_set(fe, 6017, 1, 0);
281
    if (timer == 33)
282
    {
283
        sprite_set(fe, 6017, 2, 0);
284
        fedamagefunc();
285
        
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(kris_marker);
286
        kris_marker.sprite_index = spr_kris_splat;
287
    }
288
    if (timer == 35)
289
        sprite_set(fe, 6017, 3, 0);
290
    if (timer == 37)
291
        sprite_set(fe, 6017, 4, 0);
292
    if (timer == 39)
293
        sprite_set(fe, 6017, 5, 0);
294
    if (timer == 54)
295
    {
296
        sprite_set(fe, 6017, 0, 0);
297
        setxy(kr1.x, kr1.y, kris_marker);
298
        sprite_set(fe, 3234, 0, 0.35);
299
        var l = findsprite(spr_susie_shock_r, "SMASH_ASSETS");
300
        susie_marker = scr_marker_fromasset(l, fe.depth + 1, undefined, true);
301
        with (obj_caterpillarchara)
302
        {
303
            if (name == "susie")
304
                visible = false;
305
        }
306
        snd_play(snd_item);
307
    }
308
    var subump = 39;
309
    if (timer == (subump + 25))
310
        sprite_set(fe, 6017, 0, 0);
311
    if (timer == (subump + 25 + 5))
312
        sprite_set(fe, 6017, 1, 0);
313
    if (timer == (subump + 25 + 5 + 3))
314
    {
315
        sprite_set(fe, 6017, 2, 0);
316
        fedamagefunc();
317
        
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(susie_marker);
318
        susie_marker.sprite_index = spr_susie_splat;
319
    }
320
    if (timer == (subump + 25 + 5 + 3 + 2))
321
        sprite_set(fe, 6017, 3, 0);
322
    if (timer == (subump + 25 + 5 + 3 + 2 + 2))
323
        sprite_set(fe, 6017, 4, 0);
324
    if (timer == (subump + 25 + 5 + 3 + 2 + 2 + 2))
325
        sprite_set(fe, 6017, 5, 0);
326
    if (timer == (subump + 25 + 5 + 3 + 2 + 2 + 2 + 15))
327
    {
328
        sprite_set(fe, 6017, 0, 0);
329
        setxy(su1.x, su1.y, susie_marker);
330
        susie_marker.x += 4;
331
        susie_marker.y += -4;
332
        sprite_set(fe, 3234, 0, 0.35);
333
        snd_play(snd_item);
334
        var l = findsprite(spr_ralsei_shocked_right, "SMASH_ASSETS");
335
        ralsei_marker = scr_marker_fromasset(l, fe.depth + 1);
336
        with (obj_caterpillarchara)
337
        {
338
            if (name == "ralsei")
339
                visible = false;
340
        }
341
    }
342
    var rabump = subump + 25 + 5 + 3 + 2 + 2 + 2;
343
    if (timer == (rabump + 25))
344
        sprite_set(fe, 6017, 0, 0);
345
    if (timer == (rabump + 25 + 5))
346
        sprite_set(fe, 6017, 1, 0);
347
    if (timer == (rabump + 25 + 5 + 3))
348
    {
349
        sprite_set(fe, 6017, 2, 0);
350
        fedamagefunc();
351
        ralsei_marker.sprite_index = spr_ralsei_splat;
352
        ralsei_marker.x -= 36;
353
        ralsei_marker.y += 32;
354
        
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(ralsei_marker);
355
    }
356
    if (timer == (rabump + 25 + 5 + 3 + 2))
357
        sprite_set(fe, 6017, 3, 0);
358
    if (timer == (rabump + 25 + 5 + 3 + 2 + 2))
359
        sprite_set(fe, 6017, 4, 0);
360
    if (timer == (rabump + 25 + 5 + 3 + 2 + 2 + 2))
361
        sprite_set(fe, 6017, 5, 0);
362
    if (timer == (rabump + 25 + 5 + 3 + 2 + 2 + 2 + 15))
363
    {
364
        sprite_set(fe, 6362, 0, 0);
365
        setxy(ra1.x - 36, ra1.y + 32, ralsei_marker);
366
        ralsei_marker.x += 18;
367
        ralsei_marker.y += 8;
368
        ralsei_marker.depth = susie_marker.depth - 1;
369
    }
370
    if (timer == (rabump + 25 + 5 + 3 + 2 + 2 + 2 + 15 + 30))
371
    {
372
        con = 21;
373
        timer = 0;
374
    }
375
}
376
if (con == 20)
377
{
378
    timer++;
379
    var poweruptime = 25;
380
    var hammertime = 18;
381
    if (timer == 1)
382
        powerup();
383
    if (timer == poweruptime)
384
    {
385
        with (obj_caterpillarchara)
386
        {
387
            if (name == "ralsei")
388
                visible = false;
389
        }
390
        safe_delete(smashmarker);
391
        smashmarker = scr_marker_fromasset(findsprite(spr_ralsei_shocked_right, "SMASH_ASSETS"), ferroll.marker.depth + 10);
392
        dohammer();
393
    }
394
    if (timer == (poweruptime + (hammertime * 1)))
395
        dohammer();
396
    if (timer == (poweruptime + (hammertime * 2)))
397
    {
398
        dohammer();
399
        with (obj_caterpillarchara)
400
        {
401
            if (name == "ralsei")
402
                visible = true;
403
        }
404
        with (obj_caterpillarchara)
405
        {
406
            if (name == "susie")
407
                visible = false;
408
        }
409
        safe_delete(smashmarker);
410
        smashmarker = scr_marker_fromasset(findsprite(spr_susie_shock_r, "SMASH_ASSETS"), ferroll.marker.depth + 10);
411
    }
412
    if (timer == (poweruptime + (hammertime * 3)))
413
        dohammer();
414
    if (timer == (poweruptime + (hammertime * 4)))
415
    {
416
        dohammer();
417
        with (obj_caterpillarchara)
418
        {
419
            if (name == "susie")
420
                visible = true;
421
        }
422
        obj_mainchara.visible = false;
423
        safe_delete(smashmarker);
424
        smashmarker = scr_marker_fromasset(findsprite(spr_krisd_dark, "SMASH_ASSETS"), ferroll.marker.depth + 10);
425
    }
426
    if (timer == (poweruptime + (hammertime * 5)))
427
        dohammer();
428
    if (timer == (poweruptime + (hammertime * 6)))
429
    {
430
        obj_mainchara.visible = true;
431
        safe_delete(smashmarker);
432
        con++;
433
    }
434
}
435
if (con == 21)
436
{
437
    partysmashed = 1;
438
    updateSmashed();
439
    
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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
440
    msgsetloc(0, 
* ...Wait for input
"* .../", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_537_0"
);
441
    msgnextloc(
* So,Delay 11 uh...Delay 11 who got healed from that?Wait for input
"* So^1, uh..^1. who got healed from that?/", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_538_0"
);
442
    msgnextloc(
* ...Wait for input
"* .../", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_539_0"
);
443
    msgnextloc(
* I see...Delay 11 perhaps it's not my best work...Wait for inputClose Message
"* I see..^1. perhaps it's not my best work.../%", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_540_0"
);
444
    d_make(0);
445
    con = 99.1;
446
    for (var i = 0; i < array_length(global.hp); i++)
447
        global.hp[i] = max(global.hp[i] - 6, 1);
448
    
scr_msgno_func
scr_msgno_func

function
scr_msgno_func(arg0, arg1, arg2 = 0, arg3 = 0, arg4 = 30, arg5 = -4)
{ var __watcher = instance_create_depth(0, 0, 0, obj_msgno_func); __watcher.msgno = arg0; __watcher.dothing = arg1; __watcher.when = arg2; __watcher.functiontime = arg3; __watcher.doomer = arg4; __watcher.target = arg5; return __watcher; } function scr_msgfunc(arg0, arg1 = 0, arg2 = 0, arg3 = 30, arg4 = -4) { var __watcher = instance_create_depth(0, 0, 0, obj_msgno_func); __watcher.msgno = global.msgno; __watcher.dothing = arg0; __watcher.when = arg1; __watcher.functiontime = arg2; __watcher.doomer = arg3; __watcher.target = arg4; return __watcher; }
(1, function()
449
    {
450
        sprite_set(ferroll.marker, 81, 0, 0);
451
    });
452
    
scr_msgno_func
scr_msgno_func

function
scr_msgno_func(arg0, arg1, arg2 = 0, arg3 = 0, arg4 = 30, arg5 = -4)
{ var __watcher = instance_create_depth(0, 0, 0, obj_msgno_func); __watcher.msgno = arg0; __watcher.dothing = arg1; __watcher.when = arg2; __watcher.functiontime = arg3; __watcher.doomer = arg4; __watcher.target = arg5; return __watcher; } function scr_msgfunc(arg0, arg1 = 0, arg2 = 0, arg3 = 30, arg4 = -4) { var __watcher = instance_create_depth(0, 0, 0, obj_msgno_func); __watcher.msgno = global.msgno; __watcher.dothing = arg0; __watcher.when = arg1; __watcher.functiontime = arg2; __watcher.doomer = arg3; __watcher.target = arg4; return __watcher; }
(3, function()
453
    {
454
        sprite_set(ferroll.marker, 543, 0, 0);
455
    });
456
}
457
if (con == 40)
458
{
459
    timer++;
460
    var poweruptime = 25;
461
    var hammertime = 18;
462
    if (timer == 1)
463
        powerup();
464
    if (timer == poweruptime)
465
        dohammer(false);
466
    if (timer == (poweruptime + (hammertime * 1)))
467
        dohammer(false);
468
    if (timer == (poweruptime + (hammertime * 2)))
469
    {
470
        safe_delete(smashmarker);
471
        con = 41;
472
    }
473
}
474
if (con == 99 && !d_ex())
475
{
476
    global.interact = 0;
477
    con = 0;
478
    with (ferroll)
479
        myinteract = 0;
480
    doIdle();
481
}
482
if (con == 99.1 && !d_ex())
483
{
484
    with (kris_marker)
485
        instance_destroy();
486
    with (susie_marker)
487
        instance_destroy();
488
    with (ralsei_marker)
489
        instance_destroy();
490
    with (obj_mainchara)
491
        visible = true;
492
    with (obj_caterpillarchara)
493
        visible = true;
494
    
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate(arg0 = "none")
{ if (arg0 == "all") { with (obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else if (arg0 == "none") { if (object_index == obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else { with (obj_caterpillarchara) { if (name == arg0) scr_caterpillar_interpolate_old(); } } } function scr_caterinterp(arg0 = "none") {
scr_caterpillar_interpolate(arg0);
} function scr_caterpillar_interpolate_old() { var _newfacing = direction_to_object_bbox(id, 1198, true); remx[0] = obj_mainchara.x; remy[0] = obj_mainchara.y; facing[0] = _newfacing; for (var _iaia = target; _iaia > 0; _iaia -= 1) { remx[_iaia] = lerp(obj_mainchara.x, x + halign, _iaia / target); remy[_iaia] = lerp(obj_mainchara.y, y + valign, _iaia / target); facing[_iaia] = _newfacing; } }
();
495
    with (obj_caterpillarchara)
496
        
scr_caterpillar_facing
scr_caterpillar_facing

function
scr_caterpillar_facing(arg0)
{ with (obj_caterpillarchara) { for (i = 0; i < 25; i += 1) facing[i] = arg0; } }
(3);
497
    global.interact = 0;
498
    con = 0;
499
    with (ferroll)
500
        myinteract = 0;
501
    doIdle();
502
}
503
504
makecoin = function(arg0)
505
{
506
    with (scr_marker_fancy(240, 290, 4700))
507
    {
508
        gravity = random_range(1, 1.1);
509
        
scr_size
scr_size

function
scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{ with (arg2) { image_xscale = arg0; image_yscale = arg1; } }
(2, 2);
510
        spd = random_range(15, 25);
511
        hspeed = lengthdir_x(spd, arg0);
512
        vspeed = lengthdir_y(spd, arg0);
513
        endy = 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(ystart + random_range(6, 20));
514
        depth = 100000 - ((endy * 10) + (sprite_height * 10));
515
        bouncecount = 0;
516
        dying = 0;
517
        timer = 0;
518
        
519
        end_step_func = function()
520
        {
521
            if (dying)
522
            {
523
                timer++;
524
                if (timer > 50)
525
                    image_alpha = lerp_out_cubic(1, 0, (timer - 50) / 10);
526
                if (timer == 60)
527
                    instance_destroy();
528
            }
529
            if (y > endy && vspeed > 0)
530
            {
531
                hspeed *= 0.7;
532
                y = endy;
533
                vspeed = -vspeed * 0.4;
534
                var vol = lerp(0, 0.3, abs(vspeed) / 8);
535
                if (vol > 0.1)
536
                    snd_play(snd_coin, vol, 1.2);
537
                if (dying == 0)
538
                {
539
                    dying = 1;
540
                    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] = arg1; target = arg0; } return _doom; }
(id, 80);
541
                }
542
            }
543
            var _left = 128;
544
            var _right = 352;
545
            if (x < _left || x > _right)
546
            {
547
                x = clamp(x, _left, _right);
548
                hspeed = -hspeed * 0.5;
549
                var vol = lerp(0, 0.3, abs(hspeed) / 8);
550
                if (vol > 0.1)
551
                    snd_play(snd_coin, vol, 1.2);
552
            }
553
            image_angle -= (hspeed * 30);
554
        };
555
    }
556
};
557
558
if (coincon == 1)
559
{
560
    var fe = ferroll.marker;
561
    timer++;
562
    if (timer == 1)
563
    {
564
        with (fe)
565
        {
566
            sprite_index = spr_npc_ferroll_idle;
567
            image_index = 0;
568
            image_speed = 1/15;
569
        }
570
    }
571
    if (timer == 15)
572
        sprite_set(fe, 3234, 0, 0.35);
573
    if (timer == 40)
574
        sprite_set(fe, 6017, 0, 0);
575
    if (timer == 42)
576
        sprite_set(fe, 6017, 1, 0);
577
    if (timer == 44)
578
    {
579
        sprite_set(fe, 6017, 2, 0);
580
        snd_play(snd_horriblemetalclang);
581
        var range = 30;
582
        var count = 25;
583
        for (var i = 0; i < count; i++)
584
            makecoin(lerp(90 + range, 90 - range, i / count) + random_range(-4, 4));
585
        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen(arg0 = 4)
{ with (instance_create(x, y, obj_shake)) { shakex = arg0; shakey = arg0; } }
();
586
    }
587
    if (timer == 46)
588
        sprite_set(fe, 6017, 3, 0);
589
    if (timer == 48)
590
        sprite_set(fe, 6017, 4, 0);
591
    if (timer == 50)
592
    {
593
        sprite_set(fe, 6017, 5, 0);
594
        with (smashmarker)
595
            image_index = 1;
596
    }
597
    if (timer == 80)
598
    {
599
        timer = 0;
600
        coincon = 2;
601
    }
602
}
603
if (coincon == 2)
604
{
605
    var fe = ferroll.marker;
606
    timer++;
607
    if (timer == 1)
608
        sprite_set(fe, 6017, 0, 0);
609
    if (timer == 19)
610
    {
611
        with (smashmarker)
612
            instance_destroy();
613
        sprite_set(fe, 6017, 2, 0);
614
        snd_play(snd_horriblemetalclang);
615
        var range = 30;
616
        var count = 24;
617
        for (var i = 0; i < count; i++)
618
            makecoin(lerp(90 + range, 90 - range, i / count) + random_range(-6, 6));
619
        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen(arg0 = 4)
{ with (instance_create(x, y, obj_shake)) { shakex = arg0; shakey = arg0; } }
();
620
    }
621
    if (timer == 21)
622
        sprite_set(fe, 6017, 3, 0);
623
    if (timer == 23)
624
        sprite_set(fe, 6017, 4, 0);
625
    if (timer == 25)
626
        sprite_set(fe, 6017, 5, 0);
627
    if (timer == 55)
628
        sprite_set(fe, 6362, 0, 0);
629
    if (timer == 115)
630
    {
631
        timer = 0;
632
        coincon = 3;
633
    }
634
}
635
if (coincon == 3)
636
{
637
    moneysmashed = 1;
638
    updateSmashed();
639
    
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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
640
    msgsetloc(0, 
* ...Wait for input
"* .../", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_772_0"
);
641
    msgnextloc(
* All right.Delay 11 Maybe it wasn't my best work...Wait for input
"* All right^1. Maybe it wasn't my best work.../", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_773_0"
);
642
    msgnextloc(
* I blame my pollen allergies...Delay 11 ACHOO!Wait for inputClose Message
"* I blame my pollen allergies..^1. ACHOO!/%", "obj_dw_cliff_silver_hammer_slash_Step_0_gml_774_0"
);
643
    d_make(0);
644
    coincon = 4;
645
    
scr_msgno_func
scr_msgno_func

function
scr_msgno_func(arg0, arg1, arg2 = 0, arg3 = 0, arg4 = 30, arg5 = -4)
{ var __watcher = instance_create_depth(0, 0, 0, obj_msgno_func); __watcher.msgno = arg0; __watcher.dothing = arg1; __watcher.when = arg2; __watcher.functiontime = arg3; __watcher.doomer = arg4; __watcher.target = arg5; return __watcher; } function scr_msgfunc(arg0, arg1 = 0, arg2 = 0, arg3 = 30, arg4 = -4) { var __watcher = instance_create_depth(0, 0, 0, obj_msgno_func); __watcher.msgno = global.msgno; __watcher.dothing = arg0; __watcher.when = arg1; __watcher.functiontime = arg2; __watcher.doomer = arg3; __watcher.target = arg4; return __watcher; }
(1, function()
646
    {
647
        sprite_set(ferroll.marker, 81, 0, 0);
648
    });
649
    
scr_msgno_func
scr_msgno_func

function
scr_msgno_func(arg0, arg1, arg2 = 0, arg3 = 0, arg4 = 30, arg5 = -4)
{ var __watcher = instance_create_depth(0, 0, 0, obj_msgno_func); __watcher.msgno = arg0; __watcher.dothing = arg1; __watcher.when = arg2; __watcher.functiontime = arg3; __watcher.doomer = arg4; __watcher.target = arg5; return __watcher; } function scr_msgfunc(arg0, arg1 = 0, arg2 = 0, arg3 = 30, arg4 = -4) { var __watcher = instance_create_depth(0, 0, 0, obj_msgno_func); __watcher.msgno = global.msgno; __watcher.dothing = arg0; __watcher.when = arg1; __watcher.functiontime = arg2; __watcher.doomer = arg3; __watcher.target = arg4; return __watcher; }
(2, function()
650
    {
651
        sprite_set(ferroll.marker, 543, 0, 0);
652
    });
653
}
654
if (coincon == 4 && !d_ex())
655
{
656
    
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate(arg0 = "none")
{ if (arg0 == "all") { with (obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else if (arg0 == "none") { if (object_index == obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else { with (obj_caterpillarchara) { if (name == arg0) scr_caterpillar_interpolate_old(); } } } function scr_caterinterp(arg0 = "none") {
scr_caterpillar_interpolate(arg0);
} function scr_caterpillar_interpolate_old() { var _newfacing = direction_to_object_bbox(id, 1198, true); remx[0] = obj_mainchara.x; remy[0] = obj_mainchara.y; facing[0] = _newfacing; for (var _iaia = target; _iaia > 0; _iaia -= 1) { remx[_iaia] = lerp(obj_mainchara.x, x + halign, _iaia / target); remy[_iaia] = lerp(obj_mainchara.y, y + valign, _iaia / target); facing[_iaia] = _newfacing; } }
("all");
657
    global.facing = 0;
658
    con = 99;
659
    coincon = 0;
660
}