1 |
if (global.monster[myself] == 1) |
2 |
{ |
3 |
global.flag[51 + myself] = 4; |
4 |
if (global.mnfight == 1 && talked == 0) |
5 |
{ |
6 |
if (pirouette != 2) |
7 |
global.invc = reminvc; |
8 |
mhpratio = global.monsterhp[myself] / global.monstermaxhp[myself]; |
9 |
if (mhpratio <= 0.8 && jturn == 4) |
10 |
{ |
11 |
jturn = 5; |
12 |
with (body) |
13 |
dancelv = 1; |
14 |
} |
15 |
if (mhpratio <= 0.6 && jturn == 9) |
16 |
jturn = 10; |
17 |
if (mhpratio <= 0.4 && jturn == 14) |
18 |
{ |
19 |
jturn = 15; |
20 |
with (body) |
21 |
dancelv = 3; |
22 |
} |
23 |
if (mhpratio <= 0.15 && jturn < 17) |
24 |
{ |
25 |
jturn = 17; |
26 |
with (body) |
27 |
dancelv = 2; |
28 |
} |
29 |
if (jturn >= 18) |
30 |
{ |
31 |
with (body) |
32 |
dancelv = 3; |
33 |
} |
34 |
if (hypnosiscounter >= 2 && jturn == 4) |
35 |
{ |
36 |
if (turns >= (5 - hypnosiscounter)) |
37 |
{ |
38 |
jturn = 5; |
39 |
with (body) |
40 |
dancelv = 1; |
41 |
} |
42 |
} |
43 |
if (hypnosiscounter >= 4 && jturn == 9) |
44 |
{ |
45 |
if (turns >= (11 - hypnosiscounter)) |
46 |
{ |
47 |
jturn = 10; |
48 |
with (body) |
49 |
dancelv = 1; |
50 |
} |
51 |
} |
52 |
if (hypnosiscounter >= 6 && jturn == 14) |
53 |
{ |
54 |
if (turns >= (17 - hypnosiscounter)) |
55 |
{ |
56 |
jturn = 15; |
57 |
with (body) |
58 |
dancelv = 1; |
59 |
} |
60 |
} |
61 |
if (jturn >= 19) |
62 |
{ |
63 |
if (turns >= (29 - hypnosiscounter)) |
64 |
{ |
65 |
tired = 1; |
66 |
global.monsterstatus[myself] = 1; |
67 |
with (body) |
68 |
dancelv = 2; |
69 |
} |
70 |
} |
71 |
if (!instance_exists(obj_darkener)) |
72 |
instance_create(0, 0, obj_darkener); |
73 |
global.typer = 50; |
74 |
if (jturn == 0) |
75 |
{ |
76 |
global.msg[0] = CHAOS, CHAOS,
CATCH ME IF YOU CAN! ; |
77 |
snd_play(scr_84_get_sound("snd_joker_chaos")); |
78 |
} |
79 |
if (jturn == 1) |
80 |
global.msg[0] = SHALL WE PLAY THE RING-AROUND? ; |
81 |
if (jturn == 2) |
82 |
global.msg[0] = MY HEARTS GO OUT TO ALL YOU SINNERS! ; |
83 |
if (jturn == 3) |
84 |
{ |
85 |
global.msg[0] = HA, HA, LET'S MAKE THE DEVILSKNIFE. ; |
86 |
with (body) |
87 |
condition = 5; |
88 |
} |
89 |
if (jturn == 5) |
90 |
global.msg[0] = PIIP PIIP, LET'S RIDE THE CAROUSEL GAME. ; |
91 |
if (jturn == 6) |
92 |
global.msg[0] = HEE HEE, HAVING FUN!? JOIN THE CLUB! ; |
93 |
if (jturn == 7) |
94 |
{ |
95 |
global.msg[0] = HEARTS, DIAMONDS, I CAN DO ANYTHING! ; |
96 |
snd_play(scr_84_get_sound("snd_joker_anything")); |
97 |
} |
98 |
if (jturn == 8) |
99 |
global.msg[0] = WHO KEEPS SPINNING THE WORLD AROUND? ; |
100 |
if (jturn == 10) |
101 |
global.msg[0] = YOU KIDS ARE REALLY KEEPING UP! ; |
102 |
if (jturn == 11) |
103 |
global.msg[0] = NU-HA!! I NEVER HAD SUCH FUN, FUN!! ; |
104 |
if (jturn == 12) |
105 |
global.msg[0] = A BEAUTY IS JOYING IN MY HEART! ; |
106 |
if (jturn == 13) |
107 |
{ |
108 |
global.msg[0] = EVEN DEVILSKNIFE IS SMILING! ; |
109 |
with (body) |
110 |
condition = 5; |
111 |
} |
112 |
if (jturn == 15) |
113 |
global.msg[0] = IT'S SO EXCITING... I CAN'T TAKE IT!!! ; |
114 |
if (jturn == 16) |
115 |
global.msg[0] = THIS IS IT, BOISENGIRLS! SEE YA! ; |
116 |
if (jturn == 17) |
117 |
{ |
118 |
global.msg[0] = ENOUGH!! YOU KIDS TIRED ME UP! ; |
119 |
with (body) |
120 |
dancelv = 2; |
121 |
} |
122 |
if (jturn == 18) |
123 |
{ |
124 |
global.msg[0] = KIDDING!! HERE'S MY FINAL CHAOS! ; |
125 |
with (body) |
126 |
condition = 5; |
127 |
} |
128 |
if (jturn == 4 || jturn == 9 || jturn == 14 || jturn == 19) |
129 |
{ |
130 |
rr = choose(0, 1, 2, 3); |
131 |
if (rr == 0) |
132 |
{ |
133 |
global.msg[0] = choose(, PLEASE, IT'S JUST A SIMPLE CHAOS. ); |
134 |
snd_play(scr_84_get_sound("snd_joker_chaos")); |
135 |
} |
136 |
if (rr == 1) |
137 |
{ |
138 |
global.msg[0] = ; |
139 |
snd_play(scr_84_get_sound("snd_joker_anything")); |
140 |
} |
141 |
if (rr == 2) |
142 |
global.msg[0] = choose(THIS BODY CANNOT BE KILLED! , THESE CURTAINS ARE REALLY ON FIRE! ); |
143 |
if (rr == 3) |
144 |
global.msg[0] = ; |
145 |
} |
146 |
scr_enemyblconscr_enemyblconfunction scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
} (x - 160, y - 20, 3); |
147 |
talked = 1; |
148 |
talktimer = 0; |
149 |
if (jturn >= 19) |
150 |
{ |
151 |
if (global.monsterdf[myself] > -10) |
152 |
global.monsterdf[myself] -= 3; |
153 |
if (global.monsterat[myself] < 11) |
154 |
global.monsterat[myself] += 0.5; |
155 |
jattack = choose(0, 4, 7, 8, 10, 11, 12, 13, 13, 13); |
156 |
} |
157 |
if (jturn >= 15 && jturn <= 18) |
158 |
{ |
159 |
jattack = jturn - 3; |
160 |
jturn += 1; |
161 |
} |
162 |
if (jturn == 14) |
163 |
jattack = choose(8, 9, 10, 11); |
164 |
if (jturn >= 10 && jturn <= 13) |
165 |
{ |
166 |
jattack = jturn - 2; |
167 |
jturn += 1; |
168 |
} |
169 |
if (jturn == 9) |
170 |
jattack = choose(4, 5, 6, 7); |
171 |
if (jturn >= 5 && jturn <= 8) |
172 |
{ |
173 |
jattack = jturn - 1; |
174 |
jturn += 1; |
175 |
} |
176 |
if (jturn == 4) |
177 |
jattack = choose(0, 1, 2, 3); |
178 |
if (jturn <= 3) |
179 |
{ |
180 |
jattack = jturn; |
181 |
jturn += 1; |
182 |
} |
183 |
if (jattack == 2 || jattack == 5 || jattack == 9 || jattack == 13 || jattack == 15) |
184 |
scr_targetallscr_targetallfunction scr_targetall()
{
for (_ti = 0; _ti < 3; _ti += 1)
{
if (global.charcantarget[_ti] == 1)
global.targeted[_ti] = 1;
}
mytarget = 3;
target = 3;
} (); |
185 |
else |
186 |
scr_randomtargetscr_randomtargetfunction scr_randomtarget()
{
abletotarget = 1;
if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0)
abletotarget = 0;
mytarget = choose(0, 1, 2);
if (abletotarget == 1)
{
while (global.charcantarget[mytarget] == 0)
mytarget = choose(0, 1, 2);
}
else
{
mytarget = 3;
}
global.targeted[mytarget] = 1;
} (); |
187 |
} |
188 |
if (talked == 1 && global.mnfight == 1) |
189 |
{ |
190 |
rtimer = 0; |
191 |
scr_blconskipscr_blconskipfunction scr_blconskip(arg0)
{
if (arg0 != -1)
{
if (button1_p() && talktimer > arg0)
talktimer = talkmax;
talktimer += 1;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 2;
}
}
if (arg0 == -1)
{
if (instance_exists(obj_writer) == false)
global.mnfight = 2;
}
} (15); |
192 |
if (global.mnfight == 2) |
193 |
{ |
194 |
if (!instance_exists(obj_moveheart)) |
195 |
scr_moveheart(); |
196 |
if (!instance_exists(obj_growtangle)) |
197 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); |
198 |
} |
199 |
} |
200 |
if (global.mnfight == 2 && attacked == 0) |
201 |
{ |
202 |
rtimer += 1; |
203 |
if (rtimer == 12) |
204 |
{ |
205 |
global.turntimer = 240; |
206 |
event_user(5); |
207 |
attacked = 1; |
208 |
global.typer = 6; |
209 |
global.fc = 0; |
210 |
rr = choose(0, 1, 2, 3, 4); |
211 |
if (rr == 0) |
212 |
global.battlemsg[0] = * The world is spinning, spinning. ; |
213 |
if (rr == 1) |
214 |
global.battlemsg[0] = * The air crackles with freedom. ; |
215 |
if (rr == 2) |
216 |
global.battlemsg[0] = * JEVIL is laughing incomprehensibly. ; |
217 |
if (rr == 3) |
218 |
global.battlemsg[0] = * It feels like a whirlwind. ; |
219 |
if (rr == 4) |
220 |
global.battlemsg[0] = ; |
221 |
if (body.dancelv == 2) |
222 |
global.battlemsg[0] = * JEVIL seems exhausted...? ; |
223 |
if (jturn == 16) |
224 |
global.battlemsg[0] = * CHAOS BOMB was prepared FOR YOU. ; |
225 |
if (jturn == 18) |
226 |
global.battlemsg[0] = * Something terrible is coming...! ; |
227 |
if (jturn >= 19) |
228 |
global.battlemsg[0] = * JEVIL's pulling out all the stops! ; |
229 |
if (global.monsterstatus[myself] == 1) |
230 |
global.battlemsg[0] = * JEVIL is truly exhausted! ; |
231 |
} |
232 |
else |
233 |
{ |
234 |
global.turntimer = 120; |
235 |
} |
236 |
} |
237 |
if (global.mnfight == 2) |
238 |
{ |
239 |
if (global.turntimer <= 1) |
240 |
{ |
241 |
if (battlecancel == 1) |
242 |
global.mercymod[myself] = 999; |
243 |
if (battlecancel == 2) |
244 |
{ |
245 |
with (obj_battlecontroller) |
246 |
noreturn = 1; |
247 |
con = 1; |
248 |
battlecancel = 3; |
249 |
} |
250 |
} |
251 |
} |
252 |
} |
253 |
if (con == 1) |
254 |
{ |
255 |
con = 2; |
256 |
alarm[4] = 10; |
257 |
} |
258 |
if (con == 3) |
259 |
{ |
260 |
global.typer = 50; |
261 |
global.mercymod[myself] = 999; |
262 |
global.msg[0] = Alright,Delay 11 you convinced me!!Wait for inputClose Message ; |
263 |
scr_enemyblconscr_enemyblconfunction scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
} (x - 160, y, 3); |
264 |
con = 4; |
265 |
} |
266 |
if (con == 4 && !instance_exists(obj_writer)) |
267 |
{ |
268 |
hspeed = 15; |
269 |
con = 5; |
270 |
alarm[4] = 15; |
271 |
with (obj_battlecontroller) |
272 |
alarm[2] |
273 |
} |
274 |
if (con == 6) |
275 |
{ |
276 |
with (obj_battlecontroller) |
277 |
noreturn = 0; |
278 |
scr_monsterdefeatscr_monsterdefeatfunction scr_monsterdefeat()
{
if (global.monster[myself] == 1)
{
global.monstergold[3] += global.monstergold[myself];
global.monsterexp[3] += global.monsterexp[myself];
global.monster[myself] = 0;
if (global.flag[51 + myself] == 0)
{
global.flag[51 + myself] = 2;
if (global.monsterhp[myself] <= 0)
global.flag[51 + myself] = 1;
}
if (global.flag[51 + myself] == 1)
global.flag[40 violences] += 1;
if (global.flag[51 + myself] == 2)
global.flag[41 spares] += 1;
if (global.flag[51 + myself] == 3)
global.flag[42 pacifies] += 1;
if (global.flag[51 + myself] == 5)
global.flag[43 autosusie_violences] += 1;
if ( scr_monsterpop() == 0)
{
_amt_add = 0;
_violenced = 0;
_spared = 0;
_pacified = 0;
for (d_i = 0; d_i < 3; d_i += 1)
{
if (global.flag[51 + d_i] != 0)
_amt_add += 1;
if (global.flag[51 + d_i] == 1)
_violenced += 1;
if (global.flag[51 + d_i] == 2)
_spared += 1;
if (global.flag[51 + d_i] == 3)
_pacified += 1;
}
if (_pacified > 0)
global.flag[50 last_encounter_end] = 3;
if (_spared > 0)
global.flag[50 last_encounter_end] = 2;
if (_violenced > 0)
global.flag[50 last_encounter_end] = 1;
}
event_user(11);
}
} (); |
279 |
instance_destroy(); |
280 |
con = 7; |
281 |
} |
282 |
if (global.myfight == 3) |
283 |
{ |
284 |
xx = __view_get(e__VW.XView, 0); |
285 |
yy = __view_get(e__VW.YView, 0); |
286 |
if (acting == 1 && actcon == 0) |
287 |
{ |
288 |
actcon = 1; |
289 |
global.msg[0] = * JEVIL * There is no strategy to defeat the enemy. Good luck!Wait for inputClose Message ; |
290 |
scr_battletext_default(); |
291 |
} |
292 |
if (acting == 2 && actcon == 0) |
293 |
{ |
294 |
actcon = 5; |
295 |
global.msg[0] = * Kris spun around!Delay 11 * JEVIL got slightly more TIRED,Delay 11 and...!Wait for inputClose Message ; |
296 |
snd_play(snd_pirouette); |
297 |
with (obj_herokris) |
298 |
visible = 0; |
299 |
dancekris = scr_dark_markerscr_dark_markerfunction scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (obj_herokris.x, obj_herokris.y, spr_krisb_pirouette); |
300 |
with (dancekris) |
301 |
{ |
302 |
image_speed = 0.3334; |
303 |
depth = obj_herokris.depth; |
304 |
} |
305 |
fx = instance_create(dancekris.x + 28, dancekris.y + 40, obj_afterimage_grow); |
306 |
fx.sprite_index = spr_pirouette_fx; |
307 |
fx.image_xscale = 2; |
308 |
fx.image_yscale = 2; |
309 |
scr_battletext_default(); |
310 |
} |
311 |
if (actcon == 5 && !instance_exists(obj_writer)) |
312 |
{ |
313 |
with (dancekris) |
314 |
instance_destroy(); |
315 |
with (obj_herokris) |
316 |
visible = 1; |
317 |
global.msg[0] = * Something happened!Wait for inputClose Message ; |
318 |
if (chaosdance == 0) |
319 |
{ |
320 |
global.msg[0] = * What!Delay 11 * It was just foley!Wait for inputClose Message ; |
321 |
ch = choose(0, 1, 2); |
322 |
if (ch == 0) |
323 |
snd_play(snd_badexplosion); |
324 |
if (ch == 1) |
325 |
snd_play(snd_carhonk); |
326 |
if (ch == 2) |
327 |
snd_play(snd_toilet); |
328 |
} |
329 |
if (chaosdance == 1) |
330 |
{ |
331 |
global.msg[0] = * JEVIL felt at ease!Delay 11 * JEVIL's defense dropped!Wait for inputClose Message ; |
332 |
if (global.monsterdf[myself] >= -16) |
333 |
global.monsterdf[myself] -= 4; |
334 |
snd_play(snd_weirdeffect); |
335 |
} |
336 |
if (chaosdance == 2) |
337 |
{ |
338 |
global.msg[0] = * Awkward!Delay 11 Upcoming attack will hurt rapidly!Wait for inputClose Message ; |
339 |
snd_play(snd_awkward); |
340 |
global.invc = 0.4; |
341 |
} |
342 |
if (chaosdance == 3) |
343 |
{ |
344 |
global.msg[0] = * Tranquil!Delay 11 * The dance defended the party!Wait for inputClose Message ; |
345 |
pfactor = 0.7; |
346 |
snd_play(snd_shadowpendant); |
347 |
} |
348 |
if (chaosdance == 4) |
349 |
{ |
350 |
with (obj_marker) |
351 |
{ |
352 |
if (sprite_index == spr_uselessbird) |
353 |
instance_destroy(); |
354 |
} |
355 |
bird = scr_dark_markerscr_dark_markerfunction scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (__view_get(e__VW.XView, 0) - 40, __view_get(e__VW.YView, 0) + 60, spr_uselessbird); |
356 |
with (bird) |
357 |
{ |
358 |
hspeed = 12; |
359 |
image_speed = 0.334; |
360 |
} |
361 |
snd_play(snd_birdtweet); |
362 |
global.msg[0] = * What!Delay 11 * It's nothing but a useless bird!Wait for inputClose Message ; |
363 |
} |
364 |
if (chaosdance == 5) |
365 |
{ |
366 |
global.msg[0] = * It felt comforting!Wait for inputClose Message ; |
367 |
star = choose(0, 1, 2); |
368 |
scr_healitemspellscr_healitemspellfunction scr_healitemspell(arg0)
{
scr_heal(star, arg0);
with (global.charinstance[star])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
global.spelldelay = 15;
} (floor(random(31) + 25)); |
369 |
} |
370 |
if (chaosdance == 6) |
371 |
{ |
372 |
global.msg[0] = * Everyone's HP got jumbled up!Wait for inputClose Message ; |
373 |
swap1 = 1; |
374 |
swap2 = 1; |
375 |
swap1 = choose(2, 3); |
376 |
if (swap1 == 2) |
377 |
swap2 = 3; |
378 |
if (swap1 == 3) |
379 |
swap2 = 2; |
380 |
for (i = 0; i < 4; i += 1) |
381 |
{ |
382 |
remhp[i] = global.hp[i]; |
383 |
curmaxhp[i] = global.maxhp[i]; |
384 |
} |
385 |
global.maxhp[1] = curmaxhp[swap1]; |
386 |
global.maxhp[swap1] = curmaxhp[swap2]; |
387 |
global.maxhp[swap2] = curmaxhp[1]; |
388 |
global.hp[1] = remhp[swap1]; |
389 |
global.hp[swap1] = remhp[swap2]; |
390 |
global.hp[swap2] = remhp[1]; |
391 |
remhpcolor[0] = obj_battlecontroller.hpcolor[0]; |
392 |
remhpcolor[1] = obj_battlecontroller.hpcolor[1]; |
393 |
remhpcolor[2] = obj_battlecontroller.hpcolor[2]; |
394 |
obj_battlecontroller.hpcolor[0] = remhpcolor[swap1 - 1]; |
395 |
obj_battlecontroller.hpcolor[swap1 - 1] = remhpcolor[swap2 - 1]; |
396 |
obj_battlecontroller.hpcolor[swap2 - 1] = remhpcolor[0]; |
397 |
for (i = 1; i <= 3; i += 1) |
398 |
{ |
399 |
if (global.hp[i] < 1) |
400 |
{ |
401 |
global.hp[1] += floor(global.hp[i] / 3); |
402 |
global.hp[2] += floor(global.hp[i] / 3); |
403 |
global.hp[3] += floor(global.hp[i] / 3); |
404 |
global.hp[i] = 1; |
405 |
} |
406 |
} |
407 |
if (global.hp[1] < 1) |
408 |
global.hp[1] = 1; |
409 |
if (global.hp[2] < 1) |
410 |
global.hp[2] = 1; |
411 |
if (global.hp[3] < 1) |
412 |
global.hp[3] = 1; |
413 |
scr_revivescr_revivefunction scr_revive(arg0)
{
global.charmove[arg0] = 1;
global.charcantarget[arg0] = 1;
global.chardead[arg0] = 0;
} (0); |
414 |
scr_revivescr_revivefunction scr_revive(arg0)
{
global.charmove[arg0] = 1;
global.charcantarget[arg0] = 1;
global.chardead[arg0] = 0;
} (1); |
415 |
scr_revivescr_revivefunction scr_revive(arg0)
{
global.charmove[arg0] = 1;
global.charcantarget[arg0] = 1;
global.chardead[arg0] = 0;
} (2); |
416 |
snd_play(snd_weirdeffect); |
417 |
} |
418 |
if (chaosdance == 7) |
419 |
{ |
420 |
snd_play(snd_boost); |
421 |
global.msg[0] = * JEVIL's upcoming move got powered up!Wait for inputClose Message ; |
422 |
pfactor = 1.25; |
423 |
} |
424 |
if (chaosdance == 8) |
425 |
{ |
426 |
snd_play(snd_applause); |
427 |
global.msg[0] = * A perfect 10!Wait for inputClose Message ; |
428 |
scr_healallitemspellscr_healallitemspellfunction scr_healallitemspell(arg0)
{
scr_healall(arg0);
for (i = 0; i < 3; i += 1)
{
with (global.charinstance[i])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = arg0;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
}
global.spelldelay = 20;
} (36 + floor(random(15))); |
429 |
} |
430 |
scr_battletext_default(); |
431 |
hypnosiscounter += 0.5; |
432 |
if (hypnosiscounter >= 9) |
433 |
{ |
434 |
txtpart3 = * JEVIL's looking exhausted! ; |
435 |
global.monsterstatus[myself] = 1; |
436 |
} |
437 |
pirouette = chaosdance; |
438 |
pirouettecounter += 1; |
439 |
actcon = 1; |
440 |
} |
441 |
if (acting == 3 && actcon == 0) |
442 |
{ |
443 |
if (global.monsterat[myself] > 10) |
444 |
global.monsterat[myself] -= 0.5; |
445 |
hypnofx = instance_create(global.monsterx[myself], global.monstery[myself], obj_hypnofx); |
446 |
snd_play(snd_hypnosis); |
447 |
actcon = 1; |
448 |
aaa = choose(0, 1, 2); |
449 |
if (aaa == 0) |
450 |
txtpart1 = * Ralsei chanted something!Delay 11 ; |
451 |
if (aaa == 1) |
452 |
txtpart1 = * Susie spun something around!Delay 11 ; |
453 |
if (aaa == 2) |
454 |
txtpart1 = * Kris gazed strangely!Delay 11 ; |
455 |
txtpart2 = * JEVIL's next attack weakened! ; |
456 |
txtpart3 = * JEVIL became more TIRED! ; |
457 |
if (hypnosiscounter == 0) |
458 |
txtpart3 = * JEVIL became more TIRED! ; |
459 |
if (hypnosiscounter >= 9) |
460 |
{ |
461 |
txtpart3 = * JEVIL's looking exhausted! ; |
462 |
global.monsterstatus[myself] = 1; |
463 |
} |
464 |
global.msg[0] = txtpart1 + txtpart2 + txtpart3 + Wait for inputClose Message ; |
465 |
pfactor = 0.7; |
466 |
hypnosis = 1; |
467 |
hypnosiscounter += 1; |
468 |
scr_battletext_default(); |
469 |
} |
470 |
if (actcon == 1 && !instance_exists(obj_writer)) |
471 |
{ |
472 |
actcon = 0; |
473 |
scr_attackphasescr_attackphasefunction scr_attackphase()
{
with (obj_battlecontroller)
{
techwon = 0;
if ( scr_monsterpop() == 0)
techwon = 1;
if (techwon == 0)
{
fightphase = 1;
global.charturn = 3;
if (global.charaction[0] == 4 || global.charaction[0] == 2)
fightphase = 0;
if (global.charaction[1] == 4 || global.charaction[1] == 2)
fightphase = 0;
if (global.charaction[2] == 4 || global.charaction[2] == 2)
fightphase = 0;
if (global.myfight == 4)
fightphase = 1;
if (fightphase == 1)
{
global.myfight = 1;
instance_create(xx + 2, yy + 365, obj_attackpress);
}
else
{
global.myfight = 4;
instance_create(0, 0, obj_spellphase);
}
}
else
{
scr_wincombat();
}
}
} (); |
474 |
} |
475 |
} |
476 |
if (global.myfight == 7) |
477 |
hspeed = 15; |
478 |
beepbuffer -= 1; |
479 |
if (beepnoise == 4 && beepbuffer < 0) |
480 |
{ |
481 |
snd_stop(snd_bombfall); |
482 |
snd_play(snd_bombfall); |
483 |
beepnoise = 0; |
484 |
beepbuffer = 5; |
485 |
} |
486 |
if (burstnoise == 1) |
487 |
{ |
488 |
snd_stop(snd_bomb); |
489 |
snd_play(snd_bomb); |
490 |
burstnoise = 0; |
491 |
} |
492 |
|
493 |
enum e__VW |
494 |
{ |
495 |
XView, |
496 |
YView, |
497 |
WView, |
498 |
HView, |
499 |
Angle, |
500 |
HBorder, |
501 |
VBorder, |
502 |
HSpeed, |
503 |
VSpeed, |
504 |
Object, |
505 |
Visible, |
506 |
XPort, |
507 |
YPort, |
508 |
WPort, |
509 |
HPort, |
510 |
Camera, |
511 |
SurfaceID |
512 |
} |