|
1
|
var bellsnd = 0;
|
|
2
|
var tspawn = 0;
|
|
3
|
if (!init)
|
|
4
|
{
|
|
5
|
with (obj_trigger_interact)
|
|
6
|
{
|
|
7
|
if (extflag == "bell")
|
|
8
|
{
|
|
9
|
other.bellint = id;
|
|
10
|
issolid = true;
|
|
11
|
timer = 0;
|
|
12
|
talked = 0;
|
|
13
|
}
|
|
14
|
}
|
|
15
|
init = 1;
|
|
16
|
}
|
|
17
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
18
|
{
|
|
19
|
if ((keyboard_check(ord("W")) && keyboard_check_pressed(ord("1"))) || global.tempflag[90] == 1)
|
|
20
|
{
|
|
21
|
global.tempflag[90] = 0;
|
|
22
|
var debugwarp = 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;
} ("kr", "debugwarp1");
|
|
23
|
if (i_ex(debugwarp[2]))
|
|
24
|
{
|
|
25
|
setxy(debugwarp[0], debugwarp[1], 1049);
|
|
26
|
snd_free_all();
|
|
27
|
con = 0;
|
|
28
|
global.interact = 0;
|
|
29
|
}
|
|
30
|
}
|
|
31
|
if ((keyboard_check(ord("W")) && keyboard_check_pressed(ord("2"))) || global.tempflag[90] == 2)
|
|
32
|
{
|
|
33
|
global.tempflag[90] = 0;
|
|
34
|
var debugwarp = 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;
} ("kr", "debugwarp");
|
|
35
|
if (i_ex(debugwarp[2]))
|
|
36
|
{
|
|
37
|
setxy(debugwarp[0], debugwarp[1], 1049);
|
|
38
|
snd_free_all();
|
|
39
|
con = 5;
|
|
40
|
}
|
|
41
|
}
|
|
42
|
}
|
|
43
|
with (bellint)
|
|
44
|
{
|
|
45
|
if (myinteract == 3)
|
|
46
|
{
|
|
47
|
global.interact = 1;
|
|
48
|
if (!talked)
|
|
49
|
{
|
|
50
|
myinteract = 3.001;
|
|
51
|
scr_delay_var("myinteract", 4, 30);
|
|
52
|
}
|
|
53
|
else
|
|
54
|
{
|
|
55
|
myinteract = 4;
|
|
56
|
}
|
|
57
|
talked++;
|
|
58
|
}
|
|
59
|
if (myinteract == 4)
|
|
60
|
{
|
|
61
|
global.interact = 1;
|
|
62
|
global.msc = -99;
|
|
63
|
global.choice = -1;
|
|
64
|
global.choicemsg[0] = stringsetloc(#Yes"#Yes", "obj_dw_church_waterfallroom_slash_Step_0_gml_81_0" );
|
|
65
|
global.choicemsg[1] = stringsetloc(#No"#No", "obj_dw_church_waterfallroom_slash_Step_0_gml_82_0" );
|
|
66
|
global.choicemsg[2] = stringset("");
|
|
67
|
global.choicemsg[3] = stringset("");
|
|
68
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
69
|
msgsetloc(0, * (It's a wall made of bells. Climb it?)Wait for input"* (It's a wall made of bells. Climb it?)/", "obj_dw_church_waterfallroom_slash_Step_0_gml_87_0" );
|
|
70
|
msgnextloc(Choice type 2"\\C2", "obj_dw_church_waterfallroom_slash_Step_0_gml_88_0" );
|
|
71
|
d_make();
|
|
72
|
myinteract = 5;
|
|
73
|
}
|
|
74
|
if (myinteract == 5 && global.choice != -1)
|
|
75
|
{
|
|
76
|
if (global.choice == 0)
|
|
77
|
{
|
|
78
|
k_d(1);
|
|
79
|
if (global.flag[23] == 0)
|
|
80
|
{
|
|
81
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
82
|
msgsetloc(0, * It's too slippery to climb...Delay 11 If only you had something to help you climb.Wait for inputClose Message"* It's too slippery to climb..^1. If only you had something to help you climb./%", "obj_dw_church_waterfallroom_slash_Step_0_gml_101_0" );
|
|
83
|
d_make();
|
|
84
|
myinteract = 999;
|
|
85
|
}
|
|
86
|
else
|
|
87
|
{
|
|
88
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
89
|
msgsetloc(0, * (You climbed the wall of bells...)Wait for inputClose Message"* (You climbed the wall of bells...)/%", "obj_dw_church_waterfallroom_slash_Step_0_gml_108_0" );
|
|
90
|
d_make();
|
|
91
|
myinteract = 10;
|
|
92
|
sndplay = 0;
|
|
93
|
}
|
|
94
|
}
|
|
95
|
if (global.choice == 1)
|
|
96
|
{
|
|
97
|
k_d();
|
|
98
|
global.interact = 0;
|
|
99
|
myinteract = 0;
|
|
100
|
}
|
|
101
|
}
|
|
102
|
if (myinteract == 10 && d_ex())
|
|
103
|
{
|
|
104
|
var trig = 0;
|
|
105
|
if (!sndplay)
|
|
106
|
{
|
|
107
|
with (obj_writer)
|
|
108
|
{
|
|
109
|
if (halt)
|
|
110
|
trig = 1;
|
|
111
|
}
|
|
112
|
if (trig == 1)
|
|
113
|
{
|
|
114
|
bellsnd = 1;
|
|
115
|
sndplay = 1;
|
|
116
|
}
|
|
117
|
}
|
|
118
|
}
|
|
119
|
if (myinteract == 10 && !d_ex())
|
|
120
|
{
|
|
121
|
myinteract = 11;
|
|
122
|
scr_delay_var("myinteract", 12, 30);
|
|
123
|
}
|
|
124
|
if (myinteract == 12)
|
|
125
|
{
|
|
126
|
other.domove = 1;
|
|
127
|
myinteract = 0;
|
|
128
|
}
|
|
129
|
if (myinteract == 999 && !d_ex())
|
|
130
|
{
|
|
131
|
myinteract = 0;
|
|
132
|
global.interact = 0;
|
|
133
|
}
|
|
134
|
}
|
|
135
|
if (domove == 1)
|
|
136
|
{
|
|
137
|
var krmove = 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;
} ("kr", "climbed");
|
|
138
|
var sumove = 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;
} ("su", "climbed");
|
|
139
|
var ramove = 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;
} ("ra", "climbed");
|
|
140
|
setxy(krmove[0], krmove[1], kris);
|
|
141
|
setxy(sumove[0], sumove[1], susie);
|
|
142
|
setxy(ramove[0], ramove[1], ralsei);
|
|
143
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate(arg0 = "none")
{
if (arg0 == "all")
{
with (obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else if (arg0 == "none")
{
if (object_index == obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else
{
with (obj_caterpillarchara)
{
if (name == arg0)
scr_caterpillar_interpolate_old();
}
}
}
function scr_caterinterp(arg0 = "none")
{
scr_caterpillar_interpolate(arg0);
}
function scr_caterpillar_interpolate_old()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ("all");
|
|
144
|
if (!up_h() && !down_h() && !right_h() && !left_h())
|
|
145
|
scr_fancy_ripplescr_fancy_ripple
function scr_fancy_ripple(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0)
{
if (!instance_exists(obj_fancy_ripples))
instance_create_depth(0, 0, arg7, obj_fancy_ripples);
with (obj_fancy_ripples)
{
depth = arg7;
MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11);
}
}
function scr_fancy_ripple_alt(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0)
{
if (!instance_exists(obj_fancy_ripples_alt))
instance_create_depth(0, 0, arg7, obj_fancy_ripples_alt);
with (obj_fancy_ripples_alt)
{
depth = arg7;
MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11);
}
} (obj_mainchara.x + 18, obj_mainchara.y + 72, 60, undefined, 192, 1, 15);
|
|
146
|
domove = 2;
|
|
147
|
global.interact = 0;
|
|
148
|
}
|
|
149
|
if (con == 0 && global.interact == 0)
|
|
150
|
{
|
|
151
|
var trig = 0;
|
|
152
|
with (obj_dw_church_glowtile)
|
|
153
|
{
|
|
154
|
if (extflag == "endswitch")
|
|
155
|
{
|
|
156
|
if (pressed)
|
|
157
|
{
|
|
158
|
trig = 1;
|
|
159
|
instance_destroy();
|
|
160
|
}
|
|
161
|
}
|
|
162
|
}
|
|
163
|
if (trig)
|
|
164
|
{
|
|
165
|
global.interact = 1;
|
|
166
|
con = 1;
|
|
167
|
timer = 0;
|
|
168
|
}
|
|
169
|
}
|
|
170
|
if (con == 1)
|
|
171
|
{
|
|
172
|
timer++;
|
|
173
|
if (timer == 1)
|
|
174
|
{
|
|
175
|
with (obj_church_piano_hint)
|
|
176
|
{
|
|
177
|
dotrig = true;
|
|
178
|
mus_fade(global.currentsong[1], 60);
|
|
179
|
}
|
|
180
|
}
|
|
181
|
if (timer > 15)
|
|
182
|
{
|
|
183
|
timer = 0;
|
|
184
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
185
|
msgsetloc(0, Face 7* Hey,Delay 11 we finally got to the end of this stupid room!Wait for input"\\E7* Hey^1, we finally got to the end of this stupid room!/", "obj_dw_church_waterfallroom_slash_Step_0_gml_217_0" );
|
|
186
|
msgnextloc(Face G* ...Delay 11 huh?Wait for inputClose Message"\\EG* ..^1. huh?/%", "obj_dw_church_waterfallroom_slash_Step_0_gml_218_0" );
|
|
187
|
d_make();
|
|
188
|
con = 2;
|
|
189
|
}
|
|
190
|
}
|
|
191
|
if (con == 2 && d_ex())
|
|
192
|
{
|
|
193
|
if (i_ex(obj_writer))
|
|
194
|
{
|
|
195
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () >= 1)
|
|
196
|
{
|
|
197
|
tspawn = 2;
|
|
198
|
con = 3;
|
|
199
|
}
|
|
200
|
}
|
|
201
|
}
|
|
202
|
if (con == 3 && !d_ex())
|
|
203
|
{
|
|
204
|
con = 4;
|
|
205
|
timer = 0;
|
|
206
|
}
|
|
207
|
if (con == 4)
|
|
208
|
{
|
|
209
|
timer++;
|
|
210
|
if (timer == 5)
|
|
211
|
tspawn = 1;
|
|
212
|
if (timer == 30)
|
|
213
|
{
|
|
214
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("ralsei");
|
|
215
|
msgsetloc(0, Face Z* Something...Delay 11 Something's coming...Wait for input"\\EZ* Something..^1. Something's coming.../", "obj_dw_church_waterfallroom_slash_Step_0_gml_258_0" );
|
|
216
|
msgnextloc(Face Y* Run!!!!Wait for inputClose Message"\\EY* Run!!!!/%", "obj_dw_church_waterfallroom_slash_Step_0_gml_259_0" );
|
|
217
|
d_make();
|
|
218
|
timer = 0;
|
|
219
|
con = 5;
|
|
220
|
}
|
|
221
|
}
|
|
222
|
if (con == 5 && !d_ex())
|
|
223
|
{
|
|
224
|
instance_create(camerax() + 640 + 120, cameray() - 120, obj_dw_church_waterfallchaser);
|
|
225
|
with (obj_dw_church_glowtile)
|
|
226
|
{
|
|
227
|
if (extflag != "endswitch")
|
|
228
|
instance_destroy();
|
|
229
|
}
|
|
230
|
global.flag[7 disable_menu?] = 1;
|
|
231
|
mus_play_ext("creepychase.ogg", 1, 0.72, 0.8);
|
|
232
|
global.interact = 0;
|
|
233
|
con = 6;
|
|
234
|
}
|
|
235
|
if (con == 6)
|
|
236
|
{
|
|
237
|
var trig = 0;
|
|
238
|
with (obj_trigger)
|
|
239
|
{
|
|
240
|
if (extflag == "endseq")
|
|
241
|
{
|
|
242
|
if (place_meeting(x, y, obj_mainchara))
|
|
243
|
trig = 1;
|
|
244
|
}
|
|
245
|
}
|
|
246
|
if (trig == 1)
|
|
247
|
{
|
|
248
|
global.flag[7 disable_menu?] = 0;
|
|
249
|
with (obj_darkcontroller)
|
|
250
|
charcon = 0;
|
|
251
|
with (obj_dw_church_waterfallchaser)
|
|
252
|
instance_destroy();
|
|
253
|
mus_fade(global.currentsong[1], 60);
|
|
254
|
global.interact = 1;
|
|
255
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("gerson");
|
|
256
|
msgsetloc(0, * Hey...Delay 11 Wait a gosh darn minute...Wait for inputClose Message"* Hey..^1. Wait a gosh darn minute.../%", "obj_dw_church_waterfallroom_slash_Step_0_gml_293_0" );
|
|
257
|
d_make(undefined, undefined, undefined, 1);
|
|
258
|
con = 10;
|
|
259
|
timer = 0;
|
|
260
|
}
|
|
261
|
}
|
|
262
|
if (con == 10 && !d_ex())
|
|
263
|
{
|
|
264
|
timer++;
|
|
265
|
if (timer == 14)
|
|
266
|
{
|
|
267
|
with (obj_border_controller)
|
|
268
|
show_border(1);
|
|
269
|
}
|
|
270
|
if (timer == 15)
|
|
271
|
{
|
|
272
|
snd_play(snd_noise);
|
|
273
|
var xoff = 0;
|
|
274
|
var yoff = 0;
|
|
275
|
with (obj_trigger)
|
|
276
|
{
|
|
277
|
if (extflag == "endseq")
|
|
278
|
{
|
|
279
|
xoff = x;
|
|
280
|
yoff = y;
|
|
281
|
}
|
|
282
|
}
|
|
283
|
global.tempflag[50] = kris.x - xoff;
|
|
284
|
global.tempflag[51] = kris.y - yoff;
|
|
285
|
global.tempflag[52] = susie.x - xoff;
|
|
286
|
global.tempflag[53] = susie.y - yoff;
|
|
287
|
global.tempflag[54] = ralsei.x - xoff;
|
|
288
|
global.tempflag[55] = ralsei.y - yoff;
|
|
289
|
debug_message("krxy=" + string(global.tempflag[50]) + "|" + string(global.tempflag[51]));
|
|
290
|
for (var i = 0; i < 8; i++)
|
|
291
|
debug_message("global.tempflag[" + string(50 + i) + "]=" + string(global.tempflag[50 + i]));
|
|
292
|
debug_message();
|
|
293
|
room_goto(room_dw_church_waterfalltearoom);
|
|
294
|
}
|
|
295
|
}
|
|
296
|
if (keyboard_check_pressed(ord("B")) && scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
297
|
tspawn = 2;
|
|
298
|
if (tspawn == 2)
|
|
299
|
{
|
|
300
|
if (!button3_h())
|
|
301
|
{
|
|
302
|
snd_play(snd_tspawn, 0.5);
|
|
303
|
snd_play_delay(snd_tspawn, 2, 0.2, 0.8);
|
|
304
|
snd_play_delay(snd_tspawn, 4, 0.1, 0.6);
|
|
305
|
}
|
|
306
|
var target = 1049;
|
|
307
|
var _hhsp = lengthdir_x(2, direction == point_direction(x, y, target.x + 40, target.y + 60));
|
|
308
|
var _vvsp = lengthdir_y(2, direction == point_direction(x, y, target.x + 40, target.y + 60));
|
|
309
|
scr_fancy_ripple_alt(camerax() + 640 + 40, cameray() - 40, 60, 255, 300, 1, 12, target.depth, _hhsp, _vvsp, 0);
|
|
310
|
}
|
|
311
|
if (tspawn == 1)
|
|
312
|
{
|
|
313
|
snd_play(snd_tspawn, 1);
|
|
314
|
snd_play_delay(snd_tspawn, 2, 0.5, 0.8);
|
|
315
|
snd_play_delay(snd_tspawn, 4, 0.3, 0.6);
|
|
316
|
snd_play_delay(snd_tspawn, 6, 0.1, 0.4);
|
|
317
|
var target = 1049;
|
|
318
|
var _hhsp = lengthdir_x(2, direction == point_direction(x, y, target.x + 40, target.y + 60));
|
|
319
|
var _vvsp = lengthdir_y(2, direction == point_direction(x, y, target.x + 40, target.y + 60));
|
|
320
|
scr_fancy_ripple_alt(camerax() + 640 + 40, cameray() - 40, 255, 30, 360, 1, 12, target.depth, _hhsp, _vvsp, 0);
|
|
321
|
}
|
|
322
|
if (bellsnd)
|
|
323
|
{
|
|
324
|
var count = 0;
|
|
325
|
var delay = 10;
|
|
326
|
bellsnd = 136;
|
|
327
|
snd_play(bellsnd);
|
|
328
|
count++;
|
|
329
|
snd_play_delay(bellsnd, delay * count, 0.7 - (count / 8), 1.17 - (count / 40));
|
|
330
|
count++;
|
|
331
|
snd_play_delay(bellsnd, delay * count, 0.7 - (count / 8), 0.97 - (count / 40));
|
|
332
|
count++;
|
|
333
|
snd_play_delay(bellsnd, delay * count, 0.7 - (count / 8), 1.17 - (count / 40));
|
|
334
|
count++;
|
|
335
|
snd_play_delay(bellsnd, delay * count, 0.7 - (count / 8), 0.97 - (count / 40));
|
|
336
|
count++;
|
|
337
|
snd_play_delay(bellsnd, delay * count, 0.7 - (count / 8), 1.17 - (count / 40));
|
|
338
|
count++;
|
|
339
|
snd_play_delay(bellsnd, delay * count, 0.7 - (count / 8), 0.97 - (count / 40));
|
|
340
|
count++;
|
|
341
|
}
|
|
342
|
if (global.plot >= 242)
|
|
343
|
{
|
|
344
|
with (blocker)
|
|
345
|
{
|
|
346
|
if (myinteract == 3)
|
|
347
|
{
|
|
348
|
global.interact = 1;
|
|
349
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
350
|
msgsetloc(0, * (Something long and stringy is blocking the way.)Wait for inputClose Message"* (Something long and stringy is blocking the way.)/%", "obj_dw_church_waterfallroom_slash_Step_0_gml_418_0" );
|
|
351
|
d_make();
|
|
352
|
myinteract = 999;
|
|
353
|
}
|
|
354
|
if (myinteract == 999 && !d_ex())
|
|
355
|
{
|
|
356
|
myinteract = 0;
|
|
357
|
global.interact = 0;
|
|
358
|
}
|
|
359
|
}
|
|
360
|
}
|