1 |
if (ambushed == 0) |
2 |
{ |
3 |
scr_ambush_ch1scr_ambush_ch1function scr_ambush_ch1() //gml_Script_scr_ambush_ch1
{
with (obj_writer_ch1)
instance_destroy()
with (obj_face_ch1)
instance_destroy()
global.charturn = 3
global.mnfight = 1
global.myfight = -1
} () |
4 |
ambushed = 1 |
5 |
} |
6 |
if (global.monster[myself] == 1) |
7 |
{ |
8 |
global.flag[(51 + myself)] = 4 |
9 |
if (global.mnfight == 1 && talked == 0) |
10 |
{ |
11 |
if (attackcon == 0) |
12 |
{ |
13 |
scr_moveheart_ch1scr_moveheart_ch1function scr_moveheart_ch1() //gml_Script_scr_moveheart_ch1
{
return instance_create_ch1((obj_herokris_ch1.x + 10), (obj_herokris_ch1.y + 40), obj_moveheart_ch1);
} () |
14 |
abletotarget = 1 |
15 |
if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0) |
16 |
abletotarget = 0 |
17 |
mytarget = choose(0, 1, 2) |
18 |
if (abletotarget == 1) |
19 |
{ |
20 |
while (global.charcantarget[mytarget] == 0) |
21 |
mytarget = choose(0, 1, 2) |
22 |
} |
23 |
else |
24 |
target = 3 |
25 |
global.targeted[mytarget] = 1 |
26 |
instance_create_ch1(((__view_get((0 << 0), 0)) + 320), ((__view_get((1 << 0), 0)) + 170), obj_growtangle_ch1) |
27 |
instance_create_ch1(0, 0, obj_darkener_ch1) |
28 |
} |
29 |
global.typer = 45 |
30 |
global.fc = 2 |
31 |
global.fe = 1 |
32 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_36_0 |
33 |
if (plot == 0) |
34 |
{ |
35 |
global.fe = 0 |
36 |
global.flag[30 ralsei_hat_state] = 0 |
37 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_42_0 |
38 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_43_0 |
39 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_44_0 |
40 |
global.msg[3] = obj_ralseienemy_slash_Step_0_gml_45_0 |
41 |
global.msg[4] = obj_ralseienemy_slash_Step_0_gml_46_0 |
42 |
global.msg[5] = obj_ralseienemy_slash_Step_0_gml_47_0 |
43 |
global.msg[6] = obj_ralseienemy_slash_Step_0_gml_48_0 |
44 |
} |
45 |
if (plot >= 1) |
46 |
{ |
47 |
dial = 0 |
48 |
if (global.charaction[0] == 1) |
49 |
{ |
50 |
if (dummyhp > global.monsterhp[0]) |
51 |
dial = 1 |
52 |
if (myhp > global.monsterhp[1]) |
53 |
dial = 4 |
54 |
if (dummyhp == global.monsterhp[0] && myhp == global.monsterhp[1] && plot == 1) |
55 |
dial = 2 |
56 |
if (dummyhp == global.monsterhp[0] && myhp == global.monsterhp[1] && misstime == 9 && plot == 2) |
57 |
{ |
58 |
dial = 3 |
59 |
global.flag[205 tutorial_end] = 6 |
60 |
} |
61 |
if (dial == 4 && hittime >= 2) |
62 |
{ |
63 |
hittime = 3 |
64 |
dial = 3 |
65 |
global.flag[205 tutorial_end] = 3 |
66 |
} |
67 |
if (dial == 1 && hitdum >= 3) |
68 |
{ |
69 |
hitdum = 4 |
70 |
dial = 3 |
71 |
global.flag[205 tutorial_end] = 4 |
72 |
} |
73 |
} |
74 |
if (global.charaction[0] == 10) |
75 |
{ |
76 |
global.fe = 0 |
77 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_65_0 |
78 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_66_0 |
79 |
if (defendtime == 1) |
80 |
{ |
81 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_70_0 |
82 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_71_0 |
83 |
} |
84 |
if (defendtime == 2) |
85 |
{ |
86 |
global.fe = 1 |
87 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_77_0 |
88 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_78_0 |
89 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_79_0 |
90 |
} |
91 |
if (defendtime == 3) |
92 |
{ |
93 |
global.fe = 9 |
94 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_86_0 |
95 |
} |
96 |
if (defendtime >= 4) |
97 |
{ |
98 |
dial = 3 |
99 |
global.flag[205 tutorial_end] = 5 |
100 |
} |
101 |
defendtime += 1 |
102 |
} |
103 |
if (global.charaction[0] == 4) |
104 |
{ |
105 |
global.fe = 8 |
106 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_96_0 |
107 |
} |
108 |
if (dial == 1) |
109 |
{ |
110 |
if (plot == 2 && hitdum == 0) |
111 |
hitdum = 1 |
112 |
plot = 2 |
113 |
global.fe = 3 |
114 |
if (dummyhp > (global.monsterhp[0] + 50)) |
115 |
{ |
116 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_107_0 |
117 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_108_0 |
118 |
} |
119 |
else |
120 |
{ |
121 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_112_0 |
122 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_113_0 |
123 |
} |
124 |
if (misstime >= 6) |
125 |
{ |
126 |
global.fe = 8 |
127 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_118_0 |
128 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_119_0 |
129 |
} |
130 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_121_0 |
131 |
global.msg[3] = obj_ralseienemy_slash_Step_0_gml_122_0 |
132 |
global.msg[4] = obj_ralseienemy_slash_Step_0_gml_123_0 |
133 |
global.battlemsg[0] = obj_ralseienemy_slash_Step_0_gml_124_0 |
134 |
if (hitdum == 1) |
135 |
{ |
136 |
global.fe = 1 |
137 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_130_0 |
138 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_131_0 |
139 |
} |
140 |
if (hitdum == 2) |
141 |
{ |
142 |
global.fe = 1 |
143 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_137_0 |
144 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_138_0 |
145 |
} |
146 |
if (hitdum == 3) |
147 |
{ |
148 |
global.fe = 9 |
149 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_144_0 |
150 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_145_0 |
151 |
} |
152 |
hitdum += 1 |
153 |
} |
154 |
if (dial == 2) |
155 |
{ |
156 |
global.fe = 3 |
157 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_154_0 |
158 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_155_0 |
159 |
if (misstime >= 1) |
160 |
{ |
161 |
global.fe = 8 |
162 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_159_0 |
163 |
if (misstime == 2) |
164 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_160_0 |
165 |
if (misstime == 3) |
166 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_161_0 |
167 |
if (misstime == 4) |
168 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_162_0 |
169 |
if (misstime == 5) |
170 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_163_0 |
171 |
if (misstime == 6) |
172 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_164_0 |
173 |
if (misstime == 7) |
174 |
{ |
175 |
global.fe = 9 |
176 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_168_0 |
177 |
} |
178 |
if (misstime == 8) |
179 |
{ |
180 |
global.fe = 1 |
181 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_173_0 |
182 |
global.battlemsg[0] = obj_ralseienemy_slash_Step_0_gml_174_0 |
183 |
plot = 2 |
184 |
} |
185 |
} |
186 |
misstime += 1 |
187 |
} |
188 |
if (dial == 3) |
189 |
{ |
190 |
global.fe = 9 |
191 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_187_0 |
192 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_188_0 |
193 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_189_0 |
194 |
global.msg[3] = obj_ralseienemy_slash_Step_0_gml_190_0 |
195 |
if (hittime >= 3) |
196 |
{ |
197 |
global.fe = 2 |
198 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_195_0 |
199 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_196_0 |
200 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_197_0 |
201 |
global.msg[3] = obj_ralseienemy_slash_Step_0_gml_198_0 |
202 |
} |
203 |
won = 1 |
204 |
} |
205 |
if (dial == 4) |
206 |
{ |
207 |
global.fe = 3 |
208 |
if (hittime == 0) |
209 |
{ |
210 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_212_0 |
211 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_213_0 |
212 |
if (plot == 2) |
213 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_218_0 |
214 |
if (plot == 1) |
215 |
{ |
216 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_222_0 |
217 |
global.msg[3] = obj_ralseienemy_slash_Step_0_gml_223_0 |
218 |
global.battlemsg[0] = obj_ralseienemy_slash_Step_0_gml_224_0 |
219 |
plot = 2 |
220 |
} |
221 |
} |
222 |
if (hittime == 1) |
223 |
{ |
224 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_231_0 |
225 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_232_0 |
226 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_233_0 |
227 |
} |
228 |
hittime += 1 |
229 |
} |
230 |
} |
231 |
scr_battletext_ch1scr_battletext_ch1function scr_battletext_ch1() //gml_Script_scr_battletext_ch1
{
xx = __view_get((0 << 0), 0)
yy = __view_get((1 << 0), 0)
if (global.fc != 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
if (global.fc == 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
myface = instance_create_ch1((xx + 26), (yy + 380), obj_face_ch1)
with (battlewriter)
{
dialoguer = 1
facer = 1
if (global.fc == 0 && originalcharline == 33)
charline = 26
}
return battlewriter;
} () |
232 |
talked = 1 |
233 |
talktimer = 0 |
234 |
} |
235 |
if (talked == 1 && global.mnfight == 1) |
236 |
{ |
237 |
if (instance_exists(obj_writer_ch1) == false) |
238 |
{ |
239 |
with (obj_face_ch1) |
240 |
instance_destroy() |
241 |
if (attackcon == 0) |
242 |
global.mnfight = 2 |
243 |
else |
244 |
{ |
245 |
if (won == 1) |
246 |
{ |
247 |
global.mercymod[0] = 99999 |
248 |
global.mercymod[1] = 99999 |
249 |
} |
250 |
scr_mnendturn_ch1scr_mnendturn_ch1function scr_mnendturn_ch1() //gml_Script_scr_mnendturn_ch1
{
if (global.char[0] == 2)
sus = 0
if (global.char[1] == 2)
sus = 1
if (global.char[2] == 2)
sus = 2
techwon = 0
if ( scr_monsterpop_ch1() == 0)
techwon = 1
if (techwon == 0)
{
scr_battlecursor_memory_reset_ch1()
global.mnfight = 0
global.myfight = 0
global.bmenuno = 0
global.charturn = 0
skip = 0
for (i = 0; i < 3; i += 1)
{
with (global.charinstance[i])
tu = 0
hptarget = global.char[i]
if (global.char[i] != 0 && global.hp[hptarget] <= 0)
{
healamt = ceil(global.maxhp[hptarget] / 8)
dmgwr = instance_create_ch1(global.charinstance[i].x, (global.charinstance[i].y + global.charinstance[i].myheight - 24), obj_dmgwriter_ch1)
with (dmgwr)
{
delay = 1
type = 3
}
dmgwr.damage = scr_heal_ch1(i, healamt)
if (global.hp[hptarget] >= 1)
{
with (dmgwr)
specialmessage = 4
}
}
}
if (global.charmove[0] == 0 || global.charauto[global.char[0]] == 1)
global.charturn = 1
if (global.charturn == 1)
{
if (global.charmove[1] == 0 || global.charauto[global.char[1]] == 1)
global.charturn = 2
}
if (global.charturn == 2)
{
if (global.charmove[2] == 0 || global.charauto[global.char[2]] == 1)
skip = 1
}
for (i = 0; i < 3; i += 1)
{
global.acting[i] = 0
global.temptension[i] = global.tension
global.charspecial[i] = 0
global.targeted[i] = 0
global.charaction[i] = 0
global.faceaction[i] = 0
}
with (obj_monsterparent_ch1)
{
attacked = 0
talked = 0
acting = 0
}
if (skip == 1)
{
if (global.char[0] == 2 && global.charauto[2] == 1)
{
global.acting[0] = 1
global.myfight = 3
}
scr_endturn_ch1()
}
for (i = 0; i < 12; i += 1)
{
for (j = 0; j < 3; j += 1)
tempitem[i][j] = global.item[i]
}
}
else
scr_wincombat_ch1()
} () |
251 |
dummyhp = global.monsterhp[0] |
252 |
myhp = global.monsterhp[1] |
253 |
} |
254 |
} |
255 |
} |
256 |
if (global.mnfight == 2 && attacked == 0) |
257 |
{ |
258 |
if (attacks == 0) |
259 |
attackcon = 1 |
260 |
turns += 1 |
261 |
global.turntimer = 999 |
262 |
attacked = 1 |
263 |
rr = floor(random(0)) |
264 |
global.typer = 6 |
265 |
global.fc = 0 |
266 |
if (rr == 0) |
267 |
global.battlemsg[0] = obj_ralseienemy_slash_Step_0_gml_288_0 |
268 |
} |
269 |
} |
270 |
if (attackcon < 92 && attackcon > 0) |
271 |
{ |
272 |
global.turntimer = 999 |
273 |
if (attackcon == 1) |
274 |
{ |
275 |
krishp = global.hp[1] |
276 |
b1 = instance_create_ch1((obj_heart_ch1.x + 150), obj_heart_ch1.y, obj_ralseibullet_ch1) |
277 |
attackcon = 2 |
278 |
alarm[5] = 35 |
279 |
} |
280 |
if (attackcon == 3) |
281 |
{ |
282 |
b2 = instance_create_ch1((obj_heart_ch1.x - 150), obj_heart_ch1.y, obj_ralseibullet_ch1) |
283 |
attackcon = 4 |
284 |
alarm[5] = 35 |
285 |
} |
286 |
if (attackcon == 5) |
287 |
{ |
288 |
b3 = instance_create_ch1((obj_heart_ch1.x + 8), (obj_heart_ch1.y - 150), obj_ralseibullet_ch1) |
289 |
attackcon = 6 |
290 |
alarm[5] = 60 |
291 |
} |
292 |
if (attackcon == 7) |
293 |
{ |
294 |
attackcon = 8 |
295 |
global.turntimer = 999 |
296 |
if (krishp == global.hp[1]) |
297 |
{ |
298 |
global.fc = 2 |
299 |
global.fe = 0 |
300 |
global.typer = 45 |
301 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_334_0 |
302 |
scr_battletext_ch1scr_battletext_ch1function scr_battletext_ch1() //gml_Script_scr_battletext_ch1
{
xx = __view_get((0 << 0), 0)
yy = __view_get((1 << 0), 0)
if (global.fc != 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
if (global.fc == 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
myface = instance_create_ch1((xx + 26), (yy + 380), obj_face_ch1)
with (battlewriter)
{
dialoguer = 1
facer = 1
if (global.fc == 0 && originalcharline == 33)
charline = 26
}
return battlewriter;
} () |
303 |
attackcon = 90 |
304 |
} |
305 |
else |
306 |
{ |
307 |
global.fc = 2 |
308 |
global.fe = 3 |
309 |
global.typer = 45 |
310 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_343_0 |
311 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_344_0 |
312 |
scr_battletext_ch1scr_battletext_ch1function scr_battletext_ch1() //gml_Script_scr_battletext_ch1
{
xx = __view_get((0 << 0), 0)
yy = __view_get((1 << 0), 0)
if (global.fc != 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
if (global.fc == 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
myface = instance_create_ch1((xx + 26), (yy + 380), obj_face_ch1)
with (battlewriter)
{
dialoguer = 1
facer = 1
if (global.fc == 0 && originalcharline == 33)
charline = 26
}
return battlewriter;
} () |
313 |
} |
314 |
} |
315 |
if (attackcon == 8 && instance_exists(obj_writer_ch1) == false) |
316 |
{ |
317 |
with (obj_face_ch1) |
318 |
instance_destroy() |
319 |
krishp = global.hp[1] |
320 |
b1 = instance_create_ch1((obj_heart_ch1.x + 8), (obj_heart_ch1.y - 150), obj_ralseibullet_ch1) |
321 |
attackcon = 9 |
322 |
alarm[5] = 60 |
323 |
} |
324 |
if (attackcon == 10) |
325 |
{ |
326 |
attackcon = 11 |
327 |
global.turntimer = 999 |
328 |
if (krishp == global.hp[1]) |
329 |
{ |
330 |
global.fc = 2 |
331 |
global.fe = 0 |
332 |
global.typer = 45 |
333 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_369_0 |
334 |
scr_battletext_ch1scr_battletext_ch1function scr_battletext_ch1() //gml_Script_scr_battletext_ch1
{
xx = __view_get((0 << 0), 0)
yy = __view_get((1 << 0), 0)
if (global.fc != 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
if (global.fc == 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
myface = instance_create_ch1((xx + 26), (yy + 380), obj_face_ch1)
with (battlewriter)
{
dialoguer = 1
facer = 1
if (global.fc == 0 && originalcharline == 33)
charline = 26
}
return battlewriter;
} () |
335 |
attackcon = 90 |
336 |
} |
337 |
else |
338 |
{ |
339 |
global.fc = 2 |
340 |
global.fe = 9 |
341 |
global.typer = 45 |
342 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_378_0 |
343 |
scr_battletext_ch1scr_battletext_ch1function scr_battletext_ch1() //gml_Script_scr_battletext_ch1
{
xx = __view_get((0 << 0), 0)
yy = __view_get((1 << 0), 0)
if (global.fc != 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
if (global.fc == 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
myface = instance_create_ch1((xx + 26), (yy + 380), obj_face_ch1)
with (battlewriter)
{
dialoguer = 1
facer = 1
if (global.fc == 0 && originalcharline == 33)
charline = 26
}
return battlewriter;
} () |
344 |
} |
345 |
} |
346 |
if (attackcon == 11 && instance_exists(obj_writer_ch1) == false) |
347 |
{ |
348 |
b1 = instance_create_ch1((xx + 440), (obj_heart_ch1.y + 8), obj_ralseibullet_ch1) |
349 |
with (b1) |
350 |
{ |
351 |
special = 1 |
352 |
alarm[0] |
353 |
} |
354 |
attackcon = 12 |
355 |
alarm[5] = 80 |
356 |
} |
357 |
if (attackcon == 13) |
358 |
{ |
359 |
global.fc = 2 |
360 |
global.fe = 8 |
361 |
global.typer = 45 |
362 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_399_0 |
363 |
scr_battletext_ch1scr_battletext_ch1function scr_battletext_ch1() //gml_Script_scr_battletext_ch1
{
xx = __view_get((0 << 0), 0)
yy = __view_get((1 << 0), 0)
if (global.fc != 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
if (global.fc == 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
myface = instance_create_ch1((xx + 26), (yy + 380), obj_face_ch1)
with (battlewriter)
{
dialoguer = 1
facer = 1
if (global.fc == 0 && originalcharline == 33)
charline = 26
}
return battlewriter;
} () |
364 |
attackcon = 90 |
365 |
} |
366 |
if (attackcon == 90 && instance_exists(obj_writer_ch1) == false) |
367 |
{ |
368 |
global.fc = 2 |
369 |
global.fe = 0 |
370 |
global.typer = 45 |
371 |
global.charturn = 0 |
372 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_410_0 |
373 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_411_0 |
374 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_412_0 |
375 |
global.msg[3] = obj_ralseienemy_slash_Step_0_gml_413_0 |
376 |
global.msg[4] = obj_ralseienemy_slash_Step_0_gml_414_0 |
377 |
scr_battletext_ch1scr_battletext_ch1function scr_battletext_ch1() //gml_Script_scr_battletext_ch1
{
xx = __view_get((0 << 0), 0)
yy = __view_get((1 << 0), 0)
if (global.fc != 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
if (global.fc == 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
myface = instance_create_ch1((xx + 26), (yy + 380), obj_face_ch1)
with (battlewriter)
{
dialoguer = 1
facer = 1
if (global.fc == 0 && originalcharline == 33)
charline = 26
}
return battlewriter;
} () |
378 |
attackcon = 91 |
379 |
} |
380 |
if (attackcon == 91) |
381 |
{ |
382 |
global.turntimer = 999 |
383 |
if (instance_exists(obj_writer_ch1) == false) |
384 |
{ |
385 |
dummyhp = global.monsterhp[0] |
386 |
myhp = global.monsterhp[1] |
387 |
global.turntimer = 0 |
388 |
global.battlemsg[0] = obj_ralseienemy_slash_Step_0_gml_427_0 |
389 |
plot = 1 |
390 |
attackcon = 92 |
391 |
} |
392 |
} |
393 |
} |
394 |
if (global.myfight == 3) |
395 |
{ |
396 |
xx = __view_get((0 << 0), 0) |
397 |
yy = __view_get((1 << 0), 0) |
398 |
if (acting == 1 && actcon == 0) |
399 |
{ |
400 |
actcon = 1 |
401 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_447_0 |
402 |
scr_battletext_default_ch1() |
403 |
} |
404 |
if (acting == 2 && actcon == 0) |
405 |
{ |
406 |
with (obj_herokris_ch1) |
407 |
{ |
408 |
global.faceaction[myself] = 0 |
409 |
state = 0 |
410 |
acttimer = 0 |
411 |
} |
412 |
actcon = 10 |
413 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_464_0 |
414 |
scr_battletext_default_ch1() |
415 |
} |
416 |
if (actcon == 1 && (!instance_exists(obj_writer_ch1))) |
417 |
{ |
418 |
actcon = 0 |
419 |
scr_attackphase_ch1scr_attackphase_ch1function scr_attackphase_ch1() //gml_Script_scr_attackphase_ch1
{
with (obj_battlecontroller_ch1)
{
techwon = 0
if ( scr_monsterpop_ch1() == 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_ch1((xx + 2), (yy + 365), obj_attackpress_ch1)
}
else
{
global.myfight = 4
instance_create_ch1(0, 0, obj_spellphase_ch1)
}
}
else
scr_wincombat_ch1()
}
} () |
420 |
} |
421 |
if (actcon == 10) |
422 |
{ |
423 |
with (global.charinstance[0]) |
424 |
visible = 0 |
425 |
k = scr_dark_marker_ch1scr_dark_marker_ch1function scr_dark_marker_ch1(argument0, argument1, argument2) //gml_Script_scr_dark_marker_ch1
{
thismarker = instance_create_ch1(argument0, argument1, obj_marker_ch1)
with (thismarker)
{
sprite_index = argument2
image_speed = 0
image_xscale = 2
image_yscale = 2
}
return thismarker;
} (global.charinstance[0].x, global.charinstance[0].y, spr_kris_hug_ch1) |
426 |
with (k) |
427 |
scr_move_to_point_over_time_ch1((global.monsterx[1] - 42), (global.monstery[1] - 16), 15) |
428 |
actcon = 11 |
429 |
alarm[4] = 25 |
430 |
} |
431 |
if (actcon == 12) |
432 |
{ |
433 |
sprite_index = spr_ralseib_idle_enemy_blush_ch1 |
434 |
with (k) |
435 |
image_speed = 0.25 |
436 |
actcon = 13 |
437 |
alarm[4] = 12 |
438 |
} |
439 |
if (actcon == 14) |
440 |
{ |
441 |
with (k) |
442 |
image_speed = 0 |
443 |
actcon = 15 |
444 |
} |
445 |
if (actcon == 15 && (!instance_exists(obj_writer_ch1))) |
446 |
{ |
447 |
global.typer = 45 |
448 |
global.fc = 2 |
449 |
global.fe = 2 |
450 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_504_0 |
451 |
if (hugtime == 0) |
452 |
{ |
453 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_508_0 |
454 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_509_0 |
455 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_510_0 |
456 |
global.msg[3] = obj_ralseienemy_slash_Step_0_gml_511_0 |
457 |
} |
458 |
if (hugtime == 1) |
459 |
{ |
460 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_516_0 |
461 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_517_0 |
462 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_518_0 |
463 |
global.flag[205 tutorial_end] = 2 |
464 |
won = 1 |
465 |
} |
466 |
hugtime += 1 |
467 |
scr_battletext_ch1scr_battletext_ch1function scr_battletext_ch1() //gml_Script_scr_battletext_ch1
{
xx = __view_get((0 << 0), 0)
yy = __view_get((1 << 0), 0)
if (global.fc != 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
if (global.fc == 0)
battlewriter = instance_create_ch1((xx + 30), (yy + 376), obj_writer_ch1)
myface = instance_create_ch1((xx + 26), (yy + 380), obj_face_ch1)
with (battlewriter)
{
dialoguer = 1
facer = 1
if (global.fc == 0 && originalcharline == 33)
charline = 26
}
return battlewriter;
} () |
468 |
actcon = 16 |
469 |
} |
470 |
if (actcon == 16 && (!instance_exists(obj_writer_ch1))) |
471 |
{ |
472 |
with (myface) |
473 |
instance_destroy() |
474 |
with (k) |
475 |
image_speed = -0.25 |
476 |
actcon = 17 |
477 |
alarm[4] = 12 |
478 |
} |
479 |
if (actcon == 18) |
480 |
{ |
481 |
with (k) |
482 |
image_speed = 0 |
483 |
with (k) |
484 |
scr_move_to_point_over_time_ch1(global.charinstance[0].x, global.charinstance[0].y, 15) |
485 |
actcon = 19 |
486 |
alarm[4] = 25 |
487 |
} |
488 |
if (actcon == 20) |
489 |
{ |
490 |
sprite_index = spr_ralseib_idle_enemy_ch1 |
491 |
with (k) |
492 |
instance_destroy() |
493 |
global.charinstance[0].visible = 1 |
494 |
actcon = 1 |
495 |
if (won == 1) |
496 |
{ |
497 |
global.mercymod[0] = 999999 |
498 |
global.mercymod[1] = 999999 |
499 |
} |
500 |
} |
501 |
} |
502 |
if (con == 1) |
503 |
{ |
504 |
alarm[4] = 5 |
505 |
con = 2 |
506 |
} |
507 |
if (con == 3) |
508 |
{ |
509 |
global.typer = 7 |
510 |
global.msg[0] = obj_ralseienemy_slash_Step_0_gml_575_0 |
511 |
global.msg[1] = obj_ralseienemy_slash_Step_0_gml_576_0 |
512 |
global.msg[2] = obj_ralseienemy_slash_Step_0_gml_577_0 |
513 |
global.msg[3] = obj_ralseienemy_slash_Step_0_gml_578_0 |
514 |
global.msg[4] = obj_ralseienemy_slash_Step_0_gml_579_0 |
515 |
global.msg[5] = obj_ralseienemy_slash_Step_0_gml_580_0 |
516 |
con = 4 |
517 |
mywriter = instance_create_ch1((x - 160), (y - 30), obj_writer_ch1) |
518 |
} |
519 |
if (con == 4 && (!instance_exists(obj_writer_ch1))) |
520 |
{ |
521 |
hspeed = 20 |
522 |
con = 5 |
523 |
alarm[4] = 15 |
524 |
with (obj_battlecontroller_ch1) |
525 |
{ |
526 |
noreturn = 0 |
527 |
alarm[2] |
528 |
} |
529 |
} |
530 |
if (con == 6) |
531 |
{ |
532 |
global.monsterexp[myself] -= 0 |
533 |
global.monstergold[myself] += 10 |
534 |
scr_monsterdefeat_ch1scr_monsterdefeat_ch1function scr_monsterdefeat_ch1() //gml_Script_scr_monsterdefeat_ch1
{
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_ch1() == 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)
}
} () |
535 |
instance_destroy() |
536 |
con = 7 |
537 |
} |