|
1
|
if (!init)
|
|
2
|
init = 1;
|
|
3
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
4
|
{
|
|
5
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("1")))
|
|
6
|
{
|
|
7
|
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;
} ("kris", "holywaterexit");
|
|
8
|
setxy(pos[0], pos[1], 1049);
|
|
9
|
}
|
|
10
|
}
|
|
11
|
with (npc)
|
|
12
|
{
|
|
13
|
marker.image_index += 0.125;
|
|
14
|
if (myinteract == 3)
|
|
15
|
{
|
|
16
|
global.interact = 1;
|
|
17
|
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");
|
|
18
|
if (global.flag[other.encounterflag] == 0)
|
|
19
|
{
|
|
20
|
if (!talked)
|
|
21
|
{
|
|
22
|
msgsetloc(0, * Above she waits,Delay 11 our beloved Holiness...Delay 11 Surely pining for the salvation of a great hero.Wait for input"* Above she waits^1, our beloved Holiness..^1. Surely pining for the salvation of a great hero./", "obj_dw_church_holywatercooler_slash_Step_0_gml_32_0" );
|
|
23
|
msgnextloc(* But,Delay 11 our legs,Delay 11 small and sweaty in excitement,Delay 11 find no hold in this accursed wall,Delay 11Wait for input"* But^1, our legs^1, small and sweaty in excitement^1, find no hold in this accursed wall^1,/", "obj_dw_church_holywatercooler_slash_Step_0_gml_33_0" );
|
|
24
|
msgnextloc(* And so we fall,Delay 11 tumbling a'gain and a'gain.Wait for inputClose Message"* And so we fall^1, tumbling a'gain and a'gain./%", "obj_dw_church_holywatercooler_slash_Step_0_gml_34_0" );
|
|
25
|
}
|
|
26
|
else
|
|
27
|
{
|
|
28
|
msgsetloc(0, * Doomed are we,Delay 11 who thirst for love just out of reach!Wait for inputClose Message"* Doomed are we^1, who thirst for love just out of reach!/%", "obj_dw_church_holywatercooler_slash_Step_0_gml_38_0" );
|
|
29
|
}
|
|
30
|
}
|
|
31
|
else if (global.flag[other.encounterflag] == 1)
|
|
32
|
{
|
|
33
|
msgsetloc(0, * Artless,Delay 11 heartless,Delay 11 and a blasphemer are you!Wait for input"* Artless^1, heartless^1, and a blasphemer are you!/", "obj_dw_church_holywatercooler_slash_Step_0_gml_43_0" );
|
|
34
|
msgnextloc(* When you drink,Delay 11 let the last drop taunt you everlasting!Wait for inputClose Message"* When you drink^1, let the last drop taunt you everlasting!/%", "obj_dw_church_holywatercooler_slash_Step_0_gml_44_0" );
|
|
35
|
}
|
|
36
|
else
|
|
37
|
{
|
|
38
|
msgsetloc(0, * Blessed are you,Delay 11 who walks with our Lady!Wait for input"* Blessed are you^1, who walks with our Lady!/", "obj_dw_church_holywatercooler_slash_Step_0_gml_48_0" );
|
|
39
|
msgnextloc(* And blessed be your legs,Delay 11 for they have nary a bead of sweat.Wait for inputClose Message"* And blessed be your legs^1, for they have nary a bead of sweat./%", "obj_dw_church_holywatercooler_slash_Step_0_gml_49_0" );
|
|
40
|
}
|
|
41
|
d_make();
|
|
42
|
myinteract = 999;
|
|
43
|
talked++;
|
|
44
|
}
|
|
45
|
if (myinteract == 999 && !d_ex())
|
|
46
|
{
|
|
47
|
myinteract = 0;
|
|
48
|
global.interact = 0;
|
|
49
|
}
|
|
50
|
}
|
|
51
|
with (npc2)
|
|
52
|
{
|
|
53
|
marker.image_index += 0.125;
|
|
54
|
if (myinteract == 3)
|
|
55
|
{
|
|
56
|
global.interact = 1;
|
|
57
|
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");
|
|
58
|
if (global.flag[other.encounterflag] == 0)
|
|
59
|
{
|
|
60
|
if (!talked)
|
|
61
|
{
|
|
62
|
msgsetloc(0, * Oh,Delay 11 Holy Princess far above!Delay 11 If you would spare but a drop of your love...Wait for input"* Oh^1, Holy Princess far above^1! If you would spare but a drop of your love.../", "obj_dw_church_holywatercooler_slash_Step_0_gml_79_0" );
|
|
63
|
msgnextloc(* I promise I should never spill it,Delay 11Wait for input"* I promise I should never spill it^1,/", "obj_dw_church_holywatercooler_slash_Step_0_gml_80_0" );
|
|
64
|
msgnextloc(* Or mix it with powders to modify its flavor.Wait for inputClose Message"* Or mix it with powders to modify its flavor./%", "obj_dw_church_holywatercooler_slash_Step_0_gml_81_0" );
|
|
65
|
}
|
|
66
|
else
|
|
67
|
{
|
|
68
|
msgsetloc(0, * Excepting,Delay 11 of course,Delay 11 such flavors of sweet Lemon and Orange,Delay 11Wait for input"* Excepting^1, of course^1, such flavors of sweet Lemon and Orange^1,/", "obj_dw_church_holywatercooler_slash_Step_0_gml_85_0" );
|
|
69
|
msgnextloc(* Which are clean to the taste and invigorate the Humours.Wait for inputClose Message"* Which are clean to the taste and invigorate the Humours./%", "obj_dw_church_holywatercooler_slash_Step_0_gml_86_0" );
|
|
70
|
}
|
|
71
|
}
|
|
72
|
else if (global.flag[other.encounterflag] == 1)
|
|
73
|
{
|
|
74
|
msgsetloc(0, * Oh,Delay 11 I heard it!Delay 11 The clash!Wait for input"* Oh^1, I heard it^1! The clash!/", "obj_dw_church_holywatercooler_slash_Step_0_gml_91_0" );
|
|
75
|
msgnextloc(* You brute...Wait for input"* You brute.../", "obj_dw_church_holywatercooler_slash_Step_0_gml_92_0" );
|
|
76
|
msgnextloc(* May your powders be acrid,Delay 11 green,Delay 11 and ectoplasmic!Wait for inputClose Message"* May your powders be acrid^1, green^1, and ectoplasmic!/%", "obj_dw_church_holywatercooler_slash_Step_0_gml_93_0" );
|
|
77
|
}
|
|
78
|
else
|
|
79
|
{
|
|
80
|
msgsetloc(0, * To think our Holy Princess would join your court...Delay 11 oh,Delay 11 joy!Wait for input"* To think our Holy Princess would join your court..^1. oh^1, joy!/", "obj_dw_church_holywatercooler_slash_Step_0_gml_97_0" );
|
|
81
|
msgnextloc(* I shall rejoice,Delay 11 and throw my greatest powders...Wait for input"* I shall rejoice^1, and throw my greatest powders.../", "obj_dw_church_holywatercooler_slash_Step_0_gml_98_0" );
|
|
82
|
msgnextloc(* Electrolytic,Delay 11 and few in calorie!Wait for inputClose Message"* Electrolytic^1, and few in calorie!/%", "obj_dw_church_holywatercooler_slash_Step_0_gml_99_0" );
|
|
83
|
}
|
|
84
|
d_make();
|
|
85
|
myinteract = 999;
|
|
86
|
talked++;
|
|
87
|
}
|
|
88
|
if (myinteract == 999 && !d_ex())
|
|
89
|
{
|
|
90
|
myinteract = 0;
|
|
91
|
marker.image_index = 0;
|
|
92
|
global.interact = 0;
|
|
93
|
}
|
|
94
|
}
|
|
95
|
with (npc3)
|
|
96
|
{
|
|
97
|
marker.image_index += 0.125;
|
|
98
|
if (myinteract == 3)
|
|
99
|
{
|
|
100
|
global.interact = 1;
|
|
101
|
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");
|
|
102
|
if (global.flag[other.encounterflag] == 0)
|
|
103
|
{
|
|
104
|
if (!talked)
|
|
105
|
{
|
|
106
|
msgsetloc(0, * Ah,Delay 11 my legs!Delay 11 So they tremble,Delay 11 I'm afeared I cannot clamber any further.Wait for input"* Ah^1, my legs^1! So they tremble^1, I'm afeared I cannot clamber any further./", "obj_dw_church_holywatercooler_slash_Step_0_gml_130_0" );
|
|
107
|
msgnextloc(* Young soldier,Delay 11 if you should meet her,Delay 11 could you tell her of my exploits...Wait for input"* Young soldier^1, if you should meet her^1, could you tell her of my exploits.../", "obj_dw_church_holywatercooler_slash_Step_0_gml_131_0" );
|
|
108
|
msgnextloc(* That I may earn so much as a small thimble of her love.Wait for inputClose Message"* That I may earn so much as a small thimble of her love./%", "obj_dw_church_holywatercooler_slash_Step_0_gml_132_0" );
|
|
109
|
}
|
|
110
|
else
|
|
111
|
{
|
|
112
|
msgsetloc(0, * Go on,Delay 11 young soldier!Delay 11 I am but too sweaty to continue...Wait for inputClose Message"* Go on^1, young soldier^1! I am but too sweaty to continue.../%", "obj_dw_church_holywatercooler_slash_Step_0_gml_136_0" );
|
|
113
|
}
|
|
114
|
}
|
|
115
|
else if (global.flag[other.encounterflag] == 1)
|
|
116
|
{
|
|
117
|
if (!talked)
|
|
118
|
{
|
|
119
|
msgsetloc(0, * You brute...!Delay 11 You coward...!Wait for input"* You brute...^1! You coward...!/", "obj_dw_church_holywatercooler_slash_Step_0_gml_143_0" );
|
|
120
|
msgnextloc(* Spilling a woman's tears...Delay 11 you have no sense of water conservation!Wait for inputClose Message"* Spilling a woman's tears..^1. you have no sense of water conservation!/%", "obj_dw_church_holywatercooler_slash_Step_0_gml_144_0" );
|
|
121
|
}
|
|
122
|
else
|
|
123
|
{
|
|
124
|
msgsetloc(0, * I should knock you,Delay 11 if my legs were not so sweaty and small!Wait for inputClose Message"* I should knock you^1, if my legs were not so sweaty and small!/%", "obj_dw_church_holywatercooler_slash_Step_0_gml_148_0" );
|
|
125
|
}
|
|
126
|
}
|
|
127
|
else if (!talked)
|
|
128
|
{
|
|
129
|
msgsetloc(0, * Oh,Delay 11 so you found her!Delay 11 Did she have any extra thimbles of her love?Wait for input"* Oh^1, so you found her^1! Did she have any extra thimbles of her love?/", "obj_dw_church_holywatercooler_slash_Step_0_gml_155_0" );
|
|
130
|
msgnextloc(* No...? Well,Delay 11 I hope she knows I could have also recruited her...Wait for input"* No...? Well^1, I hope she knows I could have also recruited her.../", "obj_dw_church_holywatercooler_slash_Step_0_gml_156_0" );
|
|
131
|
msgnextloc(* ...Delay 11 If I had just climbed up there...Delay 11 you see.Wait for inputClose Message"* ..^1. If I had just climbed up there..^1. you see./%", "obj_dw_church_holywatercooler_slash_Step_0_gml_157_0" );
|
|
132
|
}
|
|
133
|
else
|
|
134
|
{
|
|
135
|
msgsetloc(0, * ...Delay 11 well done and all that!Wait for inputClose Message"* ..^1. well done and all that!/%", "obj_dw_church_holywatercooler_slash_Step_0_gml_161_0" );
|
|
136
|
}
|
|
137
|
d_make();
|
|
138
|
myinteract = 999;
|
|
139
|
talked++;
|
|
140
|
}
|
|
141
|
if (myinteract == 999 && !d_ex())
|
|
142
|
{
|
|
143
|
myinteract = 0;
|
|
144
|
marker.image_index = 0;
|
|
145
|
global.interact = 0;
|
|
146
|
}
|
|
147
|
}
|
|
148
|
with (npc4)
|
|
149
|
{
|
|
150
|
if (myinteract == 3)
|
|
151
|
{
|
|
152
|
global.interact = 1;
|
|
153
|
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");
|
|
154
|
msgsetloc(0, * (It's a regular container of water.)Wait for input"* (It's a regular container of water.)/", "obj_dw_church_holywatercooler_slash_Step_0_gml_205_0" );
|
|
155
|
msgnextloc(* (...Delay 11 There's no reason to expect interacting with it to do anything.)Wait for inputClose Message"* (..^1. There's no reason to expect interacting with it to do anything.)/%", "obj_dw_church_holywatercooler_slash_Step_0_gml_206_0" );
|
|
156
|
d_make();
|
|
157
|
other.basintalk = true;
|
|
158
|
myinteract = 4;
|
|
159
|
}
|
|
160
|
if (myinteract == 4 && !d_ex())
|
|
161
|
{
|
|
162
|
global.interact = 0;
|
|
163
|
myinteract = 0;
|
|
164
|
}
|
|
165
|
}
|
|
166
|
if (watercoolerfight == 0)
|
|
167
|
{
|
|
168
|
var trig = 0;
|
|
169
|
if (basintalk && !d_ex())
|
|
170
|
{
|
|
171
|
with (obj_trigger)
|
|
172
|
{
|
|
173
|
if (extflag == "watercoolertrig")
|
|
174
|
{
|
|
175
|
if (place_meeting(x, y, obj_mainchara))
|
|
176
|
trig = 1;
|
|
177
|
}
|
|
178
|
}
|
|
179
|
}
|
|
180
|
if (trig)
|
|
181
|
{
|
|
182
|
npc4.myinteract = 99;
|
|
183
|
watercoolerfight = 1;
|
|
184
|
watermarker = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth_alt();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
}
function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false)
{
if (is_undefined(arg0))
{
debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist");
return -4;
}
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker);
with (thismarker)
{
sprite_index = sprite;
image_index = index;
image_speed = imagespeed;
image_xscale = xscale;
image_yscale = yscale;
image_angle = angle;
image_blend = blend;
image_alpha = alpha;
if (arg2)
scr_depth_alt(id, arg2);
}
return thismarker;
}
function scr_assetgetinfo(arg0)
{
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed];
} (camerax() + 640 + 120, obj_mainchara.y - 12, spr_watercooler, 2, 2, 0, undefined, undefined, 5000);
|
|
185
|
with (watermarker)
|
|
186
|
{
|
|
187
|
con = 0;
|
|
188
|
hsp = -0.25;
|
|
189
|
}
|
|
190
|
}
|
|
191
|
}
|
|
192
|
if (watercoolerfight == 1)
|
|
193
|
{
|
|
194
|
with (watermarker)
|
|
195
|
{
|
|
196
|
if (con == 0)
|
|
197
|
{
|
|
198
|
if (global.interact == 0)
|
|
199
|
{
|
|
200
|
hsp = lerp(hsp, -24, 0.16666666666666666);
|
|
201
|
x += hsp;
|
|
202
|
}
|
|
203
|
}
|
|
204
|
}
|
|
205
|
var trig = 0;
|
|
206
|
watermarker.y = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (obj_mainchara.y - 12);
|
|
207
|
with (watermarker)
|
|
208
|
{
|
|
209
|
if (place_meeting(x, y, obj_mainchara))
|
|
210
|
trig = 1;
|
|
211
|
}
|
|
212
|
if (trig)
|
|
213
|
{
|
|
214
|
global.interact = 1;
|
|
215
|
global.facing = 1;
|
|
216
|
with (watermarker)
|
|
217
|
{
|
|
218
|
con = 1;
|
|
219
|
hspeed = 0;
|
|
220
|
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;
} ("x", x, obj_mainchara.x + 80, 10, -1, "out");
|
|
221
|
}
|
|
222
|
npc4.myinteract = 9999;
|
|
223
|
npc3.talked = 0;
|
|
224
|
npc2.talked = 0;
|
|
225
|
npc.talked = 0;
|
|
226
|
watercoolerfight = 2;
|
|
227
|
snd_play(snd_tensionhorn);
|
|
228
|
snd_play_delay(snd_tensionhorn, 10, undefined, 1.1);
|
|
229
|
scr_delay_var("watercoolerfight", 3, 24);
|
|
230
|
}
|
|
231
|
}
|
|
232
|
if (watercoolerfight == 3)
|
|
233
|
{
|
|
234
|
global.flag[54 encounter_pointer] = encounterflag;
|
|
235
|
scr_battlescr_battle
function scr_battle(arg0, arg1, arg2, arg3, arg4)
{
global.specialbattle = arg1;
global.encounterno = arg0;
if (global.flag[9 battle_music] != 2)
{
global.flag[9 battle_music] = 1;
if (global.chapter == 4 && room != room_dw_castle_dojo)
global.batmusic[0] = snd_init("ch4_battle.ogg");
else
global.batmusic[0] = snd_init("battle.ogg");
}
instance_create(0, 0, obj_battleback);
instance_create(0, 0, obj_encounterbasic);
__enemymarker[0] = arg2;
__enemymarker[1] = arg3;
__enemymarker[2] = arg4;
for (__ien = 0; __ien < 3; __ien++)
{
if (global.monstertype[__ien] != 0(None))
{
if (!i_ex(__enemymarker[__ien]))
{
__enemymarker[__ien] = scr_dark_marker(global.monstermakex[__ien] + 300, global.monstermakey[__ien], object_get_sprite(global.monsterinstancetype[__ien]));
__enemymarker[__ien].depth = -__ien;
}
__enemymarker[__ien].__ien = __ien;
with (__enemymarker[__ien])
{
scr_move_to_point_over_time(global.monstermakex[__ien], global.monstermakey[__ien], 20);
__doom = instance_create(x, y, obj_doom);
__doom.target = id;
__doom.alarm[0] = 25;
}
}
}
} (183, 0, watermarker);
|
|
236
|
watermarker = 0;
|
|
237
|
watercoolerfight++;
|
|
238
|
}
|
|
239
|
if (watercoolerfight == 4 && !i_ex(obj_battleback))
|
|
240
|
{
|
|
241
|
scr_tempsavescr_tempsave
function scr_tempsave()
{
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2;
} ();
|
|
242
|
watercoolerfight++;
|
|
243
|
}
|
|
244
|
if (hintinit == 0)
|
|
245
|
{
|
|
246
|
if (global.flag[encounterflag] != 0)
|
|
247
|
{
|
|
248
|
hintinit = 1;
|
|
249
|
debug_message("battle completed");
|
|
250
|
alarm[0] = 1; gml_Object_obj_dw_church_holywatercooler_Alarm_0.gml
with (obj_genmarker)
{
if (extflag == "hintmark")
{
with (instance_create(x, y, obj_church_piano_hint))
{
silent = true;
preinit = 1;
}
}
}
var slidemarker = scr_genmarker("slide");
with (instance_create(slidemarker.x, slidemarker.y, obj_darkslide_new))
scr_sizeexact(slidemarker.sprite_width, slidemarker.sprite_height);
with (obj_solidblocksized_alt)
{
if (extflag == "slideUnlock")
instance_destroy();
}
layer_set_visible("Tiles_ShortcutUnlock", true);
|
|
251
|
}
|
|
252
|
}
|
|
253
|
if (slidecon == 0)
|
|
254
|
{
|
|
255
|
if (scr_trigcheckscr_trigcheck
function scr_trigcheck(arg0)
{
var ____trig = 0;
if (is_string(arg0))
{
with (obj_trigger)
{
if (extflag == arg0)
{
if (place_meeting(x, y, obj_mainchara))
____trig++;
}
}
}
return ____trig;
}
function scr_trigcheck_ext(arg0, arg1 = id)
{
var ____trig = 0;
if (is_string(arg0))
{
with (obj_trigger)
{
if (extflag == arg0)
{
if (place_meeting(x, y, arg1))
____trig++;
}
}
}
return ____trig;
} ("slideEnter"))
|
|
256
|
{
|
|
257
|
global.interact = 1;
|
|
258
|
slidetimer = 0;
|
|
259
|
slidecon = 1;
|
|
260
|
obj_mainchara.cutscene = 1;
|
|
261
|
fade = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth_alt();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
}
function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false)
{
if (is_undefined(arg0))
{
debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist");
return -4;
}
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker);
with (thismarker)
{
sprite_index = sprite;
image_index = index;
image_speed = imagespeed;
image_xscale = xscale;
image_yscale = yscale;
image_angle = angle;
image_blend = blend;
image_alpha = alpha;
if (arg2)
scr_depth_alt(id, arg2);
}
return thismarker;
}
function scr_assetgetinfo(arg0)
{
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed];
} (0, 0, spr_pxwhite, room_width, room_height, 0, undefined, c_black, -99, undefined, undefined, 0);
|
|
262
|
with (fade)
|
|
263
|
{
|
|
264
|
extflag = "fade";
|
|
265
|
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", 0, 1, 15);
|
|
266
|
}
|
|
267
|
}
|
|
268
|
}
|
|
269
|
if (slidecon == 1)
|
|
270
|
{
|
|
271
|
slidetimer++;
|
|
272
|
if (slidetimer == 16)
|
|
273
|
{
|
|
274
|
camera_setxy(1459, 3268);
|
|
275
|
obj_mainchara.y = 3080;
|
|
276
|
with (fade)
|
|
277
|
{
|
|
278
|
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.25, 0, 18);
|
|
279
|
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;
}
} (id, 19);
|
|
280
|
}
|
|
281
|
fade = -4;
|
|
282
|
}
|
|
283
|
if (slidetimer > 16)
|
|
284
|
{
|
|
285
|
if (global.interact == 0)
|
|
286
|
{
|
|
287
|
global.facing = 0;
|
|
288
|
obj_mainchara.cutscene = 0;
|
|
289
|
slidecon = 0;
|
|
290
|
slidetimer = 0;
|
|
291
|
}
|
|
292
|
}
|
|
293
|
}
|