|
1
|
if (susinit == 0)
|
|
2
|
{
|
|
3
|
with (obj_herosusie)
|
|
4
|
{
|
|
5
|
idlesprite = spr_susieb_idle_serious;
|
|
6
|
attacksprite = spr_susieb_attack_serious;
|
|
7
|
}
|
|
8
|
susinit = 1;
|
|
9
|
}
|
|
10
|
if (global.monster[myself] == 1)
|
|
11
|
{
|
|
12
|
global.flag[51 + myself] = 4;
|
|
13
|
if (global.mnfight == 1 && talked == 0)
|
|
14
|
{
|
|
15
|
if (!instance_exists(obj_darkener))
|
|
16
|
instance_create(0, 0, obj_darkener);
|
|
17
|
global.typer = 50;
|
|
18
|
global.msg[0] = Fall before the chain of justice!Wait for inputClose Message ;
|
|
19
|
blcontype = 3;
|
|
20
|
if (kturn == 0)
|
|
21
|
global.msg[0] = How dare you come here, Lightners...?Wait for inputClose Message ;
|
|
22
|
if (kturn == 1)
|
|
23
|
{
|
|
24
|
global.msg[0] = You, that left us in the shadows, stripped of meaning...Wait for inputClose Message ;
|
|
25
|
blcontype = 8;
|
|
26
|
}
|
|
27
|
if (kturn == 2)
|
|
28
|
global.msg[0] = You DARE return to torment us once again?Wait for inputClose Message ;
|
|
29
|
if (kturn == 3)
|
|
30
|
global.msg[0] = Begone! We have found fresh purpose.Wait for inputClose Message ;
|
|
31
|
if (kturn == 4)
|
|
32
|
global.msg[0] = For the KNIGHT has appeared.Wait for inputClose Message ;
|
|
33
|
if (kturn == 5)
|
|
34
|
{
|
|
35
|
global.msg[0] = The KNIGHT that pulls the Fountains from the Earth.Wait for inputClose Message ;
|
|
36
|
blcontype = 8;
|
|
37
|
}
|
|
38
|
if (kturn == 6)
|
|
39
|
{
|
|
40
|
blcontype = 8;
|
|
41
|
global.msg[0] = Holy Fountains, whose shadows are creating a new world...Wait for input ;
|
|
42
|
global.msg[1] = OUR world.Wait for inputClose Message ;
|
|
43
|
}
|
|
44
|
if (kturn == 7)
|
|
45
|
global.msg[0] = Hahaha... Do you see now our NEW purpose...?Wait for inputClose Message ;
|
|
46
|
if (kturn == 8)
|
|
47
|
{
|
|
48
|
global.msg[0] = Soon, this world shall be blanketed in darkness...Wait for input ;
|
|
49
|
global.msg[1] = And DARKNERS shall RULE it!Wait for inputClose Message ;
|
|
50
|
blcontype = 8;
|
|
51
|
}
|
|
52
|
if (kturn == 9)
|
|
53
|
global.msg[0] = Then, you may see what it is like to live in DESPAIR!Wait for inputClose Message ;
|
|
54
|
if (kturn == 10)
|
|
55
|
{
|
|
56
|
global.msg[0] = Now, enough talk!Wait for input ;
|
|
57
|
global.msg[1] = Fall before the chain of justice!Wait for inputClose Message ;
|
|
58
|
}
|
|
59
|
if (kturn == 11)
|
|
60
|
global.msg[0] = ... ha, you're quite strong, aren't you!?Wait for inputClose Message ;
|
|
61
|
if (kturn == 12)
|
|
62
|
global.msg[0] = If I keep fighting you like this, then...Wait for inputClose Message ;
|
|
63
|
if (kturn == 13)
|
|
64
|
global.msg[0] = It seems... that...Wait for inputClose Message ;
|
|
65
|
if (kturn >= 14)
|
|
66
|
{
|
|
67
|
global.msg[0] = My KNIGHT... I shall not fail you...Wait for inputClose Message ;
|
|
68
|
battlecancel = 2;
|
|
69
|
}
|
|
70
|
kturn += 1;
|
|
71
|
if (kturn <= 11)
|
|
72
|
{
|
|
73
|
attack = kturn;
|
|
74
|
}
|
|
75
|
else
|
|
76
|
{
|
|
77
|
if (kturn == 12)
|
|
78
|
attack = 7;
|
|
79
|
if (kturn == 13)
|
|
80
|
attack = 8;
|
|
81
|
if (kturn == 14)
|
|
82
|
attack = 10;
|
|
83
|
if (kturn == 15)
|
|
84
|
attack = 9;
|
|
85
|
if (kturn == 16)
|
|
86
|
attack = 7;
|
|
87
|
if (kturn == 17)
|
|
88
|
attack = 11;
|
|
89
|
if (kturn >= 18)
|
|
90
|
attack = 11;
|
|
91
|
if (global.monsterdf[myself] > -25)
|
|
92
|
global.monsterdf[myself] -= 5;
|
|
93
|
}
|
|
94
|
target_randomly = 1;
|
|
95
|
if (attack == 2 || attack == 5 || attack == 10 || attack == 11)
|
|
96
|
scr_targetallscr_targetall
function scr_targetall()
{
for (_ti = 0; _ti < 3; _ti += 1)
{
if (global.charcantarget[_ti] == 1)
global.targeted[_ti] = 1;
}
mytarget = 3;
target = 3;
} ();
|
|
97
|
else
|
|
98
|
scr_randomtargetscr_randomtarget
function 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;
} ();
|
|
99
|
scr_enemyblconscr_enemyblcon
function 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, blcontype);
|
|
100
|
talked = 1;
|
|
101
|
talktimer = 0;
|
|
102
|
}
|
|
103
|
if (talked == 1 && global.mnfight == 1)
|
|
104
|
{
|
|
105
|
rtimer = 0;
|
|
106
|
scr_blconskipscr_blconskip
function 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;
}
} (-1);
|
|
107
|
}
|
|
108
|
if (global.mnfight == 2 && attacked == 0)
|
|
109
|
{
|
|
110
|
rtimer += 1;
|
|
111
|
if (rtimer == 12)
|
|
112
|
{
|
|
113
|
talktimer = 0;
|
|
114
|
global.turntimer = 180;
|
|
115
|
event_user(5);
|
|
116
|
turns += 1;
|
|
117
|
attacked = 1;
|
|
118
|
global.typer = 6;
|
|
119
|
global.fc = 0;
|
|
120
|
rr = choose(0, 1, 2, 3);
|
|
121
|
if (rr == 0)
|
|
122
|
global.battlemsg[0] = * Darkness pours from the fountain. ;
|
|
123
|
if (rr == 1)
|
|
124
|
global.battlemsg[0] = * KING's mouths gave a berserk smile. ;
|
|
125
|
if (rr == 2)
|
|
126
|
global.battlemsg[0] = * The battlefield is rumbling. ;
|
|
127
|
if (rr == 3)
|
|
128
|
global.battlemsg[0] = * KING's mouths babble indecipherably. ;
|
|
129
|
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4))
|
|
130
|
global.battlemsg[0] = * KING's cape flutters weakly. ;
|
|
131
|
}
|
|
132
|
else
|
|
133
|
{
|
|
134
|
global.turntimer = 120;
|
|
135
|
}
|
|
136
|
}
|
|
137
|
if (global.mnfight == 2)
|
|
138
|
{
|
|
139
|
if (global.turntimer <= 1)
|
|
140
|
{
|
|
141
|
if (battlecancel == 1)
|
|
142
|
global.mercymod[myself] = 999;
|
|
143
|
if (battlecancel == 2)
|
|
144
|
{
|
|
145
|
with (obj_battlecontroller)
|
|
146
|
noreturn = 1;
|
|
147
|
con = 1;
|
|
148
|
battlecancel = 3;
|
|
149
|
}
|
|
150
|
}
|
|
151
|
}
|
|
152
|
}
|
|
153
|
if (con == 1)
|
|
154
|
con = 4;
|
|
155
|
if (con == 4 && !instance_exists(obj_writer))
|
|
156
|
{
|
|
157
|
con = 5;
|
|
158
|
alarm[4] = 15; gml_Object_obj_king_boss_Alarm_4.gml
con += 1;
|
|
159
|
with (obj_battlecontroller)
|
|
160
|
alarm[2]
|
|
161
|
}
|
|
162
|
if (con == 6)
|
|
163
|
{
|
|
164
|
with (obj_battlecontroller)
|
|
165
|
noreturn = 0;
|
|
166
|
global.flag[247 spared_king] = 1;
|
|
167
|
scr_monsterdefeatscr_monsterdefeat
function 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);
}
} ();
|
|
168
|
event_user(10);
|
|
169
|
instance_destroy();
|
|
170
|
con = 7;
|
|
171
|
}
|
|
172
|
if (global.myfight == 3)
|
|
173
|
{
|
|
174
|
xx = __view_get(e__VW.XView, 0);
|
|
175
|
yy = __view_get(e__VW.YView, 0);
|
|
176
|
if (acting == 1 && actcon == 0)
|
|
177
|
{
|
|
178
|
actcon = 1;
|
|
179
|
global.msg[0] = * KING - Abandoned by the Lightners,Delay 11 his heart became cracked with hatred.Wait for input ;
|
|
180
|
global.msg[1] = * He cannot be reasoned with,Delay 11 but don't give up...!Wait for inputClose Message ;
|
|
181
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
182
|
}
|
|
183
|
if (acting == 2 && actcon == 0)
|
|
184
|
{
|
|
185
|
if (global.tempflag[5] == 0)
|
|
186
|
{
|
|
187
|
global.msg[0] = * You tried to reason with the King...Wait for input ;
|
|
188
|
scr_kingfacescr_kingface
function scr_kingface(arg0, arg1)
{
if (global.plot >= 235)
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char K Sound K Close Message , string(arg1));
else
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Sound K Close Message , string(arg1));
} (1, 5);
|
|
189
|
global.msg[2] = * Silence,Delay 11 Lightbringer!Wait for input ;
|
|
190
|
global.msg[3] = * Your very existence goes against our own...Wait for input ;
|
|
191
|
global.msg[4] = Face 0* By the Knight's will,Delay 11 I shall shatter your heart to pieces!Wait for input ;
|
|
192
|
scr_nofacescr_noface
function scr_noface(arg0)
{
global.msg[arg0] = Sound X Char 0 Sound 0 Close Message ;
} (5);
|
|
193
|
global.msg[6] = * Your will is changing...Delay 11 * TALK became COURAGE!Wait for inputClose Message ;
|
|
194
|
global.tempflag[5] = 1;
|
|
195
|
global.canact[myself][1] = 1;
|
|
196
|
global.actactor[myself][1] = 1;
|
|
197
|
global.actname[myself][1] = ;
|
|
198
|
global.actdesc[myself][1] = ;
|
|
199
|
global.actcost[myself][1] = 62;
|
|
200
|
}
|
|
201
|
else
|
|
202
|
{
|
|
203
|
snd_play(snd_power);
|
|
204
|
with (obj_heroparent)
|
|
205
|
{
|
|
206
|
__of = scr_oflashscr_oflash
function scr_oflash()
{
_oflash = instance_create(x, y, obj_oflash);
_oflash.image_xscale = image_xscale;
_oflash.image_speed = 0;
_oflash.image_index = image_index;
_oflash.image_yscale = image_yscale;
_oflash.sprite_index = sprite_index;
_oflash.depth = depth - 1;
_oflash.target = id;
return _oflash;
} ();
|
|
207
|
__of.flashcolor = c_orange;
|
|
208
|
}
|
|
209
|
global.msg[0] = * You encouraged the party!Delay 11 * The party's DEFENSE raised for this turn!Wait for inputClose Message ;
|
|
210
|
tempattack = 0.8;
|
|
211
|
}
|
|
212
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
213
|
actcon = 1;
|
|
214
|
}
|
|
215
|
if (acting == 3 && actcon == 0)
|
|
216
|
{
|
|
217
|
if (global.tempflag[6] == 0)
|
|
218
|
{
|
|
219
|
global.msg[0] = * Susie tried to reason with the King...Wait for input ;
|
|
220
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (1, 1);
|
|
221
|
global.msg[2] = * Arright,Delay 11 listen up.Wait for input ;
|
|
222
|
global.msg[3] = Face 2* Lancer's my friend.Wait for input ;
|
|
223
|
global.msg[4] = Face C* So if we can get by without hurting you,Delay 11 then...Wait for input ;
|
|
224
|
scr_kingfacescr_kingface
function scr_kingface(arg0, arg1)
{
if (global.plot >= 235)
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char K Sound K Close Message , string(arg1));
else
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Sound K Close Message , string(arg1));
} (5, 0);
|
|
225
|
global.msg[6] = * If I perish,Delay 11 so be it!Wait for input ;
|
|
226
|
global.msg[7] = Face 4* Show my son the monster you REALLY are!Wait for input ;
|
|
227
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (8, "C");
|
|
228
|
global.msg[9] = ;
|
|
229
|
global.msg[10] = Face 3* Arright,Delay 11 you wanna see what I can do,Delay 11 huh?Wait for input ;
|
|
230
|
scr_nofacescr_noface
function scr_noface(arg0)
{
global.msg[arg0] = Sound X Char 0 Sound 0 Close Message ;
} (11);
|
|
231
|
global.msg[12] = * Susie's will is changing...Delay 11 * TALK became RED BUSTER!Wait for inputClose Message ;
|
|
232
|
global.tempflag[6] = 1;
|
|
233
|
global.canact[myself][2] = 1;
|
|
234
|
global.actactor[myself][2] = 2;
|
|
235
|
global.actname[myself][2] = ;
|
|
236
|
global.actdesc[myself][2] = ;
|
|
237
|
global.actcost[myself][2] = 150;
|
|
238
|
actcon = 1;
|
|
239
|
}
|
|
240
|
else
|
|
241
|
{
|
|
242
|
global.msg[0] = * Your SOUL shined its power on Susie!Wait for inputClose Message ;
|
|
243
|
actcon = 10;
|
|
244
|
}
|
|
245
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
246
|
acttimer = 0;
|
|
247
|
}
|
|
248
|
if (acting == 4 && actcon == 0)
|
|
249
|
{
|
|
250
|
if (global.tempflag[7] == 0)
|
|
251
|
{
|
|
252
|
global.msg[0] = * Ralsei tried to reason with the King...Wait for input ;
|
|
253
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (1, "B");
|
|
254
|
global.msg[2] = * You might not realize it,Delay 11 but...Wait for input ;
|
|
255
|
global.msg[3] = Face 6* This is a world where you don't have to fight.Wait for input ;
|
|
256
|
global.msg[4] = Face 8* I know if we try,Delay 11 we can all find another way...Wait for input ;
|
|
257
|
scr_kingfacescr_kingface
function scr_kingface(arg0, arg1)
{
if (global.plot >= 235)
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char K Sound K Close Message , string(arg1));
else
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Sound K Close Message , string(arg1));
} (5, 6);
|
|
258
|
global.msg[6] = Face 6* Such simple-minded platitudes...Wait for input ;
|
|
259
|
global.msg[7] = Face 0* A shame you will not live to realize your naivety.Wait for input ;
|
|
260
|
global.msg[8] = Face 4* Now,Delay 11 perish with the pathetic LIGHTNERs you worship!Wait for input ;
|
|
261
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (9, 8);
|
|
262
|
global.msg[10] = * Sorry,Delay 11 my friends and I aren't going anywhere!Wait for input ;
|
|
263
|
scr_nofacescr_noface
function scr_noface(arg0)
{
global.msg[arg0] = Sound X Char 0 Sound 0 Close Message ;
} (11);
|
|
264
|
global.msg[12] = * Ralsei's will is changing...Delay 11 * TALK became DUAL HEAL!Wait for inputClose Message ;
|
|
265
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
266
|
global.tempflag[7] = 1;
|
|
267
|
global.canact[myself][3] = 1;
|
|
268
|
global.actactor[myself][3] = 3;
|
|
269
|
global.actname[myself][3] = ;
|
|
270
|
global.actdesc[myself][3] = ;
|
|
271
|
global.actcost[myself][3] = 125;
|
|
272
|
actcon = 1;
|
|
273
|
}
|
|
274
|
else
|
|
275
|
{
|
|
276
|
global.msg[0] = * Your SOUL shined its power on RALSEI!Wait for inputClose Message ;
|
|
277
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
278
|
actcon = 20;
|
|
279
|
}
|
|
280
|
acttimer = 0;
|
|
281
|
}
|
|
282
|
if (actcon == 10)
|
|
283
|
{
|
|
284
|
acttimer += 1;
|
|
285
|
if (acttimer >= 10 || !instance_exists(obj_writer))
|
|
286
|
{
|
|
287
|
acttimer = 0;
|
|
288
|
actcon = 11;
|
|
289
|
}
|
|
290
|
}
|
|
291
|
if (actcon == 11)
|
|
292
|
{
|
|
293
|
global.faceaction[1] = 2;
|
|
294
|
global.charaction[1] = 2;
|
|
295
|
global.charspecial[1] = 5;
|
|
296
|
global.chartarget[1] = 0;
|
|
297
|
global.acting[1] = 0;
|
|
298
|
snd_play(snd_boost);
|
|
299
|
heartanim = instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_animation);
|
|
300
|
with (heartanim)
|
|
301
|
{
|
|
302
|
depth = -20;
|
|
303
|
image_index = 0;
|
|
304
|
image_xscale = 2;
|
|
305
|
image_yscale = 2;
|
|
306
|
image_speed = 1;
|
|
307
|
sprite_index = spr_soulshining;
|
|
308
|
}
|
|
309
|
with (obj_herokris)
|
|
310
|
scr_oflashscr_oflash
function scr_oflash()
{
_oflash = instance_create(x, y, obj_oflash);
_oflash.image_xscale = image_xscale;
_oflash.image_speed = 0;
_oflash.image_index = image_index;
_oflash.image_yscale = image_yscale;
_oflash.sprite_index = sprite_index;
_oflash.depth = depth - 1;
_oflash.target = id;
return _oflash;
} ();
|
|
311
|
with (obj_herosusie)
|
|
312
|
scr_oflashscr_oflash
function scr_oflash()
{
_oflash = instance_create(x, y, obj_oflash);
_oflash.image_xscale = image_xscale;
_oflash.image_speed = 0;
_oflash.image_index = image_index;
_oflash.image_yscale = image_yscale;
_oflash.sprite_index = sprite_index;
_oflash.depth = depth - 1;
_oflash.target = id;
return _oflash;
} ();
|
|
313
|
actcon = 12;
|
|
314
|
}
|
|
315
|
if (actcon == 12)
|
|
316
|
{
|
|
317
|
acttimer += 1;
|
|
318
|
if (acttimer >= 20)
|
|
319
|
{
|
|
320
|
actcon = 1;
|
|
321
|
with (obj_herosusie)
|
|
322
|
state = 0;
|
|
323
|
}
|
|
324
|
}
|
|
325
|
if (actcon == 20)
|
|
326
|
{
|
|
327
|
acttimer += 1;
|
|
328
|
if (acttimer >= 10 || !instance_exists(obj_writer))
|
|
329
|
{
|
|
330
|
acttimer = 0;
|
|
331
|
actcon = 21;
|
|
332
|
}
|
|
333
|
}
|
|
334
|
if (actcon == 21)
|
|
335
|
{
|
|
336
|
global.faceaction[2] = 2;
|
|
337
|
global.charaction[2] = 2;
|
|
338
|
global.charspecial[2] = 6;
|
|
339
|
global.chartarget[2] = 0;
|
|
340
|
global.acting[2] = 0;
|
|
341
|
snd_play(snd_boost);
|
|
342
|
heartanim = instance_create(obj_herokris.x + 30, obj_herokris.y + 50, obj_animation);
|
|
343
|
with (heartanim)
|
|
344
|
{
|
|
345
|
depth = -20;
|
|
346
|
image_index = 0;
|
|
347
|
image_xscale = 2;
|
|
348
|
image_yscale = 2;
|
|
349
|
image_speed = 1;
|
|
350
|
sprite_index = spr_soulshining;
|
|
351
|
}
|
|
352
|
with (obj_heroralsei)
|
|
353
|
scr_oflashscr_oflash
function scr_oflash()
{
_oflash = instance_create(x, y, obj_oflash);
_oflash.image_xscale = image_xscale;
_oflash.image_speed = 0;
_oflash.image_index = image_index;
_oflash.image_yscale = image_yscale;
_oflash.sprite_index = sprite_index;
_oflash.depth = depth - 1;
_oflash.target = id;
return _oflash;
} ();
|
|
354
|
with (obj_herokris)
|
|
355
|
scr_oflashscr_oflash
function scr_oflash()
{
_oflash = instance_create(x, y, obj_oflash);
_oflash.image_xscale = image_xscale;
_oflash.image_speed = 0;
_oflash.image_index = image_index;
_oflash.image_yscale = image_yscale;
_oflash.sprite_index = sprite_index;
_oflash.depth = depth - 1;
_oflash.target = id;
return _oflash;
} ();
|
|
356
|
actcon = 22;
|
|
357
|
}
|
|
358
|
if (actcon == 22)
|
|
359
|
{
|
|
360
|
acttimer += 1;
|
|
361
|
if (acttimer >= 20)
|
|
362
|
{
|
|
363
|
actcon = 1;
|
|
364
|
with (obj_heroralsei)
|
|
365
|
state = 0;
|
|
366
|
}
|
|
367
|
}
|
|
368
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
369
|
{
|
|
370
|
actcon = 0;
|
|
371
|
scr_attackphasescr_attackphase
function 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();
}
}
} ();
|
|
372
|
}
|
|
373
|
}
|
|
374
|
if (global.myfight == 7)
|
|
375
|
hspeed = 15;
|
|
376
|
if (!instance_exists(obj_shake))
|
|
377
|
{
|
|
378
|
__view_set(e__VW.XView, 0, remxx);
|
|
379
|
__view_set(e__VW.YView, 0, remyy);
|
|
380
|
}
|
|
381
|
|
|
382
|
enum e__VW
|
|
383
|
{
|
|
384
|
XView,
|
|
385
|
YView,
|
|
386
|
WView,
|
|
387
|
HView,
|
|
388
|
Angle,
|
|
389
|
HBorder,
|
|
390
|
VBorder,
|
|
391
|
HSpeed,
|
|
392
|
VSpeed,
|
|
393
|
Object,
|
|
394
|
Visible,
|
|
395
|
XPort,
|
|
396
|
YPort,
|
|
397
|
WPort,
|
|
398
|
HPort,
|
|
399
|
Camera,
|
|
400
|
SurfaceID
|
|
401
|
}
|