1 |
if (global.mnfight == 3) |
2 |
{ |
3 |
attacked = 0; |
4 |
whatiheard = -1; |
5 |
with (obj_carrotstargen) |
6 |
instance_destroy(); |
7 |
} |
8 |
if (alarm[5] > 0) |
9 |
{ |
10 |
if (global.monster[0] == 1) |
11 |
{ |
12 |
if (global.monsterinstance[0].alarm[5] > alarm[5])gml_Object_obj_bara04_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 16; |
13 |
alarm[5] = global.monsterinstance[0].alarm[5];gml_Object_obj_bara04_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 16; |
14 |
} |
15 |
if (global.monster[1] == 1) |
16 |
{ |
17 |
if (global.monsterinstance[1].alarm[5] > alarm[5])gml_Object_obj_bara04_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 16; |
18 |
alarm[5] = global.monsterinstance[1].alarm[5];gml_Object_obj_bara04_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 16; |
19 |
} |
20 |
if (global.monster[2] == 1) |
21 |
{ |
22 |
if (global.monsterinstance[2].alarm[5] > alarm[5])gml_Object_obj_bara04_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 16; |
23 |
alarm[5] = global.monsterinstance[2].alarm[5];gml_Object_obj_bara04_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 16; |
24 |
} |
25 |
} |
26 |
if (global.mnfight == 1) |
27 |
{ |
28 |
if (talked == 0) |
29 |
{ |
30 |
alarm[5] = 110;gml_Object_obj_bara04_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 16; |
31 |
alarm[6] = 1;gml_Object_obj_bara04_Alarm_6.gmlblcon = instance_create(x + 165, y + 55, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = "Hmph,&try not&to mess&this up.";
if (mycommand >= 25)
global.msg[0] = "I'll&take you&down&alone!";
if (mycommand >= 50)
global.msg[0] = "Sigh...&team&attack,&I guess.";
if (mycommand >= 75)
global.msg[0] = "I'm a&one&woman&army.";
if (shake == 1)
global.msg[0] = "D...&Dude...";
if (whatiheard == 3)
{
global.msg[0] = "What&are you&talking&about?";
if (toldhim == 1)
global.msg[0] = "My...&glove...";
}
if (whatiheard == 1)
{
global.msg[0] = "Don't&touch&that!!";
if (toldhim == 1)
global.msg[0] = ",..";
}
if (whatiheard == 12)
global.msg[0] = "H-HEY,&STOP&THAT!!";
pop = scr_monstersum();
if (pop < 2)
{
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = "03!&I didn't&want&this...";
if (mycommand >= 25)
global.msg[0] = "03...&03...";
if (mycommand >= 50)
global.msg[0] = "03...&answer&me...";
if (mycommand >= 75)
global.msg[0] = "...";
if (freshdeath == 0 && mercymod < 1)
global.msg[0] = "03!&I never&said&sorry...";
if (freshdeath == 0 && mercymod > 100)
global.msg[0] = "03...!?&Why,&you...";
freshdeath = 1;
mercymod = -99999;
}
global.msg[1] = "%%%";
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 15;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; |
32 |
talked = 1; |
33 |
global.heard = 0; |
34 |
} |
35 |
} |
36 |
if (control_check_pressed(0)) |
37 |
{ |
38 |
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0]) |
39 |
alarm[5] = 2;gml_Object_obj_bara04_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 16; |
40 |
} |
41 |
if (global.hurtanim[myself] == 1) |
42 |
{ |
43 |
shudder = 8; |
44 |
alarm[3] = global.damagetimer;gml_Object_obj_bara04_Alarm_3.gmlif (mypart1.pause != 1)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
with (mypart1)
pause = 1;
snd_play(snd_damage);
alarm[8] = 11;
}
if (sha == 0)
sha = x;
x = sha + shudder;
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2; |
45 |
global.hurtanim[myself] = 3; |
46 |
} |
47 |
if (global.hurtanim[myself] == 2) |
48 |
{ |
49 |
global.monsterhp[myself] -= takedamage; |
50 |
with (dmgwriter) |
51 |
alarm[2] |
52 |
if (global.monsterhp[myself] >= 1) |
53 |
{ |
54 |
mypart1.pause = 0; |
55 |
global.hurtanim[myself] = 0; |
56 |
global.myfight = 0; |
57 |
global.mnfight = 1; |
58 |
} |
59 |
else |
60 |
{ |
61 |
global.myfight = 0; |
62 |
global.mnfight = 1; |
63 |
killed = 1; |
64 |
instance_destroy(); |
65 |
} |
66 |
} |
67 |
if (global.hurtanim[myself] == 5) |
68 |
{ |
69 |
global.damage = 0; |
70 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
71 |
with (obj_dmgwriter) |
72 |
alarm[2] |
73 |
global.myfight = 0; |
74 |
global.mnfight = 1; |
75 |
global.hurtanim[myself] = 0; |
76 |
} |
77 |
if (global.mnfight == 2) |
78 |
{ |
79 |
if (obj_uborder.y > global.idealborder[2]) |
80 |
obj_heart.y = (obj_uborder.y + obj_dborder.y) / 2; |
81 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
82 |
if (attacked == 0 && pop == 1) |
83 |
{ |
84 |
global.turntimer = 180; |
85 |
if (instance_exists(obj_bara03) == 0) |
86 |
{ |
87 |
if (mycommand >= 0 && mycommand <= 50) |
88 |
{ |
89 |
global.firingrate = 25; |
90 |
gen = instance_create(x, y, obj_xbulletgen); |
91 |
gen.dmg = global.monsteratk[myself]; |
92 |
gen.alarm[0] = 8; |
93 |
} |
94 |
else |
95 |
{ |
96 |
global.firingrate = 20; |
97 |
gen = instance_create(x, y, obj_warplinegen); |
98 |
gen.dmg = global.monsteratk[myself]; |
99 |
gen.alarm[1] = 8; |
100 |
} |
101 |
gen.myself = myself; |
102 |
} |
103 |
if (mycommand >= 0) |
104 |
global.msg[0] = "* 03 rubs her glove quietly."; |
105 |
if (mycommand >= 25) |
106 |
global.msg[0] = "* 04 hums and looks the other& way."; |
107 |
if (mycommand >= 50) |
108 |
global.msg[0] = "* 03 stands guard."; |
109 |
if (mycommand >= 75) |
110 |
global.msg[0] = "* 04's twitches her tail."; |
111 |
if (mycommand >= 90) |
112 |
global.msg[0] = "* Smells like a military zoo."; |
113 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
114 |
if (pop == 1) |
115 |
{ |
116 |
if (mycommand >= 0) |
117 |
global.msg[0] = "* 04 holds her head in her& hands."; |
118 |
if (mycommand >= 25) |
119 |
global.msg[0] = "*Sad mews emerge from& 04's armor."; |
120 |
if (mycommand >= 50) |
121 |
global.msg[0] = "* 04 is thunderstruck."; |
122 |
if (mycommand >= 75) |
123 |
global.msg[0] = "* 04 does nothing."; |
124 |
} |
125 |
if (global.monsterhp[myself] < 30) |
126 |
global.msg[0] = "* 04's breathing intensifies."; |
127 |
attacked = 1; |
128 |
} |
129 |
} |
130 |
if (global.myfight == 2) |
131 |
{ |
132 |
if (whatiheard != -1) |
133 |
{ |
134 |
if (global.heard == 0) |
135 |
{ |
136 |
if (whatiheard == 0) |
137 |
{ |
138 |
global.msc = 0; |
139 |
global.msg[0] = "* RG 04 " + string(global.monsteratk[myself]) + " ATK " + string(global.monsterdef[myself]) + " DEF&* Royal Guard member.&* Protective of her armor./^"; |
140 |
OBJ_WRITER.halt = 3; |
141 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
142 |
with (iii) |
143 |
halt = 0; |
144 |
whatiheard = 9; |
145 |
} |
146 |
if (whatiheard == 1) |
147 |
{ |
148 |
global.msc = 0; |
149 |
global.msg[0] = "* You attempt to touch RG 04's& glove^1.&* She bats your hand away./^"; |
150 |
if (shake == 1) |
151 |
{ |
152 |
global.msg[0] = "* You touch RG 04's glove softly.&* She nods and begins to& take it off./^"; |
153 |
toldhim = 1; |
154 |
} |
155 |
OBJ_WRITER.halt = 3; |
156 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
157 |
with (iii) |
158 |
halt = 0; |
159 |
} |
160 |
if (whatiheard == 3) |
161 |
{ |
162 |
global.msc = 0; |
163 |
global.msg[0] = "* You tell RG 04 to remember& what being friends is about./^"; |
164 |
if (shake == 1) |
165 |
toldhim = 1; |
166 |
OBJ_WRITER.halt = 3; |
167 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
168 |
with (iii) |
169 |
halt = 0; |
170 |
} |
171 |
global.heard = 1; |
172 |
} |
173 |
} |
174 |
} |
175 |
if (toldhim == 1 && global.turntimer > 6 && global.turntimer < 12 && global.mnfight == 2 && con == 0) |
176 |
{ |
177 |
global.turntimer = -1; |
178 |
fuckyou = 1; |
179 |
global.mnfight = 5; |
180 |
global.border = 0; |
181 |
obj_heart.x = -800; |
182 |
obj_heart.movement = -1; |
183 |
} |
184 |
if (fuckyou == 1) |
185 |
global.mnfight = 5; |
186 |
if (global.mnfight == 5) |
187 |
{ |
188 |
if (con == 0 && toldhim == 1) |
189 |
{ |
190 |
caster_pause(global.batmusic); |
191 |
con = 0.1; |
192 |
alarm[4] = 20; |
193 |
} |
194 |
if (con == 1.1) |
195 |
{ |
196 |
snd_play(snd_grab); |
197 |
with (mypart1) |
198 |
hand1pic = spr_barafist_cat; |
199 |
con = 1; |
200 |
alarm[4] = 40; |
201 |
} |
202 |
if (con == 2) |
203 |
{ |
204 |
blcon = instance_create(x + blconx, y + blcony, obj_blconsm); |
205 |
global.typer = 2; |
206 |
global.msc = 0; |
207 |
global.msg[0] = "Actually&.../"; |
208 |
global.msg[1] = "I still&wear&mine&too./%%"; |
209 |
writer = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); |
210 |
con = 3; |
211 |
} |
212 |
if (con == 3 && instance_exists(OBJ_WRITER) == 0) |
213 |
{ |
214 |
with (mypart1) |
215 |
shaker = 0; |
216 |
with (blcon) |
217 |
instance_destroy(); |
218 |
conmusic = caster_load("music/confession.ogg"); |
219 |
caster_loop(conmusic, 0.8, 0.9); |
220 |
con = 4; |
221 |
global.msc = 0; |
222 |
global.typer = 2; |
223 |
with (obj_bara03) |
224 |
{ |
225 |
blcon = instance_create(x - blconx - 100, y + blcony, obj_blconsm); |
226 |
obj_bara04.blcon = blcon; |
227 |
blcon.sprite_index = spr_blconwdshrt_l; |
228 |
global.typer = 2; |
229 |
global.msg[0] = "Our friendship&bracelets from&high school./%%"; |
230 |
writer = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); |
231 |
} |
232 |
} |
233 |
if (con == 4 && instance_exists(OBJ_WRITER) == 0) |
234 |
{ |
235 |
with (blcon) |
236 |
instance_destroy(); |
237 |
blcon = instance_create((x + blconx) - 5, y + blcony, obj_blconsm); |
238 |
blcon.sprite_index = spr_blconwdshrt; |
239 |
global.typer = 2; |
240 |
global.msc = 0; |
241 |
global.msg[0] = "03, I'm sorry.&I thought you hated&me, after what&happened.../"; |
242 |
global.msg[1] = "We did some pretty&nasty things to&each other, because&of.../%%"; |
243 |
writer = instance_create(blcon.x + 25, blcon.y + 10, OBJ_NOMSCWRITER); |
244 |
con = 5; |
245 |
} |
246 |
if (con == 5 && instance_exists(OBJ_WRITER) == 0) |
247 |
{ |
248 |
with (blcon) |
249 |
instance_destroy(); |
250 |
con = 6; |
251 |
global.msc = 0; |
252 |
global.typer = 2; |
253 |
with (obj_bara03) |
254 |
{ |
255 |
blcon = instance_create(x - blconx - 100, y + blcony, obj_blconsm); |
256 |
obj_bara04.blcon = blcon; |
257 |
blcon.sprite_index = spr_blconwdshrt_l; |
258 |
global.typer = 2; |
259 |
global.msg[0] = "That old drama?&Forget about it./"; |
260 |
global.msg[1] = "To tell you the&truth, I requested&to be partners&with you./"; |
261 |
global.msg[2] = "I wanted to become&friends with you&again.../"; |
262 |
global.msg[3] = "But I didn't know&how to breach the&topic./%%"; |
263 |
writer = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); |
264 |
} |
265 |
} |
266 |
if (con == 6 && instance_exists(OBJ_WRITER) == 0) |
267 |
{ |
268 |
with (blcon) |
269 |
instance_destroy(); |
270 |
blcon = instance_create((x + blconx) - 5, y + blcony, obj_blconsm); |
271 |
blcon.sprite_index = spr_blconwdshrt; |
272 |
global.typer = 2; |
273 |
global.msc = 0; |
274 |
global.msg[0] = "03!/"; |
275 |
global.msg[1] = "After this.../"; |
276 |
global.msg[2] = "Do you want to get&some ice-cream?/%%"; |
277 |
writer = instance_create(blcon.x + 25, blcon.y + 10, OBJ_NOMSCWRITER); |
278 |
con = 7; |
279 |
} |
280 |
if (con == 7 && instance_exists(OBJ_WRITER) == 0) |
281 |
{ |
282 |
with (blcon) |
283 |
instance_destroy(); |
284 |
con = 8; |
285 |
global.msc = 0; |
286 |
global.typer = 2; |
287 |
with (obj_bara03) |
288 |
{ |
289 |
blcon = instance_create(x - blconx, y + blcony, obj_blconsm); |
290 |
obj_bara04.blcon = blcon; |
291 |
blcon.sprite_index = spr_blconsm2; |
292 |
global.typer = 2; |
293 |
global.msg[0] = "Salmon-&flavor?/%%"; |
294 |
writer = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); |
295 |
} |
296 |
} |
297 |
if (con == 8 && instance_exists(OBJ_WRITER) == 0) |
298 |
{ |
299 |
with (blcon) |
300 |
instance_destroy(); |
301 |
blcon = instance_create(x + blconx, y + blcony, obj_blconsm); |
302 |
blcon.sprite_index = spr_blconsm; |
303 |
global.typer = 2; |
304 |
global.msc = 0; |
305 |
global.msg[0] = "You know&it!/%%"; |
306 |
writer = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); |
307 |
con = 10; |
308 |
} |
309 |
if (con == 10 && instance_exists(OBJ_WRITER) == 0) |
310 |
{ |
311 |
fuckyou = 0; |
312 |
with (blcon) |
313 |
instance_destroy(); |
314 |
global.mnfight = 3; |
315 |
con = 11; |
316 |
mercymod = 999; |
317 |
global.monsterdef[myself] = -999; |
318 |
with (obj_bara03) |
319 |
{ |
320 |
mercymod = 999; |
321 |
global.monsterdef[myself] = -999; |
322 |
} |
323 |
caster_free(conmusic); |
324 |
global.msg[0] = "* 03 and 04 are planning all& sorts of things to do& together."; |
325 |
} |
326 |
} |
327 |
if (global.myfight == 4) |
328 |
{ |
329 |
if (global.mercyuse == 0) |
330 |
{ |
331 |
script_execute(scr_mercystandard); |
332 |
if (mercy < 0) |
333 |
instance_destroy(); |
334 |
} |
335 |
} |
336 |
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0) |
337 |
{ |
338 |
script_execute(scr_mercystandard); |
339 |
if (mercy < 0) |
340 |
instance_destroy(); |
341 |
} |