if (ccon == 1) { if (fademusic == 0) { fademusic = 1; snd_volume(global.currentsong[1], 0, 30); } with (obj_mainchara) { fun = 1; sprite_index = spr_krisu_dark; } if (!instance_exists(obj_climb_kris)) { global.interact = 1; ccon = 2; if (cutscene == -1) { var averageLo = 799; var averageHi = 750; var goodLo = 749; var goodHi = 700; var fiveMinutes = 9000; cutscene = 1; if (sawCutscene1) cutscene = 2; if (thisclimbtime >= fiveMinutes) { cutscene = 0; if (sawCutscene0) cutscene = 9; } else if (thisclimbtime < goodHi) { cutscene = 5; if (sawCutscene5) cutscene = 6; if (global.flag[254] == 1) { if (cutscene == 5) cutscene = 7; else if (cutscene == 6) cutscene = 8; } } else if (thisclimbtime <= goodLo) { cutscene = 4; } else if (thisclimbtime <= averageLo) { cutscene = 3; } } scr_debug_print("CUTSCENE \\#" + string(cutscene)); } } if (ccon == 2 && cutscene == 0) { ccon = 3; sawCutscene0 = true; rouxls = -4; mizzle = -4; scr_cutscene_make(); scr_maincharacters_actors(); c_pannable(1); c_wait(30); c_customfunc(function() { curtain.image_index = 1; snd_play(snd_wing); var _layer = "cutscene0"; rouxls = scr_marker_fromasset(findsprite(spr_rurus_idle, _layer), undefined, true, true); with (rouxls) { image_speed = 0; image_index = 0; } mizzle = scr_marker_fromasset(findsprite(spr_holywater_idle_pink, _layer), undefined, true, true); with (mizzle) { depth = other.rouxls.depth - 1; image_speed = 0.25; image_index = 0; asleep = true; siner = 0; step_func = function() { if (asleep) { siner++; y = ystart + (sin(siner / 15) * 4); } }; } }); c_wait(30); c_customfunc(function() { with (mizzle) { asleep = false; sprite_index = spr_holywater_surprised; image_speed = 0; image_index = 0; y = ystart; scr_shakeobj(); snd_play(snd_noise, undefined, 1.2); } }); c_wait(30); c_msgside("bottom"); c_speaker("rouxls"); c_msgsetloc(0, "\\E1* I can Explaine./", "obj_dw_castle_church_climb_slash_Other_19_gml_115_0"); c_msgnextloc("\\E4* So..^1. thou wert taking a Longste Time./", "obj_dw_castle_church_climb_slash_Other_19_gml_116_0"); c_msgnextloc("\\E2* Therefore..^1. I invokedeth..^1. the \"Five Minute Rule\"./", "obj_dw_castle_church_climb_slash_Other_19_gml_117_0"); c_msgnextloc("\\E4* \"If I donteth see-eth you with your Lover in Five Minutes\"/", "obj_dw_castle_church_climb_slash_Other_19_gml_118_0"); c_msgnextloc("\\E5* \"She's mine\"/%", "obj_dw_castle_church_climb_slash_Other_19_gml_119_0"); c_talk(); c_wait_box(1); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_handstogether; image_index = 0; } }); c_wait_box(2); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_righthandup; image_index = 0; } }); c_wait_box(3); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_handposes; image_index = 0; } }); c_wait_box(4); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_handposes; image_index = 1; } }); c_wait_talk(); c_wait(30); c_msgsetloc(0, "\\E6* ..^1. what^1? She's not your Lovere^1? Nor your Darling!?/", "obj_dw_castle_church_climb_slash_Other_19_gml_141_0"); c_msgnextloc("\\E1* Then why the DEUCE am I stealingeth her?/", "obj_dw_castle_church_climb_slash_Other_19_gml_142_0"); c_msgnextloc("\\E0* Getteth out of here^1, Fairie^1! Getteth out!/%", "obj_dw_castle_church_climb_slash_Other_19_gml_143_0"); c_talk(); c_wait_box(0); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_handposes; image_index = 0; } }); c_wait_box(1); c_customfunc(function() { with (rouxls) { sprite_index = spr_rurus_idle; image_index = 0; } }); c_wait_box(2); c_customfunc(function() { with (rouxls) scr_shakeobj(); with (mizzle) sprite_index = spr_holywater_annoyed; snd_play(snd_wing); }); c_wait_talk(); c_actortokris(); c_terminatekillactors(); } if (ccon == 2 && cutscene == 9) { sawCutscene9 = true; ccon = 3; rouxls = -4; mizzle = -4; scr_cutscene_make(); scr_maincharacters_actors(); c_pannable(1); c_wait(30); c_customfunc(function() { curtain.image_index = 1; snd_play(snd_wing); var _layer = "cutscene0"; rouxls = scr_marker_fromasset(findsprite(spr_rurus_idle, _layer), undefined, true, true); with (rouxls) { image_speed = 0; image_index = 0; } mizzle = scr_marker_fromasset(findsprite(spr_holywater_idle_pink, _layer), undefined, true, true); with (mizzle) { depth = other.rouxls.depth - 1; image_speed = 0.25; image_index = 0; asleep = true; siner = 0; step_func = function() { if (asleep) { siner++; y = ystart + (sin(siner / 15) * 4); } }; } }); c_wait(30); c_msgside("bottom"); c_speaker("Rouxls"); c_msgsetloc(0, "\\E4* So..^1. I can Explaine./", "obj_dw_castle_church_climb_slash_Other_19_gml_214_0"); c_msgnextloc("\\E3* .../", "obj_dw_castle_church_climb_slash_Other_19_gml_215_0"); c_msgnextloc("\\E4* I just Chooseth..^1. not to./%", "obj_dw_castle_church_climb_slash_Other_19_gml_216_0"); c_talk(); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_righthandup; image_index = 0; } }); c_wait_box(2); c_customfunc(function() { with (rouxls) { sprite_index = spr_rurus_idle; image_index = 1; } }); c_wait_talk(); c_customfunc(function() { with (rouxls) { sprite_index = spr_rurus_idle; image_index = 0; } }); c_actortokris(); c_terminatekillactors(); } if (ccon == 2 && cutscene == 1) { sawCutscene1 = true; ccon = 3; scr_cutscene_make(); scr_maincharacters_actors(); c_pannable(1); c_wait(30); c_customfunc(function() { curtain.image_index = 1; snd_play(snd_wing); var _layer = "cutscene1"; rouxls = scr_marker_fromasset(findsprite(spr_rurus_idle, _layer), undefined, true, true); with (rouxls) { image_speed = 0; image_index = 0; } }); c_wait(30); c_msgside("bottom"); c_speaker("rouxls"); c_msgsetloc(0, "\\E5* Oh^1! Kris^1! My Liege^1, or whatevere^1! I was just..^1. looking around.../", "obj_dw_castle_church_climb_slash_Other_19_gml_268_0"); c_msgnextloc("\\E6* You know^1, in case there wert any extra Darlings up here./", "obj_dw_castle_church_climb_slash_Other_19_gml_269_0"); c_msgnextloc("\\E3* Any sort of royal^1, evil types^1, and such^1. You knoweth?/", "obj_dw_castle_church_climb_slash_Other_19_gml_270_0"); c_msgnextloc("\\E4* Worry not^1. Any Darlings that may trouble you^1, I will assist you./", "obj_dw_castle_church_climb_slash_Other_19_gml_271_0"); c_msgnextloc("\\E3* You may go waiteth at the bottom of the Cliffside^1. Relaxe./%", "obj_dw_castle_church_climb_slash_Other_19_gml_272_0"); c_talk(); c_wait_box(1); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_lefthandup; image_index = 0; } }); c_wait_box(2); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_righthandup; image_index = 0; } }); c_wait_box(3); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_handposes; image_index = 0; } }); c_wait_box(4); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_handstogether; image_index = 0; } }); c_wait_talk(); c_actortokris(); c_terminatekillactors(); } if (ccon == 2 && cutscene == 2) { sawCutscene2 = true; rouxls = -4; ccon = 3; scr_cutscene_make(); scr_maincharacters_actors(); c_pannable(1); c_wait(30); c_customfunc(function() { curtain.image_index = 1; snd_play(snd_wing); var _layer = "cutscene1"; rouxls = scr_marker_fromasset(findsprite(spr_rurus_idle, _layer), undefined, true, true); with (rouxls) { image_speed = 0; image_index = 0; } }); c_wait(30); c_msgside("bottom"); c_speaker("rouxls"); c_msgsetloc(0, "\\E2* Seriously^1? Coming up here to look for a darling^1? Patheticke./", "obj_dw_castle_church_climb_slash_Other_19_gml_323_0"); c_msgnextloc("\\E4* Geh ha ha ha.../%", "obj_dw_castle_church_climb_slash_Other_19_gml_324_0"); c_talk(); c_wait_talk(); c_wait(30); c_msgsetloc(0, "\\E1* I won't telleth anyone if you don't./%", "obj_dw_castle_church_climb_slash_Other_19_gml_329_0"); c_customfunc(function() { with (rouxls) { sprite_index = spr_rouxls_handstogether; image_index = 0; } }); c_talkwait(); c_actortokris(); c_terminatekillactors(); } if (ccon == 2 && cutscene == 3) { sawCutscene3 = true; ccon = 3; shadowguy = scr_marker_fromasset(findsprite(spr_npc_shadowman_sock_og, "cutscene3")); shadowguy.image_speed = 0; scr_depth_alt(shadowguy); shadowguy.image_index = 0; shadowguy.visible = false; scr_cutscene_make(); scr_maincharacters_actors(); c_pannable(1); c_wait(15); c_customfunc(function() { curtain.image_index = 1; shadowguy.visible = true; snd_play(snd_wing); with (shadowguy) scr_lerpvar("image_index", 0, 2, 20); }); c_wait(30); c_customfunc(function() { snd_play(snd_scream); with (shadowguy) { sprite_index = spr_npc_shadowman_sock_reveal_og; var loc = findspriteinfo(spr_npc_shadowman_sock_reveal_og, "cutscene3"); setxy(loc.x, loc.y); scr_shakeobj(); } }); c_wait(15); c_customfunc(function() { snd_stop(snd_scream); curtain.image_index = 0; snd_play(snd_wing); shadowguy.visible = false; }); c_wait(30); c_msgside("bottom"); c_speaker("no_name"); c_msgsetloc(0, "* (He thought he had found a private place...)/%", "obj_dw_castle_church_climb_slash_Other_19_gml_384_0"); c_talk_wait(); c_wait(15); c_actortokris(); c_terminatekillactors(); } if (ccon == 2 && cutscene == 4) { sawCutscene4 = true; ccon = 3; sadman = -4; scr_cutscene_make(); scr_maincharacters_actors(); c_pannable(1); c_wait(30); c_customfunc(function() { curtain.image_index = 1; sadman = scr_marker_fromasset(findsprite(spr_npc_iconman)); snd_play(snd_wing); }); c_wait(30); c_msgside("bottom"); c_speaker("no_name"); c_msgsetloc(0, "* .../%", "obj_dw_castle_church_climb_slash_Other_19_gml_407_0"); c_talk_wait(); c_wait(30); c_actortokris(); c_customfunc(function() { with (obj_mainchara) { fun = 1; sprite_index = spr_krisd_dark; image_speed = 0.25; vspeed = 2; } }); c_wait(10); c_terminatekillactors(); } if (ccon == 2 && (cutscene == 5 || cutscene == 7)) { sawCutscene5 = 1; rouxls = -4; ralsei = -4; starwalker = -4; scr_cutscene_make(); scr_maincharacters_actors(); c_pannable(1); c_wait(30); c_customfunc(function() { snd_play(snd_noise); curtain.image_index = 1; var _layer = "cutscene5"; rouxls = scr_marker_fromasset(findsprite(spr_rurus_idle, _layer)); rouxls.image_speed = 0; rouxls.image_index = 0; scr_depth(rouxls); ralsei = scr_marker_fromasset(findsprite(spr_ralsei_walk_down, _layer)); ralsei.sprite_index = spr_ralsei_dress; ralsei.depth = rouxls.depth + 5; ralsei.image_speed = 0; ralsei.image_index = 0; if (cutscene == 7) { starwalker = scr_marker_fromasset(findsprite(spr_npc_originalstarwalker_walk_down, _layer)); starwalker.depth = rouxls.depth + 10; starwalker.image_speed = 0; starwalker.image_index = 0; } }); c_msgside("bottom"); c_speaker("rouxls"); c_msgsetloc(0, "\\E4* Well^1, well^1, well^1. Kris^1. It seemseth^1, the truest darling of your heart.../", "obj_dw_castle_church_climb_slash_Other_19_gml_470_0"); c_msgnextloc("\\E2* Is none other^1, than thou're Best Friend./", "obj_dw_castle_church_climb_slash_Other_19_gml_471_0"); c_facenext("ralsei", "K"); c_msgnextloc("\\EK* Umm^1, could you move^1, please...?/", "obj_dw_castle_church_climb_slash_Other_19_gml_473_0"); c_facenext("rouxls", "5"); c_msgnextloc("\\E5* Oh^1. Righteth you art!/%", "obj_dw_castle_church_climb_slash_Other_19_gml_475_0"); c_talk_wait(); c_wait(15); if (cutscene == 5) { ccon = 2.1; c_customfunc(function() { with (rouxls) { depth = other.curtain.depth - 1; sprite_index = spr_rouxls_righthandup; var loc = findspriteinfo(spr_rouxls_righthandup, "cutscene5"); scr_lerpvar("x", x, loc.x, 15, 2, "out"); } }); c_wait(15); c_customfunc(function() { with (ralsei) { var startloc = { x: x, y: y }; var endloc = findspriteinfo(spr_ralsei_walk_down_blush, "cutscene5"); var wait = scr_returnwait_instance(startloc, endloc, 4); show_debug_message_concat("waittime=", wait); scr_lerpvar("x", x, endloc.x, wait); scr_lerpvar("y", y, endloc.y, wait); image_speed = 0.25; var func = function() { image_index = 0; image_speed = 0; }; delay_function(func, wait); } }); c_wait(15); c_speaker("ralsei"); c_msgsetloc(0, "\\E1* Turns out the other princesses they put up here^1, mostly left.../", "obj_dw_castle_church_climb_slash_Other_19_gml_509_0"); c_msgnextloc("\\E2* But^1, I can be your princess^1, Kris^1! If you want me to be!/", "obj_dw_castle_church_climb_slash_Other_19_gml_510_0"); var opt1 = stringsetloc("#Nah bro...", "obj_dw_castle_church_climb_slash_Other_19_gml_511_0"); var opt2 = stringsetloc("#Of course!", "obj_dw_castle_church_climb_slash_Other_19_gml_512_0"); scr_readychoicer(opt1, opt2, undefined, undefined, 1, false); c_talk(); c_wait_talk(); } else if (cutscene == 7) { ccon = 3; c_customfunc(function() { with (ralsei) { var loc = findspriteinfo(spr_ralsei_walk_down, "cutscene7"); scr_lerpvar("x", x, loc.x, 12, 2, "out"); } with (rouxls) { depth = other.curtain.depth - 1000; sprite_index = spr_rouxls_righthandup; var loc = findspriteinfo(spr_rouxls_righthandup, "cutscene7"); scr_lerpvar("x", x, loc.x, 12, 2, "out"); } }); c_wait(12); c_wait(30); c_customfunc(function() { with (starwalker) { var start = { x: x, y: y }; var loc = findspriteinfo(spr_npc_originalstarwalker_walk_down, "cutscene7"); var wait = scr_returnwait_instance(start, loc, 2); show_debug_message_concat("wait=", wait); scr_lerpvar("x", x, loc.x, wait); scr_lerpvar("y", y, loc.y, wait); image_speed = 0.25; var res = function() { image_index = 0; image_speed = 0; }; delay_function(res, wait + 1); } }); c_wait(30); c_speaker("starwalker"); c_msgsetloc(0, "* \\cYStar walker\\cW/%", "obj_dw_castle_church_climb_slash_Other_19_gml_558_0"); c_talk(); c_wait_box_end(0); c_customfunc(function() { with (ralsei) { sprite_index = spr_ralsei_dress_clap; image_speed = 1/3; } }); c_wait_talk(); c_wait(15); c_actortokris(); c_terminatekillactors(); } } if (ccon == 2.1 && global.choice != -1) { if (global.choice == 0) { k_d(4); ralseiScene5Choice = 0; sawCutscene5 = 1; ccon = 3; c_wait(15); c_customfunc(function() { ralsei.sprite_index = spr_ralsei_down_lookdown; }); c_sndplay(snd_item); c_speaker("ralsei"); c_msgsetloc(0, "\\ED* Umm^1, okay^1! I suppose I do have more experience being a prince.../", "obj_dw_castle_church_climb_slash_Other_19_gml_591_0"); c_msgnextloc("\\E2* I hope that will be sufficient for you!!/%", "obj_dw_castle_church_climb_slash_Other_19_gml_592_0"); c_talk(); c_wait_box(1); c_customfunc(function() { ralsei.sprite_index = spr_ralsei_walk_down; }); c_wait_talk(); c_actortokris(); c_terminatekillactors(); } if (global.choice == 1) { k_d(4); ccon = 3; ralseiScene5Choice = 1; sawCutscene5 = 1; c_speaker("ralsei"); c_msgsetloc(0, "\\EP* Really!^1? Oh^1, I'm so excited!/%", "obj_dw_castle_church_climb_slash_Other_19_gml_609_0"); c_talk_wait(); c_customfunc(function() { with (ralsei) { snd_play(snd_drumroll); sprite_index = spr_ralsei_dress_spin; image_index = 0; var delay = 12; with (scr_animate_speed(1/3)) delay = maxtime; var func = function() { snd_play(snd_magicsprinkle); image_speed = 0; image_index = 0; sprite_index = spr_ralsei_dress_pose; with (scr_marker_ext(x, y + 32, spr_shine_white, 2, 2)) { image_index = 3; depth = 5000; hspeed = -2; vspeed = -4; gravity = 0.1; scr_lerpvar("image_alpha", 1, 0, 30); scr_lerp_imageblend(id, c_white, #FE96A0, 30); } }; delay_function(func, delay + 3); } }); c_wait(30); c_speaker("ralsei"); c_msgsetloc(0, "\\E2* I've been a prince for a while^1, but I haven't been a princess yet./", "obj_dw_castle_church_climb_slash_Other_19_gml_654_0"); c_msgnextloc("\\E1* I suppose the only difference is how you present yourself.../", "obj_dw_castle_church_climb_slash_Other_19_gml_655_0"); c_msgnextloc("\\E2* But^1, it's fun to try new things^1, isn't it...?/", "obj_dw_castle_church_climb_slash_Other_19_gml_656_0"); c_msgnextloc("\\E1* ..^1. as long as it's..^1. what other people want^1, of course!/%", "obj_dw_castle_church_climb_slash_Other_19_gml_657_0"); c_talk(); c_wait_box(1); c_var_instance(ralsei, "sprite_index", spr_ralsei_dress_excited); c_wait_box(2); c_customfunc(function() { with (ralsei) { sprite_index = spr_ralsei_dress_clap; image_index = 2; } }); c_wait_box(3); c_customfunc(function() { with (ralsei) { sprite_index = spr_ralsei_dress; image_index = 0; } }); c_wait_talk(); c_actortokris(); c_terminatekillactors(); } } if (ccon == 2 && cutscene == 6) { ccon = 3; sawCutscene6 = true; scr_cutscene_make(); scr_maincharacters_actors(); c_pannable(1); c_wait(30); c_customfunc(function() { snd_play(snd_noise); curtain.image_index = 1; var _layer = "cutscene6"; ralsei = scr_marker_fromasset(findsprite(spr_ralsei_walk_down, _layer)); if (ralseiScene5Choice == 1) ralsei.sprite_index = spr_ralsei_dress; scr_depth(ralsei); ralsei.image_speed = 0; ralsei.image_index = 0; }); c_wait(15); if (ralseiScene5Choice == 1) { c_customfunc(function() { with (ralsei) { sprite_index = spr_ralsei_dress_clap; image_speed = 1/3; } }); } else { c_customfunc(function() { with (ralsei) { sprite_index = spr_ralsei_pose; x -= 16; } }); } c_msgside("bottom"); c_speaker("ralsei"); c_msgsetloc(0, "\\EP* Amazing job^1, Kris!/%", "obj_dw_castle_church_climb_slash_Other_19_gml_726_0"); c_talk(); c_wait_talk(); if (ralseiScene5Choice == 1) { c_customfunc(function() { with (ralsei) { snd_play(snd_drumroll); sprite_index = spr_ralsei_dress_spin; image_index = 0; image_speed = 0; var delay = 12; with (scr_animate_speed(1/3)) delay = maxtime; var func = function() { snd_play(snd_magicsprinkle); image_speed = 0; image_index = 0; sprite_index = spr_ralsei_dress_pose; with (scr_marker_ext(x, y + 32, spr_shine_white, 2, 2)) { image_index = 3; depth = 5000; hspeed = -2; vspeed = -4; gravity = 0.1; scr_lerpvar("image_alpha", 1, 0, 30); scr_lerp_imageblend(id, c_white, #FE96A0, 30); } }; delay_function(func, delay + 3); } }); c_wait(30); c_wait(15); } c_wait(15); c_actortokris(); c_terminatekillactors(); } if (ccon == 2 && cutscene == 8) { sawCutscene6 = true; ccon = 3; scr_cutscene_make(); scr_maincharacters_actors(); c_pannable(1); c_wait(30); c_customfunc(function() { snd_play(snd_noise); curtain.image_index = 1; var _layer = "cutscene5"; starwalker = scr_marker_fromasset(findsprite(spr_npc_originalstarwalker_walk_down, _layer)); scr_depth(starwalker); starwalker.image_speed = 0; starwalker.y += 2; starwalker.image_index = 0; }); c_wait(15); c_customfunc(function() { with (starwalker) { var start = { x: x, y: y }; var loc = findspriteinfo(spr_npc_originalstarwalker_walk_down, "cutscene7"); loc.y += 12; var wait = scr_returnwait_instance(start, loc, 2); show_debug_message_concat("wait=", wait); scr_lerpvar("x", x, loc.x, wait); scr_lerpvar("y", y, loc.y, wait); image_speed = 0.25; var res = function() { image_index = 0; image_speed = 0; }; delay_function(res, wait + 1); } }); c_wait(15); c_msgside("bottom"); c_speaker("starwalker"); c_msgsetloc(0, "* \\cYStar walker\\cW/%", "obj_dw_castle_church_climb_slash_Other_19_gml_820_0"); c_talk_wait(); c_wait(30); } if (ccon == 3 && !instance_exists(obj_cutscene_master)) { updateSeenCutscenes(); global.interact = 1; ccon = 4; fade = scr_marker_ext(camerax(), cameray(), spr_pxwhite, 640, 480, undefined, undefined, c_black, -50); with (fade) { image_alpha = 0; scr_lerpvar("image_alpha", 0, 1, 15); } var endseq = function() { snd_stop(global.currentsong[1]); instance_create(0, 0, obj_persistentfadein); global.interact = 3; global.entrance = 3; room_goto(room); }; delay_function(endseq, 30); }