var cam = scr_getcam(); if (siner < 3) siner++; scr_populatechars(); if (!init) init = 1; if (!madelooker && siner > 2) { var trig = false; if (cam.x <= makex) trig = true; if (trig) { scr_debug_print(makex); scr_debug_print(cam.x); scr_debug_print("madelooker"); makelooker(); madelooker = true; } } with (zenlooker) { if (myinteract == 3) { global.interact = 1; if (!talked) { scr_speaker("no_name"); msgsetloc(0, "* I'm Zenlooker/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_38_0"); msgnextloc("* I look at Zen/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_39_0"); msgnextloc("* I've patterned myself after the world's greaterst looker/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_40_0"); msgnextloc("* And/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_41_0"); msgnextloc("* Stop walking around/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_42_0"); msgnextloc("* You're $$$$ing the Zen/%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_43_0"); } else { scr_speaker("no_name"); msgsetloc(0, "* Stop walking I'm trying to meditate with the sand and crap/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_48_0"); msgnextloc("* I was almost enlightened until you stepped around like Lalalala/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_49_0"); msgnextloc("* IDIOT!/%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_50_0"); } d_make(); myinteract = 99; talked++; } if (myinteract > 3 && d_ex()) { var trig = 0; if (!i_ex(obj_writer)) trig = 1; with (obj_writer) { if (halt) trig = 1; } if (!trig) marker.image_index += 0.25; } if (myinteract == 99 && !d_ex()) { marker.image_index = 0; myinteract = 0; global.interact = 0; } } if (!madefox) { var trig = false; var count = 0; with (obj_zen_sand) count = printcount; if (count > 60) trig = true; if (trig) { with (safezone) { if (place_meeting(x, y, obj_mainchara) || place_meeting(x, y, obj_caterpillarchara)) trig = false; } } if (trig) { madefox = true; makefox(1); } } with (fox) { if (myinteract == 3) { global.interact = 1; if (!talked) { scr_speaker("no_name"); msgsetloc(0, "* You ruined the Zen and now I have to use my big fluffy tail to swicsh it all up.../%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_132_0"); } else { scr_speaker("no_name"); msgsetloc(0, "* Susie use little tail and switshed away leaves on a stump before sitting down.../", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_137_0"); scr_anyface_next("susie", "q"); msgnextloc("\\Eq* NO!!!!!!!!!!!!!!!!!!!!!!&!!!!!!!!!!!!!!!/%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_139_0"); } d_make(); myinteract = 99; talked++; } if (myinteract > 3 && d_ex()) { var trig = 0; if (!i_ex(obj_writer)) trig = 1; with (obj_writer) { if (halt) trig = 1; if (msgno > 0) trig = 1; } if (!trig) marker.image_index += 0.25; } if (myinteract == 99 && !d_ex()) { marker.image_index = 0; myinteract = 0; global.interact = 0; } } with (chair) { if (myinteract == 5 && !d_ex()) { timer++; if (timer == 1) { if (global.flag[1861] == 0) { nopillow = true; snd_play(snd_item); } else { for (var i = 0; i < 4; i++) { scr_script_delayed(snd_stop, 1 + (5 * i), scr_84_get_sound("snd_flowery_voiceclip_my_king")); scr_script_delayed(snd_play_flowery, 1 + (5 * i), 197, 1, irandom_range(7, 15) * 0.1); } } } if (timer == 21 && global.flag[1861] == 0) snd_play_flowery(131); if (timer == 41) { if (global.flag[1861] == 0) { global.flag[1861] = 1; if (global.flag[1391] != 1) { scr_speaker("susie"); msgsetloc(0, "\\EK* (..^1. sure hope it doesn't say that every time.)/%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_193_0"); } else { scr_speaker("susie"); msgsetloc(0, "\\E7* Great^1, it's so quiet for a pillow./%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_196_0"); } } else if (global.flag[1391] != 1) { scr_speaker("susie"); msgsetloc(0, "\\EK* (He'll just have to kinda^1, uh^1, not roll around.)/%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_202_0"); } else { scr_speaker("susie"); msgsetloc(0, "\\EA* Yeah^1, it's a really quiet pillow./%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_205_0"); } d_make(); myinteract = 99; } } if (myinteract == 3) { myinteract = 99; global.interact = 1; if (global.flag[1458] > 0) { if (!talked && global.flag[1861] == 0) { scr_speaker("susie"); msgsetloc(0, "\\E0* (Psst..^1. Kris...)/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_219_0"); msgnextloc("\\E1* (Maybe we could take the chair's pillow?)/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_220_0"); msgnextloc("\\E2* (Could be awesome for Ralsei's room?)/%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_221_0"); } else { scr_speaker("no_name"); msgsetloc(0, "* (You accidentally drummed your fingers on the pillow.)/%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_224_0"); } timer = 0; myinteract = 5; } else { global.flag[1861] = 3; if (!talked) { scr_speaker("no_name"); msgsetloc(0, "* (It's a chair^1. It's called Chairery.)/", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_233_0"); msgnextloc("* (It's too ideal.)/%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_234_0"); } else { scr_speaker("no_name"); msgsetloc(0, "* (A chair that's too perfect to sit on.)/%", "obj_dw_fcastle_zenlooker_slash_Step_0_gml_239_0"); } } d_make(); talked++; } if (global.flag[1861] == 1 || nopillow) marker.image_index = 1; if (myinteract == 99 && d_ex()) { var which = 0; if (talked == 1) which = 1; if (scr_getmsgno_d() == which && global.flag[1458] == 0) { with (obj_writer) { if (halt) { if (!variable_instance_exists(id, "myking")) { myking = 1; snd_stop(scr_84_get_sound("snd_flowery_voiceclip_my_king")); snd_play_flowery(197, 1, random_range(0.8, 0.99)); } } } } } if (myinteract == 99 && !d_ex()) { myinteract = 0; global.interact = 0; } }