|
1
|
if (!init)
|
|
2
|
{
|
|
3
|
var pos = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} (undefined, "prophecy");
|
|
4
|
prophecy = instance_create(pos[0] + 150, pos[1] + 90, obj_dw_church_prophecy);
|
|
5
|
prophecy.extflag = "musicalprophecybig";
|
|
6
|
prophecy.musickind = 3;
|
|
7
|
prophecyactive = false;
|
|
8
|
prophecy.depth = curtain_rope.depth + 10;
|
|
9
|
init = 1;
|
|
10
|
}
|
|
11
|
if (rope_pull)
|
|
12
|
{
|
|
13
|
rope_pull_count++;
|
|
14
|
sound_play(snd_wing);
|
|
15
|
if (rope_pull_count == 1)
|
|
16
|
{
|
|
17
|
curtain_open = true;
|
|
18
|
scr_lerp_instance_var(curtain_rope, "y", curtain_rope.ystart, curtain_rope.ystart + 40, 10, 3, "out");
|
|
19
|
}
|
|
20
|
else
|
|
21
|
{
|
|
22
|
curtain_open_more = true;
|
|
23
|
scr_lerp_instance_var(curtain_rope, "y", curtain_rope.ystart + 40, curtain_rope.ystart + 80, 10, 3, "out");
|
|
24
|
}
|
|
25
|
rope_pull = false;
|
|
26
|
}
|
|
27
|
if (curtain_open)
|
|
28
|
{
|
|
29
|
scr_lerp_var_instance(id, "curtain_x_pos", 300, 500, 20, 4, "out");
|
|
30
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("curtspace", curtspace, 34, 20, 4, "out");
|
|
31
|
prophecyactive = true;
|
|
32
|
curtain_open = false;
|
|
33
|
}
|
|
34
|
if (curtain_open_more)
|
|
35
|
{
|
|
36
|
scr_lerp_var_instance(id, "curtain_x_pos", 500, 900, 60, 4, "out");
|
|
37
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("curtspace", curtspace, 30, 20, 4, "out");
|
|
38
|
curtain_open_more = false;
|
|
39
|
}
|
|
40
|
with (obj_dw_church_prophecy)
|
|
41
|
{
|
|
42
|
var pos = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} (undefined, "prophecy");
|
|
43
|
setxy(pos[0] + 190, pos[1] + 100);
|
|
44
|
active = other.prophecyactive;
|
|
45
|
}
|