layer_set_visible("DEBUG_ASSETS", 0); layer_set_visible("NPCs", 0); scr_plat_assetlayer("PAPERSCRAPS", true); _ROOM_FLAG = 1317; _BIT_DOOR = 0; _BIT_SIGNERY_LEFT = 1; _BIT_SIGNERY_RIGHT = 2; con = 0; timer = 0; init = 0; doormarker = -4; keycon = 0; keycontimer = 0; key_x = 0; key_y = 0; keymarker = -4; signcon = 0; signcontimer = 0; sign_x = 0; sign_y = 0; signmarker = -4; doorinteract = -4; doorcon = 0; stuckcon = 0; stucktimer = 0; conspiracy_scattered = false; concon = 0; read_documents = false; scatter_papers = function() { exit; }; npc_sign_left = scr_makenpc_fromasset(findsprite(spr_dw_fcastle_right_puzzle_signery, "NPCs", c_red)); npc_sign_left.marker.image_blend = c_white; npc_sign_left.marker.reflect_jump_y = 4; readanyway = false; with (npc_sign_left) scr_platswap_init(self, false); scr_setnpclogic(npc_sign_left, {}, function(arg0) { snd_play_flowery(210); global.msc = -99; global.choice = -1; global.choicemsg = [stringsetloc("#Yes", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_106_0"), stringsetloc("#No", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_107_0"), stringset(""), stringset("")]; scr_speaker("no_name"); msgsetloc(0, "* (It's Signery.)/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_112_0"); msgnextloc("* (It seems to have a hint to the puzzle.)/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_113_0"); msgnext("\\C2"); return 1; }, function() { if (global.choice == 0) { global.msc = -99; global.choice = -1; global.choicemsg = [stringsetloc("Ralsei's#advice#please", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_122_0"), stringsetloc("#Read Sign#Anyway", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_123_0"), stringset(""), stringset("")]; scr_speaker("ralsei"); msgsetloc(0, "\\EN* Kris^1, why don't you just ask me for help^1, first...?/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_128_0"); msgnext("\\C2"); return 2; } else { scr_speaker("no_name"); msgsetloc(0, "* (\"The trunk and stem of the sign.\")/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_134_0"); msgnextloc("* (\"This is the part of the sign for not reading the sign.\")/%", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_135_0"); d_make(); } }, function() { if (global.choice == 0) { scr_speaker("ralsei"); msgsetloc(0, "\\E2* Thanks^1, Kris.../", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_141_0"); msgnextloc("\\EJ* (That board can move PLATFORMS we can JUMP ON.)/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_142_0"); msgnextloc("\\EJ* (Parts of PLATFORMS become solid BEHIND PAPER.)/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_143_0"); msgnextsubloc("\\EJ* (Try using ~1 to switch PLATFORMs when using it!)/", scr_get_input_name(4), "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_144_0"); msgnextloc("\\EJ* (By the way^1, we can only jump three tiles high.)/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_145_0"); msgnextloc("\\EK* (I^1, um^1, counted.)/%", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_146_0"); d_make(); } else { if (readanyway) { scr_speaker("no_name"); msgsetloc(0, "* (\"This is a special area in the sign's hair for reading it twice or more.\")/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_151_0"); msgnextloc("* (\"It's floral-scented^1, and remember^1, sniffing is free.\")/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_152_0"); scr_anyface_next("ralsei", "n"); msgnextloc("\\En* EVERYTHING in this stupid castle is already FLORAL SCENTED!/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_154_0"); scr_anyface_next("susie", "K"); msgnextloc("\\EK* Dude^1, don't be an anti-smeller^1. It's FREE sniffs./%", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_156_0"); } else { readanyway = true; scr_speaker("no_name"); msgsetloc(0, "* (The sign says...)/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_160_0"); msgnextloc("* (\"C'mon^1, Kris^1. The true clue was friendship^1. Ask Ralsei.\")/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_161_0"); msgnextloc("* (\"Or his grass will be green with envy.\")/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_162_0"); scr_anyface_next("ralsei", "l"); msgnextloc("\\El* Are you two DONE reading the sign yet?/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_164_0"); scr_anyface_next("susie", "2"); msgnextloc("\\E2* Nah^1. We rule at not reading things we're looking at./%", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_166_0"); } d_make(); } }); npc_sign_right = scr_makenpc_fromasset(findsprite(spr_dw_fcastle_right_puzzle_signery, "NPCs", c_lime)); npc_sign_right.marker.image_blend = c_white; npc_sign_right.cantalk = 1; npc_sign_right.marker.reflect_jump_y = 4; with (npc_sign_right) { scr_platswap_init(self, false); remx = x; var signery_state = 0; if (scr_flag_get_ext(other._ROOM_FLAG, other._BIT_SIGNERY_LEFT, 1)) signery_state = -1; else if (scr_flag_get_ext(other._ROOM_FLAG, other._BIT_SIGNERY_RIGHT, 1)) signery_state = 1; marker.visible = (global.flag[1862] == 0 || global.flag[1862] == 3) && signery_state > 0; if (!marker.visible) { scr_delay_var("x", x + 1000, 3); with (marker) scr_delay_var("visible", true, 3); } } scr_setnpclogic(npc_sign_right, {}, function(arg0) { if (!npc_sign_right.cantalk) return -1; if (global.flag[1458] > 0) { snd_play_flowery(15); scr_speaker("no_name"); msgsetloc(0, "* (\"A sign of Flowery's face^1. Perfect for Raly's room.\")/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_188_0"); scr_anyface_next("ralsei", "U"); msgnextloc("\\EU* I don't think my room^1, needs this type of.../", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_190_0"); scr_msgno_func(2, function() { with (obj_dw_fcastle_right_puzzle) { with (npc_sign_right.marker) visible = 0; with (npc_sign_right.mysolid) instance_destroy(); with (npc_sign_right) { issolid = 0; cantalk = 0; } snd_play(snd_item); snd_play_flowery(678); } global.flag[1862] = 2; }, 1); scr_anyface_next("susie", "L"); msgnextloc("\\EL* Gotta start somewhere^1, man./%", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_205_0"); } else if (global.flag[710] == 2) { snd_play_flowery(15); scr_speaker("no_name"); msgsetloc(0, "* (\"A sign of Flowery's face^1. Perfect for Raly's room.\")/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_212_0"); scr_anyface_next("susie", "2"); msgnextloc("\\E2* Kinda got a point.../", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_214_0"); scr_anyface_next("ralsei", "Q"); msgnextloc("\\EQ* My room already has enough^1, thank you./", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_216_0"); scr_anyface_next("susie", "0"); msgnextloc("\\E0* Huh..^1. 'k then./", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_218_0"); scr_msgno_func(7, function() { with (obj_dw_fcastle_right_puzzle) { with (npc_sign_right.marker) visible = 0; with (npc_sign_right.mysolid) instance_destroy(); with (npc_sign_right) { issolid = 0; cantalk = 0; } snd_play(snd_item); snd_play_flowery(678); } global.flag[1862] = 1; }); scr_anyface_next("no_name", 0); msgnextloc("* (Susie got the sign for your room.)/%", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_235_0"); } else if (arg0 || global.flag[1862] == 3) { scr_speaker("susie"); msgsetloc(0, "\\E0* (What's..^1. in his room^1, anyway...?)/%", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_240_0"); } else { global.flag[1862] = 3; snd_play_flowery(15); scr_speaker("no_name"); msgsetloc(0, "* (\"A sign of Flowery's face^1. Perfect for Raly's room.\")/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_245_0"); scr_anyface_next("ralsei", "l"); msgnextloc("\\El* My..^1. my room doesn't need anything!/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_247_0"); scr_anyface_next("no_name", 0); msgnextloc("* (\"Raly might disagree^1, but his room needs a little spice and flavor.\")/", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_249_0"); scr_anyface_next("ralsei", "p"); msgnextloc("\\Ep* I'm^1, I'm not arguing with a sign!/%", "obj_dw_fcastle_right_puzzle_slash_Create_0_gml_251_0"); } });