|
1
|
if (init == 0)
|
|
2
|
{
|
|
3
|
if (instance_exists(obj_dw_church_holywatercooler) || instance_exists(obj_dw_church_rippleworship) || instance_exists(obj_dw_church_waterfallroom) || instance_exists(obj_dw_church_waterfalltearoom) || room == room_dw_church_waterfalltearoom)
|
|
4
|
hintcol = #FFC77B;
|
|
5
|
if (instance_exists(obj_dw_church_holywatercooler))
|
|
6
|
{
|
|
7
|
hint = scr_secretpianocomboscr_secretpianocombo
function scr_secretpianocombo(arg0 = 3)
{
var combo = ["7071", "3050", "5310"];
if (arg0 < 3)
return combo[arg0];
else
return combo[0] + combo[1] + combo[2];
} (0);
|
|
8
|
hintno = 0;
|
|
9
|
}
|
|
10
|
if (instance_exists(obj_dw_church_rippleworship))
|
|
11
|
{
|
|
12
|
hint = scr_secretpianocomboscr_secretpianocombo
function scr_secretpianocombo(arg0 = 3)
{
var combo = ["7071", "3050", "5310"];
if (arg0 < 3)
return combo[arg0];
else
return combo[0] + combo[1] + combo[2];
} (1);
|
|
13
|
hintno = 1;
|
|
14
|
hintslots = 4;
|
|
15
|
}
|
|
16
|
if (instance_exists(obj_dw_church_waterfallroom) || instance_exists(obj_dw_church_waterfalltearoom) || room == room_dw_church_waterfalltearoom)
|
|
17
|
{
|
|
18
|
hint = scr_secretpianocomboscr_secretpianocombo
function scr_secretpianocombo(arg0 = 3)
{
var combo = ["7071", "3050", "5310"];
if (arg0 < 3)
return combo[arg0];
else
return combo[0] + combo[1] + combo[2];
} (2);
|
|
19
|
hintno = 3;
|
|
20
|
}
|
|
21
|
if (globalflag != -1 && global.flag[globalflag])
|
|
22
|
preinit = 1;
|
|
23
|
if (preinit == 1)
|
|
24
|
{
|
|
25
|
preinit = 0;
|
|
26
|
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", 0, 1, 30, 2, "out");
|
|
27
|
active = 1;
|
|
28
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
29
|
depth -= 100;
|
|
30
|
if (createlight)
|
|
31
|
{
|
|
32
|
with (instance_create(x, y, obj_light_following))
|
|
33
|
{
|
|
34
|
size = 1;
|
|
35
|
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;
} ("size", 1, other.lightsize, 30, -1, "out");
|
|
36
|
}
|
|
37
|
}
|
|
38
|
}
|
|
39
|
init = 1;
|
|
40
|
}
|
|
41
|
if (!active)
|
|
42
|
{
|
|
43
|
var trig = 0;
|
|
44
|
if (trigmark == 0)
|
|
45
|
{
|
|
46
|
with (obj_trigger)
|
|
47
|
{
|
|
48
|
if (extflag == other.hint)
|
|
49
|
other.trigmark = 1;
|
|
50
|
}
|
|
51
|
}
|
|
52
|
if (trigmark == 0)
|
|
53
|
{
|
|
54
|
with (obj_floorswitch)
|
|
55
|
{
|
|
56
|
if (extflag == other.hint)
|
|
57
|
other.trigmark = 1;
|
|
58
|
}
|
|
59
|
}
|
|
60
|
if (!trigmark)
|
|
61
|
{
|
|
62
|
if (instance_exists(obj_mainchara))
|
|
63
|
{
|
|
64
|
if (distance_to_object(obj_mainchara) < range)
|
|
65
|
trig = 1;
|
|
66
|
}
|
|
67
|
}
|
|
68
|
else
|
|
69
|
{
|
|
70
|
with (obj_trigger)
|
|
71
|
{
|
|
72
|
if (extflag == other.hint)
|
|
73
|
{
|
|
74
|
if (place_meeting(x, y, obj_mainchara))
|
|
75
|
trig = 1;
|
|
76
|
}
|
|
77
|
}
|
|
78
|
}
|
|
79
|
with (obj_floorswitch)
|
|
80
|
{
|
|
81
|
if (extflag == other.hint)
|
|
82
|
{
|
|
83
|
if (pressed)
|
|
84
|
trig = 1;
|
|
85
|
}
|
|
86
|
}
|
|
87
|
if (dotrig)
|
|
88
|
{
|
|
89
|
trig = 1;
|
|
90
|
dotrig = 0;
|
|
91
|
}
|
|
92
|
if (trig == 1)
|
|
93
|
{
|
|
94
|
if (globalflag != -1)
|
|
95
|
global.flag[globalflag] = 1;
|
|
96
|
if (!silent && !preinit)
|
|
97
|
{
|
|
98
|
snd_play(snd_spearappear, 0.45, 1.2);
|
|
99
|
snd_play(snd_spearappear, 0.65, 1.3);
|
|
100
|
snd_play(snd_spearappear, 0.85, 1.4);
|
|
101
|
}
|
|
102
|
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", 0, 1, 30, 2, "out");
|
|
103
|
active = 1;
|
|
104
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
105
|
depth -= 100;
|
|
106
|
if (createlight)
|
|
107
|
{
|
|
108
|
with (instance_create(x, y, obj_light_following))
|
|
109
|
{
|
|
110
|
size = 1;
|
|
111
|
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;
} ("size", 1, other.lightsize, 30, -1, "out");
|
|
112
|
}
|
|
113
|
}
|
|
114
|
}
|
|
115
|
}
|