with (tasquemanager) { with (marker) image_index += 0.16666666666666666; if (myinteract == 3) { global.interact = 1; scr_speaker("no_name"); msgsetloc(0, "* Divine Angel^1, Master of Order and Chaos.../", "obj_dw_castle_church_entrance_slash_Other_15_gml_11_0"); msgnextloc("* Please^1, bless my cats so they may do extra fire damage./", "obj_dw_castle_church_entrance_slash_Other_15_gml_12_0"); msgnextloc("* And blesseth the cats of others^1, so that they may also do extra fire damage./%", "obj_dw_castle_church_entrance_slash_Other_15_gml_13_0"); if (talked) { scr_speaker("no_name"); msgsetloc(0, "* Pray to the Angel^1, Kris!/%", "obj_dw_castle_church_entrance_slash_Other_15_gml_18_0"); } d_make(); myinteract = 999; talked++; } if (myinteract == 999 && !d_ex()) { myinteract = 0; global.interact = 0; } } with (tasque) { with (marker) image_index += 0.16666666666666666; if (myinteract == 3) { global.interact = 1; scr_speaker("no_name"); msgsetloc(0, "* (It's praying for Maus to get smashed with a giant cartoon mallet)/%", "obj_dw_castle_church_entrance_slash_Other_15_gml_49_0"); d_make(); myinteract = 999; talked++; } if (myinteract == 999 && !d_ex()) { myinteract = 0; global.interact = 0; } } with (maus) { with (marker) image_index += 0.16666666666666666; if (myinteract == 3) { global.interact = 1; scr_speaker("no_name"); msgsetloc(0, "* (It's praying for Good cheeses)/%", "obj_dw_castle_church_entrance_slash_Other_15_gml_80_0"); d_make(); myinteract = 999; talked++; } if (myinteract == 999 && !d_ex()) { myinteract = 0; global.interact = 0; } } with (wafer) { if (myinteract == 3) { global.interact = 1; scr_speaker("no_name"); msgsetloc(0, "* Ah^1, our benefactor^1. What is it that you need?/", "obj_dw_castle_church_entrance_slash_Other_15_gml_111_0"); var opt1 = stringsetloc("#Cure Poison", "obj_dw_castle_church_entrance_slash_Other_15_gml_112_0"); var opt2 = stringsetloc("#Raise Dead", "obj_dw_castle_church_entrance_slash_Other_15_gml_113_0"); var opt3 = stringsetloc("Nothing", "obj_dw_castle_church_entrance_slash_Other_15_gml_114_0"); scr_readychoicer(opt1, opt2, opt3); myinteract = 4; d_make(); } if (myinteract == 4 && global.choice != -1) { k_d(1); if (global.choice == 0) { var havepoison = false; for (var i = 0; i < array_length(global.item); i++) { if (global.item[i] == 32) { show_debug_message_concat("global.item[", i, "] = posion"); global.item[i] = 66; havepoison = true; } } for (var i = 0; i < array_length(global.pocketitem); i++) { if (global.pocketitem[i] == 32) { show_debug_message_concat("global.pocketitem[", i, "] = posion"); global.pocketitem[i] = 66; havepoison = true; } } if (!havepoison) { scr_speaker("no_name"); msgsetloc(0, "* You do not possess any poison./%", "obj_dw_castle_church_entrance_slash_Other_15_gml_150_0"); d_make(); myinteract = 99; } else { scr_speaker("no_name"); msgsetloc(0, "* Behold^1, the power vested within me!/%", "obj_dw_castle_church_entrance_slash_Other_15_gml_157_0"); d_make(undefined, undefined, 2); myinteract = 13; } } if (global.choice == 1) { myinteract = 12; scr_speaker("no_name"); msgsetloc(0, "* Alright./%", "obj_dw_castle_church_entrance_slash_Other_15_gml_166_0"); d_make(); } if (global.choice == 2) { scr_speaker("no_name"); msgsetloc(0, "* Those who ask nothing^1, shall receive mountains in return^1. Well met./%", "obj_dw_castle_church_entrance_slash_Other_15_gml_172_0"); d_make(); myinteract = 99; } } if (myinteract == 13 && !d_ex()) { msgsetloc(0, "* (Your \\cYS.POISON\\cW became \\cYS.POTION\\cW.)/%", "obj_dw_castle_church_entrance_slash_Other_15_gml_180_0"); snd_play(snd_power); d_make(); myinteract = 14; marker.image_index = 0; } if (myinteract == 14 && !d_ex()) myinteract = 99; if (myinteract == 12 && !d_ex()) { marker.image_index = 0; myinteract = -1; scr_delay_var("myinteract", 99, 30); snd_play(snd_power, 0.2, 0.4); snd_play(snd_power, 0.6, 0.6); snd_play(snd_ghostappear, 0.5, 0.8); snd_play(snd_ghostappear, 0.9, 1); var cx = camerax(); var cy = cameray(); with (instance_create(cx + 100, cy + 320, obj_object)) { image_alpha = 0; scr_lerpvar("image_alpha", 0, 1, 12, 2, "out"); hspeed = 3; friction = 0.05; vspeed = -1; timer = 0; sprite_index = spr_npc_guei; scr_size(-2, 2); image_speed = 0.2; draw_func = function() { timer++; if (timer == 20) scr_lerpvar("image_alpha", 1, 0, 40, -1, "out"); draw_self(); if (timer >= 60) instance_destroy(); }; } with (instance_create(cx + 540, cy + 320, obj_object)) { image_alpha = 0; image_index = 2; scr_lerpvar("image_alpha", 0, 1, 12, 2, "out"); hspeed = -3; vspeed = -1; friction = 0.05; timer = 0; sprite_index = spr_npc_guei; scr_size(2, 2); image_speed = 0.2; draw_func = function() { timer++; if (timer == 20) scr_lerpvar("image_alpha", 1, 0, 40, -1, "out"); draw_self(); if (timer >= 60) instance_destroy(); }; } var wispcount = irandom_range(6, 8); for (var i = 0; i < wispcount; i++) { var loc = { x: cx + 320, y: cy + 240 }; loc.x += lengthdir_x(200, (i * 360) / wispcount) + random_range(-30, 30); loc.y += lengthdir_y(200, (i * 360) / wispcount) + random_range(-30, 30); with (instance_create(loc.x, loc.y, obj_object)) { depth = 500; sprite_index = choose(spr_gueiflame_white, spr_guei_wisp); image_blend = merge_color(#3DE7FF, #CDFEFF, random_range(0.1, 0.9)); image_speed = 0.16666666666666666; gravity = random_range(-0.01, -0.1); vspeed = -0.125; scr_size(2, 2); timer = irandom_range(-15, 10); image_alpha = 0; scr_lerpvar("image_alpha", 0, 1, 15); draw_func = function() { timer++; if (timer == 20) scr_lerpvar("image_alpha", 1, 0, 15); draw_self(); if (timer >= 30) instance_destroy(); }; } } } if (myinteract > 3 && myinteract != 14 && 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; global.interact = 0; myinteract = 0; } } with (noclimb) { if (myinteract == 3) { global.interact = 1; scr_speaker("no_name"); msgsetloc(0, "* (Insufficient staff for climbing area!)/%", "obj_dw_castle_church_entrance_slash_Other_15_gml_317_0"); d_make(); myinteract = 999; talked++; } if (myinteract == 999 && !d_ex()) { myinteract = 0; global.interact = 0; } } with (sweet) { if (myinteract == 3) { global.interact = 1; scr_speaker("no_name"); msgsetloc(0, "* Yo^1! We just finished modding this organ.../", "obj_dw_castle_church_entrance_slash_Other_15_gml_337_0"); msgnextloc("* Check the back wall^1, it can play all kinds of sweet noises!/", "obj_dw_castle_church_entrance_slash_Other_15_gml_338_0"); msgnextloc("* ..^1. kinda./%", "obj_dw_castle_church_entrance_slash_Other_15_gml_339_0"); if (talked) { scr_speaker("no_name"); msgsetloc(0, "* ..^1. to be real^1, we kind of..^1. broke it./", "obj_dw_castle_church_entrance_slash_Other_15_gml_344_0"); msgnextloc("* But^1, you press the keys^1, and we'll sing the note for you!/%", "obj_dw_castle_church_entrance_slash_Other_15_gml_345_0"); } d_make(); myinteract = 999; 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 == 999 && !d_ex()) { myinteract = 0; marker.image_index = 0; global.interact = 0; } } with (kk) { if (myinteract == 3) { global.interact = 1; var word = "Musical Instrument"; with (obj_dw_church_organ) { for (var i = 0; i < array_length(selectors); i++) { if (mysnd == selectors[i].snd) { word = selectors[i].inst; break; } } } scr_speaker("no_name"); msgsetsubloc(0, "* I'm a ~1!/%", word, "obj_dw_castle_church_entrance_slash_Other_15_gml_390_0"); d_make(); myinteract = 999; 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 == 999 && !d_ex()) { myinteract = 0; marker.image_index = 0; global.interact = 0; } }