if (!init) { init = 1; if (global.flag[1455] >= 15) { con = 6; var genmarker = scr_genmarker("flowerbud"); var offset = 0; if (scr_flag_get_ext(1715, 10) == 0) offset = -160; with (instance_create(genmarker.x + offset, genmarker.y, obj_flower_spawner)) { obj_index = 981; image_blend = c_orange; colored = true; _memory.movepattern = 7; } } else { with (obj_plat_lantern) instance_destroy(); } } if (con == 0 && scr_trigcheck_ext("miniboss", 910)) { con = 0.5; global.flag[1455] = 11; } if (con == 0.5) { con = 1; obj_plat_camera.cutscene = true; con = 1.5; with (obj_dialoguer_plat) instance_destroy(); global.interact = 1; scr_get_plat_followers(); cutscene_master = scr_cutscene_make(); c_plat_prepare_followers(); scr_maincharacters_actors(); c_mus2("volume", 0, 20); c_wait(20); c_mus("free"); scr_miniface_init_flowers(); c_speaker("opuppet"); c_msgsetsubloc(0, "~1* Hey!/%", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_51_0"); c_talk_wait(); c_wait(30); if (ra_actor.x > su_actor.x) c_plat_turn(su_actor, "r"); else c_plat_turn(su_actor, "l"); c_wait(10); c_speaker("susie"); c_msgsetsubloc(0, "\\EZ* Ralsei..^1. did you hear something just now?/", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_63_0"); c_facenext("ralsei", "L"); c_msgnextsubloc("\\EL* Maybe it came from over there...?/%", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_65_0"); c_talk_wait(); c_pan(0, cameray(), 10); c_wait(10); c_plat_stop_animation(ra_actor); c_plat_moveto(ra_actor, "cut1ra"); c_wait(16); c_plat_stop_animation(su_actor); c_plat_moveto(su_actor, "cut1su"); c_wait(12); c_plat_moveto(kr_actor, "cut1kr"); c_wait(10); c_plat_goal_reached(kr_actor); c_plat_goal_reached(su_actor); c_plat_goal_reached(ra_actor); c_wait(3); c_plat_turn(kr_actor, "l"); c_plat_turn(su_actor, "l"); c_plat_turn(ra_actor, "l"); c_customfunc(function() { var gm = scr_genmarker("puppet_spawn"); with (instance_create(gm.x - 34, gm.y - 8, obj_orange_puppet)) { puppet_alpha = 0; scr_lerpvar("puppet_alpha", 0, 1, 4, 2, "out"); puppet.y = 99; } }); c_wait(1); c_speaker("opuppet"); c_msgsetsubloc(0, "~1* HEY^1, I'm YAPPING HERE!!!/", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_108_0"); c_customfunc(function() { with (obj_orange_puppet) { resetpuppetvals(); sinerfreeze = false; animinit = 0; puppetmovement = 4; preset = 1; with (puppet) { y = 400; image_yscale = 0.2; targx = 4; targy = 0; ylerp = 1/3; targxscale = 0.75; targyscale = 0.75; yscalelerp = 1/3; xscalelerp = 1/3; angle = 0; } } }); c_msgnextsubloc("~1* I'm Orange^1! This world's strongest~2and bestest human./", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_133_0"); c_msgfunc(function() { mus_initloop("meeting_flower_orange.ogg"); with (obj_orange_puppet) { animinit = 0; preset = 3; puppetmovement = 2; eye.x = head.x; eye.y = head.y; with (puppet) { targx = 60; targy = 54; targxscale = 0.45; targyscale = 0.45; xscalelerp = 1/3; yscalelerp = 0.16666666666666666; ylerp = 0.9; targangle = -30; anglelerp = 0.2; } } }); c_msgnextsubloc("~1* A human tough enough to protect~2Asgore from his tears./", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_160_0"); c_msgfunc(function() { with (obj_orange_puppet) { animinit = 0; puppetmovement = 2; preset = 10; with (puppet) { targx = 25; targy = 90; targxscale = 0.45; targyscale = 0.45; xscalelerp = 1/3; yscalelerp = 0.16666666666666666; ylerp = 0.9; targangle = 15; anglelerp = 1/3; } } }); c_msgnextsubloc("~1* A human that will always be by his~2side!/", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_182_0"); c_msgfunc(function() { with (obj_orange_puppet) { animinit = 0; puppetmovement = 2; preset = 11; with (puppet) { targx = 13; targy = 70; targxscale = 0.55; targyscale = 0.55; xscalelerp = 1/3; yscalelerp = 0.5; ylerp = 0.9; targangle = 0; anglelerp = 1/3; } } }); c_msgnextsubloc("~1* NOT LIKE YOU THREE SHRIMPS!!!/", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_204_0"); c_msgfunc(function() { with (obj_orange_puppet) { animinit = 0; puppetmovement = 3; preset = 3; with (puppet) { targx = 29; targy = 115; targxscale = 0.25; targyscale = 0.25; xscalelerp = 1/3; yscalelerp = 1/3; ylerp = 0.9; targangle = 0; anglelerp = 1/3; } } }); c_msgnextsubloc("~1* All THREE of you are PATHETIC~2excuses for HUMANS!/", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_222_0"); c_msgfunc(function() { with (obj_orange_puppet) { animinit = 0; puppetmovement = 3; preset = 3; with (puppet) { targx = 15; targy = 35; targxscale = 0.45; targyscale = 0.69; xscalelerp = 1/3; yscalelerp = 0.25; ylerp = 0.125; targangle = 15; anglelerp = 1/3; } } }); c_msgnextsubloc("~1* You look more like^1, ha--!!/", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_240_0"); c_msgfunc(function() { with (obj_orange_puppet) { with (puppet) { x = 50; y = 100; image_xscale = 0.35; image_yscale = 0.35; angle = 0; } preset = 2; puppetmovement = 0; } }); c_msgnextsubloc("~1* A wrinkled blueberry.../", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_245_0"); c_msgfunc(function() { with (obj_orange_puppet) { snd_play(snd_splat, 0.6); with (puppet) { x = 70; y = 140; image_xscale = 0.25; image_yscale = 0.25; angle = 90; } preset = 2; puppetmovement = 0; } }); c_msgnextsubloc("~1* A wrinkled grapeberry.../", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_251_0"); c_msgfunc(function() { with (obj_orange_puppet) { snd_play(snd_splat, 0.6); with (puppet) { x = 90; y = 150; image_xscale = -0.25; image_yscale = 0.25; angle = -90; } preset = 2; puppetmovement = 0; } }); c_msgnextsubloc("~1* And^1, and.../", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_258_0"); c_msgfunc(function() { with (obj_orange_puppet) { with (puppet) { x = 90; y = 110; image_xscale = -0.25; image_yscale = -0.25; angle = -210; } preset = 2; puppetmovement = 0; } }); c_msgnextsubloc("~1* The third guy needs to wear a HAT!/", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_265_0"); c_msgfunc(function() { with (obj_orange_puppet) { with (puppet) { x = 50; y = 10; image_xscale = 0.55; image_yscale = 0.65; angle = -375; } preset = 14; puppetmovement = 0; animinit = 0; } }); c_msgnextsubloc("~1* And^1, and.../%", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_273_0"); c_talk_wait(); c_speaker("ralsei"); c_msgsetsubloc(0, "\\EM* Hmm.../", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_277_0"); c_msgcmd("plat_animate", ra_actor, 8395); c_msgcmd("plat_turn", ra_actor, true); c_msgnextsubloc("\\EL* Sounded like someone was talking behind a paper wall./", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_280_0"); c_msgnextsubloc("\\E2* ..^1. but maybe it was nothing?/%", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_282_0"); c_msgcmd("plat_animate", ra_actor, 508); c_msgfunc(function() { mus_volume(global.currentsong[1], 0, 1); with (obj_orange_puppet) sinerfreeze = true; }); c_talk_wait(); c_wait(30); c_speaker("opuppet"); c_msgsetsubloc(0, "~1* N..^1. nothing?/%", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_295_0"); c_msgfunc(function() { with (obj_orange_puppet) { sinerfreeze = true; eye.x = head.x - 62 - 16; eye.y = (head.y - 18) + 10; preset = -1; puppetmovement = 0; } }); c_talk_wait(); c_mus2("volume", 1, 30); c_mus2("pitch", 2, 30); c_speaker("opuppet"); c_msgsetsubloc(0, "~1* What do you mean NOTHING^1, you~2hat-less CHIBI BOY!?/", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_312_0"); c_msgfunc(function() { with (obj_orange_puppet) { sinerfreeze = false; animinit = 0; puppetmovement = 5; preset = 1; with (puppet) { angle = -375; targangle = -375; targx = 35; targy = -40; targxscale = 0.9; targyscale = 0.9; } } }); c_msgnextsubloc("~1* If your brain's not big enough for~2words...!/", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_331_0"); c_msgfunc(function() { with (obj_orange_puppet) { sinerfreeze = false; with (puppet) { targx = 30; targy = 120; x = targx + 60; y = targy; image_xscale = 0.2; image_yscale = 0.2; targxscale = 0.25; targyscale = 0.25; angle = -50; targangle = 0; } preset = 8.1; puppetmovement = 2; animinit = 1; } }); c_msgnextsubloc("~1* Listen to my FISTS!!!/%", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_353_0"); c_msgfunc(function() { with (obj_orange_puppet) { with (puppet) { x = 34; y = -40; image_xscale = 0.85; image_yscale = 0.85; angle = -375; } preset = 14; puppetmovement = 0; animinit = 0; mus_fade(global.currentsong[1], 0, 1); snd_free(global.currentsong[0]); for (var i = 0; i < 5; i++) { scr_script_delayed(function() { var gm = scr_genmarker("glove" + string(instance_number(obj_plat_enm_smallglove) + instance_number(obj_flower_spawner) + 1)); with (instance_create(gm.x + 20, gm.y + 20, obj_flower_spawner)) { _memory.con = -3; _memory.movepattern = 6; image_angle = point_direction(x, y, obj_plat_player.x, obj_plat_player.y); obj_index = 1404; colored = true; image_blend = c_orange; image_xscale = 1; targetscale = 1; scale = sign(image_xscale); image_yscale = 1; } }, 1 + (i * 3)); } background = instance_create(camerax(), cameray(), obj_battleback); background.depth = 1900000; scr_plat_barrier_enable(); } }); c_talk_wait(); c_wait(20); c_plat_turn(ra_actor, "r"); c_plat_turn(kr_actor, "r"); c_plat_turn(su_actor, "r"); c_plat_animate(ra_actor, 1447); c_plat_animate(su_actor, 628); c_speaker("ralsei"); c_msgsetsubloc(0, "\\EC* Wait^1! It's an attack!/%", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_392_0"); c_talk_wait(); c_plat_stop_animation(ra_actor); c_plat_stop_animation(su_actor); c_actortokris(); c_actortocaterpillar(); } if (con == 1.6) { with (obj_plat_enm_smallglove) { if (con == -3) con = 0; } } if (con == 1.5 && !i_ex(obj_cutscene_master)) { scr_musicer("rudebuster_boss.ogg", undefined, undefined, undefined, 5); scr_delay_var("con", 2, 60); global.interact = 0; global.facing = 0; con = 1.6; } if (con == 2) { with (obj_orange_puppet) visible = 0; if (instance_number(obj_plat_enm_smallglove) == 0) { con = 3; with (obj_battleback) destroy = 1; snd_free(global.currentsong[0]); with (obj_dialoguer_plat) instance_destroy(); global.interact = 1; cutscene_master = scr_cutscene_make(); c_plat_prepare_followers(); scr_maincharacters_actors(); with (obj_darkcontroller) charcon = 0; c_customfunc(function() { snd_free_all(); }); if (kr_actor.x > 594) kr_actor.x = 594; c_wait(30); c_plat_moveto(kr_actor, "cut2kr"); c_plat_moveto(su_actor, "cut2su"); c_plat_moveto(ra_actor, "cut2ra"); c_wait(10); c_plat_goal_reached(kr_actor); c_plat_goal_reached(su_actor); c_plat_goal_reached(ra_actor); c_sndplay(snd_swing); c_plat_animate(su_actor, 8084); c_plat_animate(ra_actor, 2415); c_plat_animate(kr_actor, 5475); c_wait(15); c_sndplay(snd_feather_get); c_plat_animate(su_actor, 6035); c_plat_animate(ra_actor, 7808); c_plat_animate(kr_actor, 6176); c_wait(45); c_speaker("no_name"); c_msgsetsubloc(0, "* Defeated Orange's BULLET PATTERN!/%", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_467_0"); c_talk_wait(); c_sndplay(snd_wing); c_customfunc(function(arg0) { scr_plat_barrier_disable(); }); c_wait(15); c_plat_stop_animation(su_actor); c_plat_stop_animation(ra_actor); c_plat_stop_animation(kr_actor); c_plat_turn(kr_actor, "r"); c_plat_turn(su_actor, "r"); c_wait(10); c_plat_animate(ra_actor, 562); c_sel(ra); c_addxy(0, 4); c_var_instance(ra_actor, "physics", 0); c_var_instance(ra_actor, "wallcollision", 0); c_speaker("ralsei"); c_msgsetsubloc(0, "\\E2* Umm..^1. was it supposed to be that easy?/", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_513_0"); c_facenext("opuppet", 0); c_msgnextsubloc("~1* IT..^1. IT WASN'T EASY!!!/", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_515_0"); c_msgfunc(function() { with (obj_orange_puppet) { sinerfreeze = false; with (puppet) { x = -36; y = 20; angle = 30; image_xscale = 0.65; image_yscale = 0.95; } preset = 1; puppetmovement = 0; animinit = 0; puppet_alpha = 0; scr_lerpvar("puppet_alpha", 0, 1, 4, 2, "out"); visible = true; } }); c_msgnextsubloc("~1* You just..^1. DID IT WRONG!!!/%", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_dw_fcastle_orange_puppet_introduction_slash_Step_0_gml_537_0"); c_msgfunc(function() { with (obj_orange_puppet) { with (puppet) { targx = 68; targy = 50; targxscale = 0.45; targyscale = 0.5; targangle = -15; xscalelerp = 0.9; yscalelerp = 0.3; } animinit = 0; puppetmovement = 2; preset = 8; } }); c_talk_wait(); c_plat_stop_animation(ra_actor); c_addxy(0, -4); c_var_instance(ra_actor, "physics", 1); c_var_instance(ra_actor, "wallcollision", 1); c_plat_turn(ra_actor, "l"); c_plat_turn(su_actor, "l"); c_wait(5); c_actortokris(); c_actortocaterpillar(); c_terminatekillactors(); } } if (con == 3 && !i_ex(obj_cutscene_master)) { with (obj_orange_puppet) scr_lerpvar("image_alpha", 1, 0, 30); scr_musicer("flower_castle.ogg", 1, undefined, 5, 5); con = 3.5; with (obj_plat_camera) cutscene = 0; scr_delay_var("con", 4, 30); global.interact = 0; global.flag[1455] = 15; } if (con == 4) { con = 5; with (obj_plat_orangewall) { if (!is_broken) { var genmarker = scr_genmarker("flowerbud"); with (instance_create(genmarker.x - 160, genmarker.y, obj_flower_spawner)) { obj_index = 981; _memory.movepattern = 7; colored = true; image_blend = c_orange; } } } } if (con == 5) { with (obj_plat_orangewall) { if (!i_ex(barrier_ow)) { other.con = 6; scr_plat_barrier_disable(); } } }