|
1
|
if (!init)
|
|
2
|
{
|
|
3
|
init = 1;
|
|
4
|
var pos1 = 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;
} ("gen", "p1");
|
|
5
|
var pos2 = 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;
} ("gen", "p2");
|
|
6
|
var pos3 = 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;
} ("gen", "p3");
|
|
7
|
prophecy[0] = instance_create(pos1[0] + 150, pos1[1] + 90, obj_dw_church_prophecy);
|
|
8
|
prophecy[1] = instance_create(pos2[0] + 150, pos2[1] + 90, obj_dw_church_prophecy);
|
|
9
|
prophecy[2] = instance_create(pos3[0] + 150, pos3[1] + 90, obj_dw_church_prophecy);
|
|
10
|
prophecy[2].notext = true;
|
|
11
|
prophecy[0].extflag = "initial1";
|
|
12
|
prophecy[1].extflag = "initial2";
|
|
13
|
prophecy[2].extflag = "initial2";
|
|
14
|
prophecy[0].fade_edges = true;
|
|
15
|
prophecy[1].fade_edges = true;
|
|
16
|
prophecy[2].fade_edges = true;
|
|
17
|
}
|
|
18
|
if (lightinit == 0)
|
|
19
|
{
|
|
20
|
if (scr_checklocationscr_checklocation
function scr_checklocation(arg0 = id, arg1, arg2, arg3 = 0)
{
if (!i_ex(arg0))
{
debug_message("target instance does not exist");
return false;
}
if (abs(arg0.x - arg1) <= arg3 && abs(arg0.y - arg2) <= arg3)
return true;
else
return false;
} (1049, 2220, 258, 40))
|
|
21
|
{
|
|
22
|
roomglow.active = true;
|
|
23
|
roomglow.actind = 1;
|
|
24
|
with (obj_dw_church_prophecy)
|
|
25
|
image_alpha = 1.2;
|
|
26
|
with (obj_light_area_mask)
|
|
27
|
on_amount = 0.1;
|
|
28
|
with (obj_mainchara)
|
|
29
|
nudgey = -20;
|
|
30
|
}
|
|
31
|
var entrance2 = -4;
|
|
32
|
with (obj_markerAny)
|
|
33
|
{
|
|
34
|
if (image_index == 2)
|
|
35
|
entrance2 = id;
|
|
36
|
}
|
|
37
|
if (i_ex(entrance2))
|
|
38
|
{
|
|
39
|
if (point_distance(obj_mainchara.x, obj_mainchara.y, entrance2.x, entrance2.y) < 40)
|
|
40
|
{
|
|
41
|
with (obj_mainchara)
|
|
42
|
nudgey = -20;
|
|
43
|
}
|
|
44
|
}
|
|
45
|
lightinit = 1;
|
|
46
|
}
|
|
47
|
scr_populatecharsscr_populatechars
function scr_populatechars()
{
if (!variable_instance_exists(id, "kris"))
kris = 0;
if (!variable_instance_exists(id, "ralsei"))
ralsei = 0;
if (!variable_instance_exists(id, "susie"))
susie = 0;
if (!variable_instance_exists(id, "noelle"))
noelle = 0;
if (kris == 0)
{
with (obj_mainchara)
other.kris = id;
}
if (susie == 0)
{
with (obj_caterpillarchara)
{
if (name == "susie")
other.susie = id;
}
}
if (ralsei == 0)
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
other.ralsei = id;
}
}
if (noelle == 0)
{
with (obj_caterpillarchara)
{
if (name == "noelle")
other.noelle = id;
}
}
} ();
|
|
48
|
var prophecyactive = 0;
|
|
49
|
var whichproph = -1;
|
|
50
|
with (obj_trigger)
|
|
51
|
{
|
|
52
|
if (place_meeting(x, y, obj_mainchara))
|
|
53
|
{
|
|
54
|
prophecyactive = 1;
|
|
55
|
if (extflag == "1")
|
|
56
|
whichproph = 1;
|
|
57
|
if (extflag == "2")
|
|
58
|
whichproph = 2;
|
|
59
|
if (extflag == "3")
|
|
60
|
whichproph = 3;
|
|
61
|
}
|
|
62
|
}
|
|
63
|
roomglow.active = prophecyactive;
|
|
64
|
with (obj_dw_church_prophecy)
|
|
65
|
active = false;
|
|
66
|
if (whichproph == 1)
|
|
67
|
prophecy[0].active = true;
|
|
68
|
if (whichproph == 2)
|
|
69
|
prophecy[1].active = true;
|
|
70
|
if (whichproph == 3)
|
|
71
|
prophecy[2].active = true;
|