|
1
|
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;
}
}
} ();
|
|
2
|
if (init == 0)
|
|
3
|
{
|
|
4
|
if (global.plot < 110)
|
|
5
|
{
|
|
6
|
with (obj_doorAny)
|
|
7
|
{
|
|
8
|
if (doorEntrance == 5)
|
|
9
|
doorFadeMusic = true;
|
|
10
|
}
|
|
11
|
scr_musicerscr_musicer
function scr_musicer(arg0 = "dogcheck.ogg", arg1 = 0.7, arg2 = 1, arg3 = 0, arg4 = -1)
{
var musicer = instance_create_depth(0, 0, 0, obj_musicer_gen);
musicer.song = arg0;
musicer.volume = arg1;
musicer.pitch = arg2;
musicer.delay = arg3;
musicer.fadein = arg4;
return musicer;
} ("darkchurch_intro.ogg");
|
|
12
|
}
|
|
13
|
init = 1;
|
|
14
|
}
|
|
15
|
if (makedark)
|
|
16
|
{
|
|
17
|
makedark = 0;
|
|
18
|
instance_create(x, y, obj_darkness_overlay);
|
|
19
|
if (i_ex(susie))
|
|
20
|
{
|
|
21
|
slight = instance_create(susie.x, susie.y, obj_light_following);
|
|
22
|
slight.target = susie;
|
|
23
|
slight.xoff = 26;
|
|
24
|
slight.yoff = 46;
|
|
25
|
}
|
|
26
|
if (i_ex(ralsei))
|
|
27
|
{
|
|
28
|
rlight = instance_create(ralsei.x, ralsei.y, obj_light_following);
|
|
29
|
rlight.target = ralsei;
|
|
30
|
rlight.xoff = 18;
|
|
31
|
rlight.yoff = 40;
|
|
32
|
}
|
|
33
|
if (i_ex(kris))
|
|
34
|
{
|
|
35
|
klight = instance_create(kris.x, kris.y, obj_light_following);
|
|
36
|
klight.target = kris;
|
|
37
|
klight.xoff = 18;
|
|
38
|
klight.yoff = 38;
|
|
39
|
}
|
|
40
|
}
|
|
41
|
if (con == 0)
|
|
42
|
{
|
|
43
|
var trig = 0;
|
|
44
|
with (obj_church_piano_playable)
|
|
45
|
{
|
|
46
|
if (solved)
|
|
47
|
trig = 1;
|
|
48
|
}
|
|
49
|
if (trig == 1)
|
|
50
|
{
|
|
51
|
global.flag[869] = 1;
|
|
52
|
snd_play(snd_sparkle_gem);
|
|
53
|
var doomtime = 30;
|
|
54
|
var style = 2;
|
|
55
|
var kind = "out";
|
|
56
|
with (obj_church_piano_playable)
|
|
57
|
forceend = 1;
|
|
58
|
with (obj_tutorial_text)
|
|
59
|
instance_destroy();
|
|
60
|
with (obj_darkness_overlay)
|
|
61
|
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;
} ("image_alpha", 1, 0, round(doomtime * 1.5), style, kind);
|
|
62
|
with (steelcage)
|
|
63
|
instance_destroy();
|
|
64
|
with (obj_floorswitch)
|
|
65
|
{
|
|
66
|
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;
} ("image_alpha", 1, 0, doomtime, style, kind);
|
|
67
|
scr_doomscr_doom
function scr_doom(arg0 = id, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
persistent = arg0.persistent;
}
} (undefined, doomtime);
|
|
68
|
}
|
|
69
|
with (obj_church_piano_hint)
|
|
70
|
{
|
|
71
|
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;
} ("alpha", 1, 0, doomtime, style, kind);
|
|
72
|
scr_doomscr_doom
function scr_doom(arg0 = id, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
persistent = arg0.persistent;
}
} (undefined, doomtime);
|
|
73
|
}
|
|
74
|
con = 1;
|
|
75
|
timer = 0;
|
|
76
|
}
|
|
77
|
}
|
|
78
|
if (con == 1)
|
|
79
|
{
|
|
80
|
}
|