|
1
|
if (global.inv > 19)
|
|
2
|
global.inv = 19;
|
|
3
|
if (rudebusterdelay > 0)
|
|
4
|
rudebusterdelay--;
|
|
5
|
global.mercymod[myself] = 0;
|
|
6
|
with (obj_battlecontroller)
|
|
7
|
hidestar = 1;
|
|
8
|
if (i_ex(obj_heart))
|
|
9
|
{
|
|
10
|
global.sp = 5;
|
|
11
|
obj_heart.wspeed = 5;
|
|
12
|
}
|
|
13
|
for (i = 0; i < 3; i += 1)
|
|
14
|
global.automiss[i] = 1;
|
|
15
|
if (init == 0)
|
|
16
|
{
|
|
17
|
init = 1;
|
|
18
|
global.canactsus[myself][0] = 0;
|
|
19
|
global.actnamesus[myself][0] = "";
|
|
20
|
global.actsimulsus[myself][0] = 0;
|
|
21
|
global.actactorsus[myself][0] = 0;
|
|
22
|
global.actcostsus[myself][0] = 0;
|
|
23
|
global.battlespell[1][0] = 0;
|
|
24
|
global.battlespell[1][0] = -1;
|
|
25
|
global.battleactcount[1] = 0;
|
|
26
|
global.battlespellname[1][0] = "";
|
|
27
|
global.battlespelldesc[1][0] = "";
|
|
28
|
scr_spellmenu_setupscr_spellmenu_setup
function scr_spellmenu_setup()
{
var __actnamecheck = 0;
var __monstertype = global.monstertype[0];
for (__i = 1; __i < 3; __i++)
{
if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype)
__actnamecheck = 1;
}
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 6; __fj++)
{
global.battlespell[__i][__fj] = 0;
if (global.char[__i] == 1)
{
if (global.canact[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcost[0][__fj];
global.battlespellname[__i][__fj] = global.actname[0][__fj];
global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj];
global.battlespelltarget[__i][__fj] = 0;
global.battlespellspecial[__i][__fj] = 1;
}
}
if (global.char[__i] == 2)
{
if (global.canactsus[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj];
global.battlespellname[__i][__fj] = global.actnamesus[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(S-Action"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0" );
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 2;
}
}
if (global.char[__i] == 3)
{
if (global.canactral[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostral[0][__fj];
global.battlespellname[__i][__fj] = global.actnameral[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(R-Action"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0" );
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 3;
}
}
if (global.char[__i] == 4)
{
if (global.canactnoe[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj];
global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(N-Action"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0" );
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 4;
}
}
}
}
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 12; __fj++)
{
__ib = global.battleactcount[__i] + __fj;
global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj];
global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj];
global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj];
global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj];
global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj];
}
}
} ();
|
|
29
|
}
|
|
30
|
if (global.monster[myself] == 1)
|
|
31
|
{
|
|
32
|
if (susiehitbyrudebustercon == 1 && endcon == 0)
|
|
33
|
{
|
|
34
|
susiehitbyrudebustercon = 1.1;
|
|
35
|
with (obj_writer)
|
|
36
|
instance_destroy();
|
|
37
|
global.typer = 75;
|
|
38
|
msgset(0, dialogue_string64);
|
|
39
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
40
|
talktimer = 0;
|
|
41
|
}
|
|
42
|
else if (susiehitbyrudebustercon == 1.1)
|
|
43
|
{
|
|
44
|
talktimer++;
|
|
45
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
46
|
{
|
|
47
|
susiehitbyrudebustercon = 1.2;
|
|
48
|
with (obj_writer)
|
|
49
|
instance_destroy();
|
|
50
|
global.typer = 86;
|
|
51
|
msgset(0, dialogue_string65);
|
|
52
|
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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (x - 10, global.monstery[myself], 10);
|
|
53
|
talktimer = 0;
|
|
54
|
}
|
|
55
|
}
|
|
56
|
else if (susiehitbyrudebustercon == 1.2)
|
|
57
|
{
|
|
58
|
talktimer++;
|
|
59
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
60
|
{
|
|
61
|
susiehitbyrudebustercon = 2;
|
|
62
|
with (obj_writer)
|
|
63
|
instance_destroy();
|
|
64
|
global.typer = 75;
|
|
65
|
msgset(0, dialogue_string66);
|
|
66
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
67
|
talktimer = 0;
|
|
68
|
}
|
|
69
|
}
|
|
70
|
if (susiehitbyrudebustercon == 2)
|
|
71
|
{
|
|
72
|
talktimer++;
|
|
73
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
74
|
{
|
|
75
|
with (obj_writer)
|
|
76
|
instance_destroy();
|
|
77
|
susiehitbyrudebustercon = 0;
|
|
78
|
talktimer = 0;
|
|
79
|
}
|
|
80
|
}
|
|
81
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk") && endcon == 0 && talked == 0 && susiehitbyrudebustercon == 0 && rudebusterdelay == 0 && !i_ex(obj_gerson_item_steal_anim) && !i_ex(obj_rudebuster_bolt) && !i_ex(obj_gerson_rudebuster))
|
|
82
|
{
|
|
83
|
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;
if (global.chapter >= 2 && mytarget != 3)
{
if (global.charcantarget[0])
global.targeted[0] = 1;
if (global.charcantarget[1])
global.targeted[1] = 1;
if (global.charcantarget[2])
global.targeted[2] = 1;
mytarget = 4;
}
} ();
|
|
84
|
if (!instance_exists(obj_darkener))
|
|
85
|
instance_create(0, 0, obj_darkener);
|
|
86
|
sprite_set_offset(spr_spearblocker, 32, 32);
|
|
87
|
global.sp = 4;
|
|
88
|
ballooncon = 0;
|
|
89
|
balloonsubcon = 0;
|
|
90
|
balloonend = 1;
|
|
91
|
talkedcon = 0;
|
|
92
|
rtimer = 0;
|
|
93
|
postenemyturnevent = 0;
|
|
94
|
swingdown_multitelegraph = 0;
|
|
95
|
if (gothitlastturn > 0)
|
|
96
|
beenhit = true;
|
|
97
|
squishbox = false;
|
|
98
|
global.typer = 86;
|
|
99
|
rr = choose(0, 1, 2);
|
|
100
|
attackcon = 0;
|
|
101
|
if (progress >= 84)
|
|
102
|
{
|
|
103
|
phase = 4;
|
|
104
|
trueturn = 20;
|
|
105
|
}
|
|
106
|
var noballoon = false;
|
|
107
|
var drawabove = false;
|
|
108
|
if (trueturn >= 20)
|
|
109
|
{
|
|
110
|
msgset(0, dialogue_string53);
|
|
111
|
ballooncon = 45;
|
|
112
|
balloonend = 0;
|
|
113
|
}
|
|
114
|
else if (turn == 0 && global.justice_attempts == 0)
|
|
115
|
{
|
|
116
|
msgset(0, dialogue_string1);
|
|
117
|
ballooncon = 1;
|
|
118
|
balloonend = 0;
|
|
119
|
susietalks = 1;
|
|
120
|
}
|
|
121
|
else if (turn == 0 && (global.justice_attempts > 0 || firstconversationhappened == true))
|
|
122
|
{
|
|
123
|
ballooncon = 1;
|
|
124
|
balloonend = 1;
|
|
125
|
noballoon = true;
|
|
126
|
}
|
|
127
|
else if (turn == 1 && gothitlastturn > 0 && repeatonce == 0)
|
|
128
|
{
|
|
129
|
msgset(0, dialogue_string9);
|
|
130
|
ballooncon = 2.8;
|
|
131
|
balloonend = 0;
|
|
132
|
turn = 0;
|
|
133
|
trueturn = 0;
|
|
134
|
attackpattern = 0;
|
|
135
|
repeatonce = 1;
|
|
136
|
}
|
|
137
|
else if ((turn == 1 && gothitlastturn == 0) || (turn == 1 && repeatonce == 1))
|
|
138
|
{
|
|
139
|
msgset(0, dialogue_string12);
|
|
140
|
ballooncon = 2.9;
|
|
141
|
balloonend = 0;
|
|
142
|
}
|
|
143
|
else if (turn == 2)
|
|
144
|
{
|
|
145
|
msgset(0, dialogue_string13);
|
|
146
|
ballooncon = 10;
|
|
147
|
balloonend = 0;
|
|
148
|
}
|
|
149
|
else if (turn == 3)
|
|
150
|
{
|
|
151
|
msgset(0, dialogue_string15);
|
|
152
|
ballooncon = 11;
|
|
153
|
balloonend = 0;
|
|
154
|
}
|
|
155
|
else if (turn == 4)
|
|
156
|
{
|
|
157
|
msgset(0, dialogue_string18);
|
|
158
|
ballooncon = 11.5;
|
|
159
|
balloonend = 0;
|
|
160
|
}
|
|
161
|
else if (turn == 5)
|
|
162
|
{
|
|
163
|
msgset(0, dialogue_string19);
|
|
164
|
ballooncon = 23;
|
|
165
|
balloonend = 0;
|
|
166
|
}
|
|
167
|
else if (turn == 6)
|
|
168
|
{
|
|
169
|
msgset(0, dialogue_string21);
|
|
170
|
ballooncon = 24;
|
|
171
|
balloonend = 0;
|
|
172
|
}
|
|
173
|
else if (turn == 7)
|
|
174
|
{
|
|
175
|
msgset(0, dialogue_string23);
|
|
176
|
ballooncon = 25;
|
|
177
|
balloonend = 0;
|
|
178
|
}
|
|
179
|
else if (turn == 8)
|
|
180
|
{
|
|
181
|
msgset(0, dialogue_string25);
|
|
182
|
ballooncon = 26;
|
|
183
|
balloonend = 0;
|
|
184
|
}
|
|
185
|
else if (turn == 9)
|
|
186
|
{
|
|
187
|
msgset(0, dialogue_string29);
|
|
188
|
ballooncon = 29;
|
|
189
|
balloonend = 0;
|
|
190
|
}
|
|
191
|
else if (turn == 10)
|
|
192
|
{
|
|
193
|
msgset(0, dialogue_string35);
|
|
194
|
ballooncon = 33;
|
|
195
|
balloonend = 0;
|
|
196
|
}
|
|
197
|
else if (turn == 11)
|
|
198
|
{
|
|
199
|
msgset(0, dialogue_string38);
|
|
200
|
ballooncon = 35;
|
|
201
|
balloonend = 0;
|
|
202
|
}
|
|
203
|
else if (turn == 12)
|
|
204
|
{
|
|
205
|
msgset(0, dialogue_string40);
|
|
206
|
ballooncon = 36;
|
|
207
|
balloonend = 0;
|
|
208
|
}
|
|
209
|
else if (turn == 13)
|
|
210
|
{
|
|
211
|
msgset(0, dialogue_string43);
|
|
212
|
ballooncon = 38;
|
|
213
|
balloonend = 0;
|
|
214
|
susietalks = 1;
|
|
215
|
}
|
|
216
|
else if (turn == 14)
|
|
217
|
{
|
|
218
|
msgset(0, dialogue_string47);
|
|
219
|
ballooncon = 41;
|
|
220
|
balloonend = 0;
|
|
221
|
}
|
|
222
|
else if (turn == 15)
|
|
223
|
{
|
|
224
|
msgset(0, dialogue_string50);
|
|
225
|
ballooncon = 43;
|
|
226
|
balloonend = 0;
|
|
227
|
}
|
|
228
|
else if (turn == 16)
|
|
229
|
{
|
|
230
|
msgset(0, dialogue_string70);
|
|
231
|
ballooncon = 0;
|
|
232
|
balloonend = 1;
|
|
233
|
}
|
|
234
|
else if (turn == 17)
|
|
235
|
{
|
|
236
|
msgset(0, dialogue_string71);
|
|
237
|
ballooncon = 52;
|
|
238
|
balloonend = 0;
|
|
239
|
}
|
|
240
|
else if (turn == 18)
|
|
241
|
{
|
|
242
|
msgset(0, dialogue_string73);
|
|
243
|
ballooncon = 53;
|
|
244
|
balloonend = 0;
|
|
245
|
}
|
|
246
|
else
|
|
247
|
{
|
|
248
|
if (rr == 0)
|
|
249
|
msgset(0, dialogue_string76);
|
|
250
|
if (rr == 1)
|
|
251
|
msgset(0, dialogue_string77);
|
|
252
|
if (rr == 2)
|
|
253
|
msgset(0, dialogue_string78);
|
|
254
|
ballooncon = 0;
|
|
255
|
balloonend = 1;
|
|
256
|
}
|
|
257
|
if (noballoon == true)
|
|
258
|
{
|
|
259
|
talked = 1;
|
|
260
|
talktimer = 0;
|
|
261
|
}
|
|
262
|
else
|
|
263
|
{
|
|
264
|
if (susietalks == 1 && instance_exists(obj_herosusie))
|
|
265
|
{
|
|
266
|
global.typer = 75;
|
|
267
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
268
|
}
|
|
269
|
else
|
|
270
|
{
|
|
271
|
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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (x - 10, global.monstery[myself], 10);
|
|
272
|
}
|
|
273
|
susietalks = 0;
|
|
274
|
gothitlastturn = 0;
|
|
275
|
event_user(0);
|
|
276
|
if (ballooncon == 0)
|
|
277
|
{
|
|
278
|
talked = 1;
|
|
279
|
talktimer = 0;
|
|
280
|
}
|
|
281
|
else
|
|
282
|
{
|
|
283
|
talked = 0.6;
|
|
284
|
talktimer = 0;
|
|
285
|
}
|
|
286
|
}
|
|
287
|
}
|
|
288
|
if (talked == 0.6)
|
|
289
|
{
|
|
290
|
talktimer++;
|
|
291
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
292
|
{
|
|
293
|
with (obj_writer)
|
|
294
|
instance_destroy();
|
|
295
|
if (ballooncon == 1)
|
|
296
|
{
|
|
297
|
msgset(0, dialogue_string2);
|
|
298
|
ballooncon = 2;
|
|
299
|
balloonend = 0;
|
|
300
|
susietalks = 1;
|
|
301
|
}
|
|
302
|
else if (ballooncon == 2)
|
|
303
|
{
|
|
304
|
msgset(0, dialogue_string3);
|
|
305
|
ballooncon = 2.5;
|
|
306
|
balloonend = 0;
|
|
307
|
}
|
|
308
|
else if (ballooncon == 2.5)
|
|
309
|
{
|
|
310
|
msgset(0, dialogue_string3b);
|
|
311
|
ballooncon = 0;
|
|
312
|
balloonend = 1;
|
|
313
|
}
|
|
314
|
else if (ballooncon == 2.8)
|
|
315
|
{
|
|
316
|
msgset(0, dialogue_string9b);
|
|
317
|
ballooncon = 0;
|
|
318
|
balloonend = 1;
|
|
319
|
susietalks = 1;
|
|
320
|
}
|
|
321
|
else if (ballooncon == 2.9)
|
|
322
|
{
|
|
323
|
msgset(0, dialogue_string12b);
|
|
324
|
ballooncon = 0;
|
|
325
|
balloonend = 1;
|
|
326
|
}
|
|
327
|
else if (ballooncon == 10)
|
|
328
|
{
|
|
329
|
msgset(0, dialogue_string14);
|
|
330
|
ballooncon = 10.1;
|
|
331
|
balloonend = 0;
|
|
332
|
}
|
|
333
|
else if (ballooncon == 10.1)
|
|
334
|
{
|
|
335
|
msgset(0, dialogue_string14b);
|
|
336
|
ballooncon = 10.2;
|
|
337
|
balloonend = 0;
|
|
338
|
}
|
|
339
|
else if (ballooncon == 10.2)
|
|
340
|
{
|
|
341
|
msgset(0, dialogue_string14c);
|
|
342
|
ballooncon = 0;
|
|
343
|
balloonend = 1;
|
|
344
|
susietalks = 1;
|
|
345
|
}
|
|
346
|
else if (ballooncon == 11)
|
|
347
|
{
|
|
348
|
msgset(0, dialogue_string16);
|
|
349
|
ballooncon = 12;
|
|
350
|
balloonend = 1;
|
|
351
|
}
|
|
352
|
else if (ballooncon == 11.5)
|
|
353
|
{
|
|
354
|
msgset(0, dialogue_string18b);
|
|
355
|
ballooncon = 0;
|
|
356
|
balloonend = 1;
|
|
357
|
}
|
|
358
|
else if (ballooncon == 23)
|
|
359
|
{
|
|
360
|
msgset(0, dialogue_string20);
|
|
361
|
ballooncon = 0;
|
|
362
|
balloonend = 1;
|
|
363
|
}
|
|
364
|
else if (ballooncon == 24)
|
|
365
|
{
|
|
366
|
msgset(0, dialogue_string22);
|
|
367
|
ballooncon = 0;
|
|
368
|
balloonend = 1;
|
|
369
|
}
|
|
370
|
else if (ballooncon == 25)
|
|
371
|
{
|
|
372
|
msgset(0, dialogue_string24);
|
|
373
|
ballooncon = 0;
|
|
374
|
balloonend = 1;
|
|
375
|
}
|
|
376
|
else if (ballooncon == 26)
|
|
377
|
{
|
|
378
|
msgset(0, dialogue_string26);
|
|
379
|
ballooncon = 27;
|
|
380
|
balloonend = 0;
|
|
381
|
}
|
|
382
|
else if (ballooncon == 27)
|
|
383
|
{
|
|
384
|
msgset(0, dialogue_string27);
|
|
385
|
ballooncon = 28;
|
|
386
|
balloonend = 0;
|
|
387
|
}
|
|
388
|
else if (ballooncon == 28)
|
|
389
|
{
|
|
390
|
msgset(0, dialogue_string28);
|
|
391
|
ballooncon = 0;
|
|
392
|
balloonend = 1;
|
|
393
|
}
|
|
394
|
else if (ballooncon == 29)
|
|
395
|
{
|
|
396
|
msgset(0, dialogue_string30);
|
|
397
|
ballooncon = 30;
|
|
398
|
balloonend = 0;
|
|
399
|
}
|
|
400
|
else if (ballooncon == 30)
|
|
401
|
{
|
|
402
|
msgset(0, dialogue_string31);
|
|
403
|
ballooncon = 0;
|
|
404
|
balloonend = 1;
|
|
405
|
}
|
|
406
|
else if (ballooncon == 31)
|
|
407
|
{
|
|
408
|
msgset(0, dialogue_string33);
|
|
409
|
ballooncon = 32;
|
|
410
|
balloonend = 0;
|
|
411
|
}
|
|
412
|
else if (ballooncon == 32)
|
|
413
|
{
|
|
414
|
msgset(0, dialogue_string34);
|
|
415
|
ballooncon = 0;
|
|
416
|
balloonend = 1;
|
|
417
|
}
|
|
418
|
else if (ballooncon == 33)
|
|
419
|
{
|
|
420
|
msgset(0, dialogue_string36);
|
|
421
|
ballooncon = 34;
|
|
422
|
balloonend = 0;
|
|
423
|
}
|
|
424
|
else if (ballooncon == 34)
|
|
425
|
{
|
|
426
|
msgset(0, dialogue_string37);
|
|
427
|
ballooncon = 0;
|
|
428
|
balloonend = 1;
|
|
429
|
}
|
|
430
|
else if (ballooncon == 35)
|
|
431
|
{
|
|
432
|
msgset(0, dialogue_string39);
|
|
433
|
ballooncon = 0;
|
|
434
|
balloonend = 1;
|
|
435
|
}
|
|
436
|
else if (ballooncon == 36)
|
|
437
|
{
|
|
438
|
msgset(0, dialogue_string41);
|
|
439
|
ballooncon = 37;
|
|
440
|
balloonend = 0;
|
|
441
|
}
|
|
442
|
else if (ballooncon == 37)
|
|
443
|
{
|
|
444
|
msgset(0, dialogue_string42);
|
|
445
|
ballooncon = 0;
|
|
446
|
balloonend = 1;
|
|
447
|
}
|
|
448
|
else if (ballooncon == 38)
|
|
449
|
{
|
|
450
|
msgset(0, dialogue_string44);
|
|
451
|
ballooncon = 39;
|
|
452
|
balloonend = 0;
|
|
453
|
susietalks = 1;
|
|
454
|
}
|
|
455
|
else if (ballooncon == 39)
|
|
456
|
{
|
|
457
|
msgset(0, dialogue_string45);
|
|
458
|
ballooncon = 40;
|
|
459
|
balloonend = 0;
|
|
460
|
susietalks = 1;
|
|
461
|
}
|
|
462
|
else if (ballooncon == 40)
|
|
463
|
{
|
|
464
|
msgset(0, dialogue_string46);
|
|
465
|
ballooncon = 0;
|
|
466
|
balloonend = 1;
|
|
467
|
susietalks = 1;
|
|
468
|
}
|
|
469
|
else if (ballooncon == 41)
|
|
470
|
{
|
|
471
|
msgset(0, dialogue_string48);
|
|
472
|
ballooncon = 42;
|
|
473
|
balloonend = 0;
|
|
474
|
}
|
|
475
|
else if (ballooncon == 42)
|
|
476
|
{
|
|
477
|
msgset(0, dialogue_string49);
|
|
478
|
ballooncon = 0;
|
|
479
|
balloonend = 1;
|
|
480
|
}
|
|
481
|
else if (ballooncon == 43)
|
|
482
|
{
|
|
483
|
msgset(0, dialogue_string51);
|
|
484
|
ballooncon = 44;
|
|
485
|
balloonend = 0;
|
|
486
|
}
|
|
487
|
else if (ballooncon == 44)
|
|
488
|
{
|
|
489
|
msgset(0, dialogue_string52);
|
|
490
|
ballooncon = 0;
|
|
491
|
balloonend = 1;
|
|
492
|
}
|
|
493
|
else if (ballooncon == 45)
|
|
494
|
{
|
|
495
|
msgset(0, dialogue_string54);
|
|
496
|
ballooncon = 46;
|
|
497
|
balloonend = 0;
|
|
498
|
}
|
|
499
|
else if (ballooncon == 46)
|
|
500
|
{
|
|
501
|
msgset(0, dialogue_string55);
|
|
502
|
ballooncon = 47;
|
|
503
|
balloonend = 0;
|
|
504
|
}
|
|
505
|
else if (ballooncon == 47)
|
|
506
|
{
|
|
507
|
msgset(0, dialogue_string56);
|
|
508
|
ballooncon = 48;
|
|
509
|
balloonend = 0;
|
|
510
|
susietalks = 1;
|
|
511
|
}
|
|
512
|
else if (ballooncon == 48)
|
|
513
|
{
|
|
514
|
msgset(0, dialogue_string57);
|
|
515
|
ballooncon = 49;
|
|
516
|
balloonend = 0;
|
|
517
|
susietalks = 1;
|
|
518
|
}
|
|
519
|
else if (ballooncon == 49)
|
|
520
|
{
|
|
521
|
msgset(0, dialogue_string58);
|
|
522
|
ballooncon = 50;
|
|
523
|
balloonend = 0;
|
|
524
|
}
|
|
525
|
else if (ballooncon == 50)
|
|
526
|
{
|
|
527
|
msgset(0, dialogue_string59);
|
|
528
|
ballooncon = 0;
|
|
529
|
balloonend = 1;
|
|
530
|
susietalks = 1;
|
|
531
|
}
|
|
532
|
else if (ballooncon == 51)
|
|
533
|
{
|
|
534
|
msgset(0, dialogue_string68);
|
|
535
|
ballooncon = 0;
|
|
536
|
balloonend = 1;
|
|
537
|
}
|
|
538
|
else if (ballooncon == 52)
|
|
539
|
{
|
|
540
|
msgset(0, dialogue_string72);
|
|
541
|
ballooncon = 0;
|
|
542
|
balloonend = 1;
|
|
543
|
}
|
|
544
|
else if (ballooncon == 53)
|
|
545
|
{
|
|
546
|
msgset(0, dialogue_string74);
|
|
547
|
ballooncon = 54;
|
|
548
|
balloonend = 0;
|
|
549
|
}
|
|
550
|
else if (ballooncon == 54)
|
|
551
|
{
|
|
552
|
msgset(0, dialogue_string75);
|
|
553
|
ballooncon = 0;
|
|
554
|
balloonend = 1;
|
|
555
|
}
|
|
556
|
talked = 0.7;
|
|
557
|
global.typer = 86;
|
|
558
|
if (susietalks == 1 && instance_exists(obj_herosusie))
|
|
559
|
{
|
|
560
|
global.typer = 75;
|
|
561
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
562
|
}
|
|
563
|
else
|
|
564
|
{
|
|
565
|
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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (x - 10, global.monstery[myself], 10);
|
|
566
|
}
|
|
567
|
susietalks = 0;
|
|
568
|
alarm[6] = 1; gml_Object_obj_hammer_of_justice_enemy_Alarm_6.gml
if (balloonend == 1)
{
talked = 1;
}
else
{
talked = 0.6;
talktimer = 0;
}
|
|
569
|
}
|
|
570
|
}
|
|
571
|
if (talked == 1 && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk"))
|
|
572
|
{
|
|
573
|
talktimer++;
|
|
574
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
575
|
{
|
|
576
|
with (obj_writer)
|
|
577
|
instance_destroy();
|
|
578
|
global.mnfight = 1.5;
|
|
579
|
}
|
|
580
|
}
|
|
581
|
if (global.mnfight == 1.5)
|
|
582
|
{
|
|
583
|
if (!instance_exists(obj_growtangle))
|
|
584
|
instance_create(camerax() + (camerawidth() / 2), cameray() + (cameraheight() / 2), obj_growtangle);
|
|
585
|
with (obj_growtangle)
|
|
586
|
{
|
|
587
|
if (other.boxoffset)
|
|
588
|
y -= 50;
|
|
589
|
}
|
|
590
|
with (obj_battlecontroller)
|
|
591
|
depth = obj_growtangle.depth + 2;
|
|
592
|
with (obj_growtangle)
|
|
593
|
depth = obj_growtangle.depth - 2;
|
|
594
|
with (obj_darkener)
|
|
595
|
depth = obj_heroparent.depth + 3;
|
|
596
|
if (!instance_exists(obj_moveheart) && !instance_exists(obj_heart))
|
|
597
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
if (global.chapter == 4 && (i_ex(obj_hammer_of_justice_enemy) || i_ex(obj_sound_of_justice_enemy)))
return instance_create(obj_herosusie.x - 250, obj_herosusie.y + 40, obj_moveheart);
else
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
598
|
global.mnfight = 2;
|
|
599
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (90);
|
|
600
|
}
|
|
601
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("bullets") && attacked == 0)
|
|
602
|
{
|
|
603
|
rtimer += 1;
|
|
604
|
if (rtimer == 12)
|
|
605
|
{
|
|
606
|
attackcon = 1;
|
|
607
|
rudebusterhitcount = 0;
|
|
608
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (999);
|
|
609
|
global.typer = 6;
|
|
610
|
global.fc = 0;
|
|
611
|
rr = choose(0, 1);
|
|
612
|
var rand = irandom(100);
|
|
613
|
if (rand < 33 && global.hp[0] > (global.maxhp[0] * 0.8))
|
|
614
|
rr = 7;
|
|
615
|
if (rand < 33 && global.hp[0] < (global.maxhp[0] * 0.4))
|
|
616
|
rr = 8;
|
|
617
|
if (rand < 23 && turn > 8)
|
|
618
|
rr = 6;
|
|
619
|
if (rand < 13)
|
|
620
|
rr = 2;
|
|
621
|
if (rand == 4 || rand == 5)
|
|
622
|
rr = 3;
|
|
623
|
if (rand == 2 || rand == 3)
|
|
624
|
rr = 4;
|
|
625
|
if (rand == 0 || rand == 1)
|
|
626
|
rr = 5;
|
|
627
|
if (haveattacked == false && turn == 2)
|
|
628
|
{
|
|
629
|
global.battlemsg[0] = dialogue_string79;
|
|
630
|
ballooncon = 0;
|
|
631
|
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;
... ("susie");
|
|
632
|
}
|
|
633
|
else if (global.justice_attacked_twice == 2)
|
|
634
|
{
|
|
635
|
global.battlemsg[0] = stringsetloc(* The opponent seems impressed with Susie's guts!"* The opponent seems impressed with Susie's guts!", "obj_hammer_of_justice_enemy_slash_Step_0_gml_313_0" );
|
|
636
|
global.justice_attacked_twice++;
|
|
637
|
}
|
|
638
|
else if (justice_healed == 1)
|
|
639
|
{
|
|
640
|
global.battlemsg[0] = stringsetloc(* The opponent's seems very impressed with Susie's magic...!"* The opponent's seems very impressed with Susie's magic...!", "obj_hammer_of_justice_enemy_slash_Step_0_gml_314_0" );
|
|
641
|
justice_healed++;
|
|
642
|
}
|
|
643
|
else if (justice_rudebuster == 1)
|
|
644
|
{
|
|
645
|
global.battlemsg[0] = stringsetloc(* The opponent is reeling from the Rude Buster!"* The opponent is reeling from the Rude Buster!", "obj_hammer_of_justice_enemy_slash_Step_0_gml_315_0" );
|
|
646
|
justice_rudebuster++;
|
|
647
|
}
|
|
648
|
else if (justice_item == 1)
|
|
649
|
{
|
|
650
|
global.battlemsg[0] = stringsetloc(* Your ITEMs were taken!"* Your ITEMs were taken!", "obj_hammer_of_justice_enemy_slash_Step_0_gml_316_0" );
|
|
651
|
justice_item++;
|
|
652
|
}
|
|
653
|
else if (progress >= 25 && global.justice_reached_25_first_time == 0)
|
|
654
|
{
|
|
655
|
global.battlemsg[0] = stringsetloc(* Things are finally starting to get serious!"* Things are finally starting to get serious!", "obj_hammer_of_justice_enemy_slash_Step_0_gml_317_0" );
|
|
656
|
global.justice_reached_25_first_time++;
|
|
657
|
}
|
|
658
|
else if (progress >= 50 && global.justice_reached_50_first_time == 0)
|
|
659
|
{
|
|
660
|
global.battlemsg[0] = stringsetloc(* A bead of sweat forms on the old man's forehead..."* A bead of sweat forms on the old man's forehead...", "obj_hammer_of_justice_enemy_slash_Step_0_gml_318_0" );
|
|
661
|
global.justice_reached_50_first_time++;
|
|
662
|
}
|
|
663
|
else if (progress >= 75 && global.justice_reached_75_first_time == 0)
|
|
664
|
{
|
|
665
|
global.battlemsg[0] = stringsetloc(* The opponent is finally slowing down! ... or speeding up!?"* The opponent is finally slowing down! ... or speeding up!?", "obj_hammer_of_justice_enemy_slash_Step_0_gml_319_0" );
|
|
666
|
global.justice_reached_75_first_time++;
|
|
667
|
}
|
|
668
|
else if (rr == 0)
|
|
669
|
{
|
|
670
|
global.battlemsg[0] = stringsetloc(* The air crackles green with freedom."* The air crackles green with freedom.", "obj_hammer_of_justice_enemy_slash_Step_0_gml_320_0" );
|
|
671
|
}
|
|
672
|
else if (rr == 1)
|
|
673
|
{
|
|
674
|
global.battlemsg[0] = stringsetloc(* The bells ring in justice..."* The bells ring in justice...", "obj_hammer_of_justice_enemy_slash_Step_0_gml_321_0" );
|
|
675
|
}
|
|
676
|
else if (rr == 2)
|
|
677
|
{
|
|
678
|
global.battlemsg[0] = stringsetloc(* The bell of justice is ringing... it's for you."* The bell of justice is ringing... it's for you.", "obj_hammer_of_justice_enemy_slash_Step_0_gml_322_0" );
|
|
679
|
}
|
|
680
|
else if (rr == 3)
|
|
681
|
{
|
|
682
|
global.battlemsg[0] = stringsetloc(* The bell of justice tolls... for a frog. No, a turtle!"* The bell of justice tolls... for a frog. No, a turtle!", "obj_hammer_of_justice_enemy_slash_Step_0_gml_323_0" );
|
|
683
|
}
|
|
684
|
else if (rr == 4)
|
|
685
|
{
|
|
686
|
global.battlemsg[0] = stringsetloc(* The white wind howls!"* The white wind howls!", "obj_hammer_of_justice_enemy_slash_Step_0_gml_324_0" );
|
|
687
|
}
|
|
688
|
else if (rr == 5)
|
|
689
|
{
|
|
690
|
global.battlemsg[0] = stringsetloc(* Smells like steel and leather."* Smells like steel and leather.", "obj_hammer_of_justice_enemy_slash_Step_0_gml_325_0" );
|
|
691
|
}
|
|
692
|
else if (rr == 6)
|
|
693
|
{
|
|
694
|
global.battlemsg[0] = stringsetloc(* It's one shell of a battle!"* It's one shell of a battle!", "obj_hammer_of_justice_enemy_slash_Step_0_gml_326_0" );
|
|
695
|
}
|
|
696
|
else if (rr == 7)
|
|
697
|
{
|
|
698
|
global.battlemsg[0] = stringsetloc(* Susie rolls her head confidently."* Susie rolls her head confidently.", "obj_hammer_of_justice_enemy_slash_Step_0_gml_327_0" );
|
|
699
|
}
|
|
700
|
else if (rr == 8)
|
|
701
|
{
|
|
702
|
global.battlemsg[0] = stringsetloc(* Susie grits her teeth."* Susie grits her teeth.", "obj_hammer_of_justice_enemy_slash_Step_0_gml_328_0" );
|
|
703
|
}
|
|
704
|
attacked = 1;
|
|
705
|
}
|
|
706
|
}
|
|
707
|
if (introtalkcon == 1)
|
|
708
|
{
|
|
709
|
if (global.turntimer < 0)
|
|
710
|
{
|
|
711
|
with (obj_writer)
|
|
712
|
instance_destroy();
|
|
713
|
exit;
|
|
714
|
}
|
|
715
|
talktimer++;
|
|
716
|
global.turntimer++;
|
|
717
|
if (((button3_p() && talktimer > 15) || !i_ex(obj_writer)) || ballooncon == 0)
|
|
718
|
{
|
|
719
|
with (obj_writer)
|
|
720
|
instance_destroy();
|
|
721
|
if (ballooncon == 0 && (global.justice_attempts > 0 || firstconversationhappened == true))
|
|
722
|
{
|
|
723
|
msgset(0, dialogue_string8);
|
|
724
|
ballooncon = 4;
|
|
725
|
}
|
|
726
|
else if (ballooncon == 0)
|
|
727
|
{
|
|
728
|
msgset(0, dialogue_string4);
|
|
729
|
ballooncon = 1;
|
|
730
|
susietalks = 1;
|
|
731
|
var drawabove = true;
|
|
732
|
with (obj_herosusie)
|
|
733
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
734
|
with (obj_herosusie)
|
|
735
|
{
|
|
736
|
state = 8;
|
|
737
|
hurt = 0;
|
|
738
|
attacktimer = 0;
|
|
739
|
sprite_index = spr_susie_hurt_lookright;
|
|
740
|
image_speed = 0;
|
|
741
|
image_index = 0;
|
|
742
|
}
|
|
743
|
}
|
|
744
|
else if (ballooncon == 1)
|
|
745
|
{
|
|
746
|
msgset(0, dialogue_string5);
|
|
747
|
ballooncon = 2;
|
|
748
|
susietalks = 0;
|
|
749
|
}
|
|
750
|
else if (ballooncon == 2)
|
|
751
|
{
|
|
752
|
msgset(0, dialogue_string6);
|
|
753
|
ballooncon = 3;
|
|
754
|
susietalks = 0;
|
|
755
|
}
|
|
756
|
else if (ballooncon == 3)
|
|
757
|
{
|
|
758
|
msgset(0, dialogue_string7);
|
|
759
|
ballooncon = 4;
|
|
760
|
susietalks = 1;
|
|
761
|
}
|
|
762
|
else if (ballooncon == 4)
|
|
763
|
{
|
|
764
|
with (obj_herosusie)
|
|
765
|
{
|
|
766
|
state = 0;
|
|
767
|
hurt = 0;
|
|
768
|
attacktimer = 0;
|
|
769
|
attacked = 0;
|
|
770
|
}
|
|
771
|
ballooncon = -1;
|
|
772
|
introtalkcon = -1;
|
|
773
|
exit;
|
|
774
|
}
|
|
775
|
global.typer = 50;
|
|
776
|
if (susietalks == 1 && instance_exists(obj_herosusie))
|
|
777
|
{
|
|
778
|
global.typer = 75;
|
|
779
|
if (ballooncon == 1)
|
|
780
|
{
|
|
781
|
balloon = 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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (obj_herosusie.x - 40, obj_herosusie.y - 78, 10);
|
|
782
|
balloon.side = 2;
|
|
783
|
}
|
|
784
|
if (ballooncon == 4)
|
|
785
|
{
|
|
786
|
balloon = 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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (obj_herosusie.x - 25, obj_herosusie.y - 55, 10);
|
|
787
|
balloon.side = 2;
|
|
788
|
}
|
|
789
|
}
|
|
790
|
else
|
|
791
|
{
|
|
792
|
global.typer = 86;
|
|
793
|
if (ballooncon == 2)
|
|
794
|
{
|
|
795
|
balloon = 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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (camerax() + 430, obj_herosusie.y - 96, 10);
|
|
796
|
balloon.side = 2;
|
|
797
|
}
|
|
798
|
if (ballooncon == 3)
|
|
799
|
{
|
|
800
|
balloon = 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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (camerax() + 418, obj_herosusie.y - 116, 10);
|
|
801
|
balloon.side = 2;
|
|
802
|
}
|
|
803
|
if (ballooncon == 4)
|
|
804
|
{
|
|
805
|
balloon = 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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (camerax() + 430, obj_herosusie.y - 106, 10);
|
|
806
|
balloon.side = 2;
|
|
807
|
}
|
|
808
|
}
|
|
809
|
with (obj_battleblcon)
|
|
810
|
{
|
|
811
|
if (i_ex(obj_spearblocker))
|
|
812
|
depth = obj_spearblocker.depth - 10;
|
|
813
|
}
|
|
814
|
susietalks = 0;
|
|
815
|
firstconversationhappened = true;
|
|
816
|
talktimer = 0;
|
|
817
|
}
|
|
818
|
}
|
|
819
|
if (global.mnfight == 2 && global.turntimer <= 1 && postenemyturnevent == 0 && end_cutscene_version == 0 && reachedendphase == 0)
|
|
820
|
{
|
|
821
|
if (have_used_final_attack)
|
|
822
|
{
|
|
823
|
talked = -1;
|
|
824
|
endcon = 1;
|
|
825
|
end_cutscene_version = 1;
|
|
826
|
global.charturn = 2;
|
|
827
|
mus_volume(global.batmusic[1], 0, 90);
|
|
828
|
exit;
|
|
829
|
}
|
|
830
|
postturntimer = 0;
|
|
831
|
postenemyturnevent = 1;
|
|
832
|
if (trueturn == 16 && endcon == 0)
|
|
833
|
{
|
|
834
|
postenemyturnevent = 2;
|
|
835
|
progress += 30;
|
|
836
|
snd_play(snd_mercyadd);
|
|
837
|
}
|
|
838
|
if (trueturn == 17 && endcon == 0)
|
|
839
|
{
|
|
840
|
postenemyturnevent = 3;
|
|
841
|
progress += 24;
|
|
842
|
snd_play(snd_mercyadd);
|
|
843
|
}
|
|
844
|
if (trueturn == 18 && endcon == 0)
|
|
845
|
{
|
|
846
|
postenemyturnevent = 4;
|
|
847
|
progress += 24;
|
|
848
|
snd_play(snd_mercyadd);
|
|
849
|
}
|
|
850
|
if (trueturn == 19 && endcon == 0)
|
|
851
|
{
|
|
852
|
postenemyturnevent = 5;
|
|
853
|
progress += 20;
|
|
854
|
snd_play(snd_mercyadd);
|
|
855
|
}
|
|
856
|
}
|
|
857
|
if (global.mnfight == 2 && global.turntimer <= 0 && postenemyturnevent == 0 && reachedendphase == 1)
|
|
858
|
{
|
|
859
|
if (have_used_final_attack)
|
|
860
|
{
|
|
861
|
talked = -1;
|
|
862
|
endcon = 1;
|
|
863
|
end_cutscene_version = 1;
|
|
864
|
global.charturn = 3;
|
|
865
|
global.myfight = -1;
|
|
866
|
global.mnfight = -1;
|
|
867
|
global.turntimer = -1;
|
|
868
|
mus_volume(global.batmusic[1], 0, 90);
|
|
869
|
exit;
|
|
870
|
}
|
|
871
|
postenemyturnevent = 1;
|
|
872
|
}
|
|
873
|
if (postenemyturnevent == 2 && endcon == 0)
|
|
874
|
{
|
|
875
|
postturntimer++;
|
|
876
|
instance_create(x + 10 + irandom(80), (y - 60) + irandom(40), obj_gerson_progress_star);
|
|
877
|
if (postturntimer >= 30)
|
|
878
|
{
|
|
879
|
postturntimer = 0;
|
|
880
|
postenemyturnevent = 6;
|
|
881
|
}
|
|
882
|
}
|
|
883
|
if (postenemyturnevent == 3 && endcon == 0)
|
|
884
|
{
|
|
885
|
postturntimer++;
|
|
886
|
instance_create(x + 10 + irandom(80), (y - 60) + irandom(40), obj_gerson_progress_star);
|
|
887
|
if (postturntimer >= 24)
|
|
888
|
{
|
|
889
|
postturntimer = 0;
|
|
890
|
postenemyturnevent = 6;
|
|
891
|
}
|
|
892
|
}
|
|
893
|
if (postenemyturnevent == 4 && endcon == 0)
|
|
894
|
{
|
|
895
|
postturntimer++;
|
|
896
|
instance_create(x + 10 + irandom(80), (y - 60) + irandom(40), obj_gerson_progress_star);
|
|
897
|
if (postturntimer >= 24)
|
|
898
|
{
|
|
899
|
postturntimer = 0;
|
|
900
|
postenemyturnevent = 6;
|
|
901
|
}
|
|
902
|
}
|
|
903
|
if (postenemyturnevent == 5 && endcon == 0)
|
|
904
|
{
|
|
905
|
postturntimer++;
|
|
906
|
instance_create(x + 10 + irandom(80), (y - 60) + irandom(40), obj_gerson_progress_star);
|
|
907
|
if (postturntimer >= 20)
|
|
908
|
{
|
|
909
|
postturntimer = 0;
|
|
910
|
postenemyturnevent = 6;
|
|
911
|
}
|
|
912
|
}
|
|
913
|
}
|
|
914
|
if (global.myfight == 3)
|
|
915
|
{
|
|
916
|
xx = __view_get(e__VW.XView, 0);
|
|
917
|
yy = __view_get(e__VW.YView, 0);
|
|
918
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
919
|
{
|
|
920
|
if (scr_terminate_writerscr_terminate_writer
function scr_terminate_writer()
{
__writerkilled = 0;
__writerkillable = 0;
__writerended = 0;
if (instance_exists(obj_writer))
{
obj_writer.__endcheckid = id;
with (obj_writer)
{
if (reachedend == 1)
{
with (__endcheckid)
__writerended++;
}
}
if (__writerended == instance_number(obj_writer))
__writerkillable = 1;
}
else
{
__writerkilled = 1;
}
if (button1_p() && __writerkillable == 1)
{
with (obj_writer)
instance_destroy();
__writerkilled = 1;
}
return __writerkilled;
} ())
|
|
921
|
{
|
|
922
|
actconsus = -1;
|
|
923
|
actconral = -1;
|
|
924
|
actcon = 1;
|
|
925
|
}
|
|
926
|
}
|
|
927
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
928
|
scr_nextactscr_nextact
function scr_nextact()
{
global.acting[0] = 0;
global.acting[1] = 0;
global.acting[2] = 0;
global.actingsingle[global.currentactingchar] = 0;
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
with (__minstance)
{
acting = 0;
actcon = 0;
actconsus = 0;
actconral = 0;
actconnoe = 0;
}
var singleactcomplete = 0;
while (global.currentactingchar < 3)
{
global.currentactingchar++;
if (global.currentactingchar < 3)
{
if (global.actingsingle[global.currentactingchar] == 1)
{
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
if (global.char[global.currentactingchar] == 2)
{
with (__minstance)
actconsus = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 3)
{
with (__minstance)
actconral = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 4)
{
with (__minstance)
actconnoe = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
}
}
}
if (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 1)
{
global.charturn = 3;
global.myfight = 3;
global.currentactingchar = 0;
if (global.acting[0] == 0)
scr_nextact();
if (global.acting[0] == 1 && global.actingsimul[0] == 1)
scr_act_simul();
exit;
}
if (global.currentactingchar >= 3)
{
with (obj_monsterparent)
{
acting = 0;
actingsus = 0;
actingral = 0;
actingnoe = 0;
}
global.currentactingchar = 0;
scr_attackphase();
}
else if (!singleactcomplete)
{
scr_act_simul();
}
} ();
|
|
929
|
}
|
|
930
|
if (state == 3)
|
|
931
|
scr_enemy_hurtscr_enemy_hurt
function scr_enemy_hurt()
{
hurttimer -= 1;
if (hurttimer < 0)
{
state = 0;
}
else
{
if (global.monster[myself] == 0)
scr_defeatrun();
hurtshake += 1;
if (hurtshake > 1)
{
if (shakex > 0)
shakex -= 1;
if (shakex < 0)
shakex += 1;
shakex = -shakex;
hurtshake = 0;
}
}
} ();
|
|
932
|
if (attackcon == 1 && !i_ex(obj_writer))
|
|
933
|
{
|
|
934
|
if (attackcount < attackcountmax)
|
|
935
|
{
|
|
936
|
scr_spearshotscr_spearshot
function scr_spearshot(arg0, arg1, arg2, arg3)
{
if (arg3 == 1)
{
instance_create(x - 5, y + 4, obj_gerson_green_switch);
}
else if (arg3 == 2)
{
ham = instance_create(obj_heart.x - 20, obj_heart.y - 20, obj_giant_hammer);
ham.type = 2;
ham.dir = arg0;
}
else if (arg3 == 3)
{
with (obj_spearblocker)
diagonal_transform = 1;
with (obj_hammer_of_justice_enemy)
diagonal_enabled = 1;
}
else if (arg3 == 400)
{
if (obj_hammer_of_justice_enemy.visible == true)
{
obj_hammer_of_justice_enemy.visible = false;
gers = instance_create(obj_hammer_of_justice_enemy.x + 45, obj_hammer_of_justice_enemy.y + 45, obj_gerson_teleport);
gers.depth = obj_hammer_of_justice_enemy.depth;
}
}
else if (arg3 == 4)
{
if (i_ex(obj_hammer_of_justice_enemy) && obj_hammer_of_justice_enemy.visible == true)
{
obj_hammer_of_justice_enemy.visible = false;
gers = instance_create(obj_hammer_of_justice_enemy.x + 45, obj_hammer_of_justice_enemy.y + 45, obj_gerson_teleport);
gers.depth = obj_hammer_of_justice_enemy.depth;
}
if (arg2 == -5)
{
gers = instance_create(camerax() + arg0, cameray() + arg1, obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = -3;
gers.image_alpha = 0;
gers.image_angle = 90;
}
else if (arg2 == -4)
{
gers = instance_create(obj_growtangle.x + arg0 + lengthdir_x(130, obj_hammer_of_justice_enemy.swingdown_ex * 45), obj_growtangle.y + arg1 + 20 + lengthdir_y(130, obj_hammer_of_justice_enemy.swingdown_ex * 45), obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = -4;
gers.image_angle = obj_hammer_of_justice_enemy.swingdown_ex * 45;
gers.image_alpha = 0;
obj_hammer_of_justice_enemy.swingdown_ex++;
if (obj_hammer_of_justice_enemy.swingdown_ex == 1)
gers.special = 4;
if (obj_hammer_of_justice_enemy.swingdown_ex == 2)
gers.special = 1;
if (obj_hammer_of_justice_enemy.swingdown_ex == 3)
gers.special = 3;
if (obj_hammer_of_justice_enemy.swingdown_ex == 4)
gers.special = 2;
if (obj_hammer_of_justice_enemy.swingdown_ex == 5)
gers.special = 4;
if (obj_hammer_of_justice_enemy.swingdown_ex == 6)
gers.special = 1;
if (obj_hammer_of_justice_enemy.swingdown_ex == 7)
gers.special = 3;
if (obj_hammer_of_justice_enemy.swingdown_ex == 8)
gers.special = 2;
}
else if (arg2 == -3)
{
gers = instance_create(obj_growtangle.x + arg0 + lengthdir_x(130, obj_hammer_of_justice_enemy.swingdown_ex * 45), obj_growtangle.y + arg1 + 20 + lengthdir_y(130, obj_hammer_of_justice_enemy.swingdown_ex * 45), obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = arg2;
gers.image_angle = obj_hammer_of_justice_enemy.swingdown_ex * 45;
gers.image_alpha = 0;
obj_hammer_of_justice_enemy.swingdown_ex++;
}
else if (arg2 == 10)
{
gers = instance_create(obj_growtangle.x + 116, obj_heart.y + 26, obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = arg2;
gers.image_alpha = 0;
}
else if (arg2 == 11)
{
gers = instance_create(obj_growtangle.x + 116, obj_growtangle.y + 55, obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = arg2;
gers.image_alpha = 0;
}
else if (arg2 == 12)
{
gers = instance_create(obj_growtangle.x - 116, obj_growtangle.y - 65, obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = arg2;
gers.image_angle = 180;
gers.image_alpha = 0;
}
else if (arg2 == 13)
... (list_attackdirection[attackcount], list_attackspeed[attackcount], list_attackframes[attackcount], list_attackspecial[attackcount], list_attackspecial2[attackcount]);
|
|
937
|
attackcon = 2;
|
|
938
|
}
|
|
939
|
else
|
|
940
|
{
|
|
941
|
attackcon = 3;
|
|
942
|
rudebusterhitcount = 0;
|
|
943
|
swingdown_ex = 0;
|
|
944
|
}
|
|
945
|
attackcount++;
|
|
946
|
}
|
|
947
|
if (attackcon == 2 && !i_ex(obj_gerson_growtangle))
|
|
948
|
{
|
|
949
|
attacktimer++;
|
|
950
|
if (attacktimer >= list_attackwait[attackcount - 1] && !i_ex(obj_writer))
|
|
951
|
{
|
|
952
|
attacktimer = 0;
|
|
953
|
attackcon = 1;
|
|
954
|
if (reachedendphase == 1)
|
|
955
|
have_used_final_attack = true;
|
|
956
|
}
|
|
957
|
}
|
|
958
|
if (attackcon == 3 && global.turntimer > 10 && !i_ex(obj_spearshot))
|
|
959
|
{
|
|
960
|
global.turntimer = 10;
|
|
961
|
attackcon = 0;
|
|
962
|
}
|
|
963
|
if (scr_debug && scr_debug_keycheckscr_debug_keycheck
function scr_debug_keycheck(arg0)
{
} (ord("V")) && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("bullets"))
|
|
964
|
event_user(14);
|
|
965
|
if (attackcon == 0)
|
|
966
|
obj_battlecontroller.depth = savebattlecontrollerdepth;
|
|
967
|
if (hitbox_con == 1)
|
|
968
|
{
|
|
969
|
hitbox_con = 0;
|
|
970
|
with (obj_growtangle)
|
|
971
|
{
|
|
972
|
obj_growtangle.hspeed = 16;
|
|
973
|
obj_growtangle.friction = 0.8;
|
|
974
|
with (obj_heart)
|
|
975
|
{
|
|
976
|
hspeed = 16;
|
|
977
|
friction = 0.8;
|
|
978
|
}
|
|
979
|
}
|
|
980
|
}
|
|
981
|
if (hitbox_con == 2)
|
|
982
|
{
|
|
983
|
hitbox_con = 0;
|
|
984
|
with (obj_growtangle)
|
|
985
|
{
|
|
986
|
obj_growtangle.hspeed = -16;
|
|
987
|
obj_growtangle.friction = 0.8;
|
|
988
|
with (obj_heart)
|
|
989
|
{
|
|
990
|
hspeed = -16;
|
|
991
|
friction = 0.8;
|
|
992
|
}
|
|
993
|
}
|
|
994
|
}
|
|
995
|
if (mercylaughcon == 1)
|
|
996
|
{
|
|
997
|
mercylaughtimer++;
|
|
998
|
state = 12;
|
|
999
|
sprite_set_offset(spr_gerson_laugh, 14, 22);
|
|
1000
|
sprite_index = spr_gerson_laugh;
|
|
1001
|
if (mercylaughtimer == 1)
|
|
1002
|
snd_play(snd_mercyadd);
|
|
1003
|
if ((mercylaughtimer % 2) == 0)
|
|
1004
|
star = instance_create(x + 10 + irandom(80), (y - 60) + irandom(40), obj_gerson_progress_star);
|
|
1005
|
if (mercylaughtimer == (((mercylaughcount + 1) * 2) - 1))
|
|
1006
|
{
|
|
1007
|
state = 0;
|
|
1008
|
sprite_index = spr_gerson_idle;
|
|
1009
|
mercylaughcon = 0;
|
|
1010
|
mercylaughtimer = 0;
|
|
1011
|
}
|
|
1012
|
}
|
|
1013
|
with (obj_growtangle)
|
|
1014
|
{
|
|
1015
|
if (hspeed != 0)
|
|
1016
|
{
|
|
1017
|
scr_afterimagescr_afterimage
function scr_afterimage()
{
afterimage = instance_create(x, y, obj_afterimage);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
return afterimage;
} ();
|
|
1018
|
if (i_ex(afterimage))
|
|
1019
|
afterimage.fadeSpeed = 0.2;
|
|
1020
|
}
|
|
1021
|
}
|
|
1022
|
if (end_cutscene_version == 0)
|
|
1023
|
{
|
|
1024
|
if (endcon == 1)
|
|
1025
|
{
|
|
1026
|
endtimer++;
|
|
1027
|
if (endtimer == 1)
|
|
1028
|
{
|
|
1029
|
scr_fadeoutscr_fadeout
function scr_fadeout(arg0)
{
__fadeouter = instance_create(camerax() - 200, cameray() - 200, obj_fadeout);
__fadeouter.fadespeed = 1 / arg0;
__fadeouter.depth = 3;
return __fadeouter;
} (30);
|
|
1030
|
with (obj_fadeout)
|
|
1031
|
{
|
|
1032
|
image_blend = c_white;
|
|
1033
|
depth = 2;
|
|
1034
|
}
|
|
1035
|
}
|
|
1036
|
if (endtimer == 3)
|
|
1037
|
{
|
|
1038
|
with (obj_writer)
|
|
1039
|
instance_destroy();
|
|
1040
|
with (obj_face)
|
|
1041
|
instance_destroy();
|
|
1042
|
}
|
|
1043
|
if (endtimer == 60)
|
|
1044
|
{
|
|
1045
|
global.myfight = -1;
|
|
1046
|
global.mnfight = -1;
|
|
1047
|
global.fighting = 0;
|
|
1048
|
with (obj_battlecontroller)
|
|
1049
|
{
|
|
1050
|
victory = 1;
|
|
1051
|
skipvictory = 1;
|
|
1052
|
}
|
|
1053
|
global.flag[36 dojo_failure] = 1;
|
|
1054
|
global.flag[39 dojo_abort?] = 1;
|
|
1055
|
endcon = 2;
|
|
1056
|
}
|
|
1057
|
}
|
|
1058
|
}
|
|
1059
|
else
|
|
1060
|
{
|
|
1061
|
if (endcon == 1)
|
|
1062
|
{
|
|
1063
|
endtimer++;
|
|
1064
|
global.charturn = 2;
|
|
1065
|
if (endtimer == 1)
|
|
1066
|
mus_fade(global.batmusic[1], 90);
|
|
1067
|
if (endtimer == 1)
|
|
1068
|
{
|
|
1069
|
with (obj_battlecontroller)
|
|
1070
|
scr_mnendturnscr_mnendturn
function scr_mnendturn()
{
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() == 0)
techwon = 1;
if (global.flag[39 dojo_abort?] == 1)
techwon = 1;
if (techwon == 1)
scr_wincombat();
if (techwon == 0)
{
with (obj_battlecontroller)
{
messagepriority = -1;
attackpriority = -1;
}
scr_battlecursor_memory_reset();
global.mnfight = 0;
global.myfight = 0;
global.bmenuno = 0;
global.charturn = 0;
skip = 0;
for (i = 0; i < 3; i += 1)
{
global.hittarget[i] = 0;
with (global.charinstance[i])
tu = 0;
hptarget = global.char[i];
if (global.chapter == 4 && i_ex(obj_titan_enemy) && obj_titan_enemy.gerson.sprite_index == spr_gerson_item)
continue;
if (global.char[i] != 0 && global.hp[hptarget] <= 0)
{
healamt = ceil(global.maxhp[hptarget] / 8);
dmgwr = instance_create(global.charinstance[i].x, (global.charinstance[i].y + global.charinstance[i].myheight) - 24, obj_dmgwriter);
with (dmgwr)
{
delay = 1;
type = 3;
}
dmgwr.damage = scr_heal(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.actingsingle[i] = 0;
global.actingsimul[i] = 0;
global.actingtarget[i] = 0;
global.temptension[i] = global.tension;
global.charspecial[i] = 0;
global.targeted[i] = 0;
global.charaction[i] = 0;
global.faceaction[i] = 0;
global.monsterattackname[i] = " ";
}
global.currentactingchar = 0;
with (obj_monsterparent)
{
attacked = 0;
talked = 0;
acting = 0;
actingsus = 0;
actingral = 0;
actingnoe = 0;
}
if (skip == 1)
{
if (global.char[0] == 2 && global.charauto[2] == 1)
{
global.acting[0] = 1;
global.myfight = 3;
}
scr_endturn();
}
if (disablesusieattack == 1 && global.charturn == 1)
global.bmenucoord[0][global.charturn] = 1;
for (i = 0; i < 12; i += 1)
{
... ();
|
|
1071
|
}
|
|
1072
|
if (endtimer == 90)
|
|
1073
|
{
|
|
1074
|
msgsetloc(0, ... Alright, I figured it out.Wait for inputClose Message"... Alright,&I figured it out./%", "obj_hammer_of_justice_enemy_slash_Step_0_gml_630_0" );
|
|
1075
|
global.typer = 75;
|
|
1076
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
1077
|
}
|
|
1078
|
if ((button3_p() && endtimer > 105) || (!i_ex(obj_writer) && endtimer > 90))
|
|
1079
|
{
|
|
1080
|
with (obj_writer)
|
|
1081
|
instance_destroy();
|
|
1082
|
endcon = 2;
|
|
1083
|
endtimer = 0;
|
|
1084
|
}
|
|
1085
|
}
|
|
1086
|
if (endcon == 2)
|
|
1087
|
{
|
|
1088
|
endtimer++;
|
|
1089
|
if (endtimer == 1)
|
|
1090
|
{
|
|
1091
|
obj_herosusie.x -= 35;
|
|
1092
|
obj_herosusie.y -= 28;
|
|
1093
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_heal_charge2, 0.5, false);
|
|
1094
|
}
|
|
1095
|
if (endtimer == 6)
|
|
1096
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_heal_charge2_loop, 0.5, true);
|
|
1097
|
if (endtimer == 30)
|
|
1098
|
{
|
|
1099
|
msgsetloc(0, You wanna see what I got, then...Wait for inputClose Message"You wanna see what&I got, then.../%", "obj_hammer_of_justice_enemy_slash_Step_0_gml_662_0" );
|
|
1100
|
global.typer = 75;
|
|
1101
|
var heroballoon = 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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (obj_herosusie.x + 100 + 35, obj_herosusie.y + 40 + 28, 10);
|
|
1102
|
heroballoon.side = -1;
|
|
1103
|
}
|
|
1104
|
if ((button3_p() && endtimer > 45) || (!i_ex(obj_writer) && endtimer > 30))
|
|
1105
|
{
|
|
1106
|
with (obj_writer)
|
|
1107
|
instance_destroy();
|
|
1108
|
endcon = 3;
|
|
1109
|
endtimer = 0;
|
|
1110
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_heal_charge_loop, 0.5, true);
|
|
1111
|
var snd = snd_loop(snd_chargeshot_charge);
|
|
1112
|
snd_volume(snd, 0, 0);
|
|
1113
|
snd_volume(snd, 0.2, 30);
|
|
1114
|
}
|
|
1115
|
}
|
|
1116
|
if (endcon == 3)
|
|
1117
|
{
|
|
1118
|
endtimer++;
|
|
1119
|
if ((button3_p() && endtimer > 15) || !i_ex(obj_writer))
|
|
1120
|
{
|
|
1121
|
with (obj_writer)
|
|
1122
|
instance_destroy();
|
|
1123
|
endcon = 4;
|
|
1124
|
endtimer = 0;
|
|
1125
|
}
|
|
1126
|
}
|
|
1127
|
if (endcon == 4)
|
|
1128
|
{
|
|
1129
|
endtimer++;
|
|
1130
|
if (endtimer == 30)
|
|
1131
|
{
|
|
1132
|
msgsetloc(0, Take THIS!!!Wait for inputClose Message"Take THIS!!!/%", "obj_hammer_of_justice_enemy_slash_Step_0_gml_704_0" );
|
|
1133
|
global.typer = 75;
|
|
1134
|
var heroballoon = 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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (obj_herosusie.x + 100 + 35, obj_herosusie.y + 40 + 28, 10);
|
|
1135
|
heroballoon.side = -1;
|
|
1136
|
}
|
|
1137
|
if ((button3_p() && endtimer > 45) || (!i_ex(obj_writer) && endtimer > 30))
|
|
1138
|
{
|
|
1139
|
with (obj_writer)
|
|
1140
|
instance_destroy();
|
|
1141
|
endcon = 5;
|
|
1142
|
endtimer = 0;
|
|
1143
|
siner -= 14;
|
|
1144
|
}
|
|
1145
|
}
|
|
1146
|
if (endcon == 5)
|
|
1147
|
{
|
|
1148
|
endtimer++;
|
|
1149
|
if (endtimer == 1)
|
|
1150
|
{
|
|
1151
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_heal_end, 0.5, false);
|
|
1152
|
var snd = snd_loop(snd_chargeshot_charge);
|
|
1153
|
snd_volume(snd, 0, 0);
|
|
1154
|
snd_volume(snd, 0.2, 30);
|
|
1155
|
}
|
|
1156
|
if (endtimer == 6)
|
|
1157
|
{
|
|
1158
|
inst = instance_create(obj_herosusie.x + 86, obj_herosusie.y + 60, obj_susie_heal_projectile);
|
|
1159
|
inst.gravity = 1;
|
|
1160
|
inst.gravity_direction = 8;
|
|
1161
|
inst.image_xscale = 3;
|
|
1162
|
inst.image_yscale = 3;
|
|
1163
|
inst.image_speed = 1;
|
|
1164
|
inst.image_angle = 8;
|
|
1165
|
snd_stop(snd_chargeshot_charge);
|
|
1166
|
snd_play_x(snd_heartshot_dr_b, 0.4, 0.4);
|
|
1167
|
}
|
|
1168
|
if (endtimer == 28)
|
|
1169
|
{
|
|
1170
|
obj_herosusie.x = obj_herosusie.xstart;
|
|
1171
|
obj_herosusie.y = obj_herosusie.ystart;
|
|
1172
|
}
|
|
1173
|
if (endtimer == 25)
|
|
1174
|
{
|
|
1175
|
msgsetloc(0, Ha, ya missed."Ha, ya missed.", "obj_hammer_of_justice_enemy_slash_Step_0_gml_757_0" );
|
|
1176
|
global.typer = 86;
|
|
1177
|
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_long;
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_long;
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;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (x - 10, global.monstery[myself], 10);
|
|
1178
|
}
|
|
1179
|
if (endtimer == 46)
|
|
1180
|
{
|
|
1181
|
with (obj_writer)
|
|
1182
|
instance_destroy();
|
|
1183
|
}
|
|
1184
|
if (endtimer == 45)
|
|
1185
|
{
|
|
1186
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susieb_attack, 0.5, false);
|
|
1187
|
attack = instance_create(global.monsterx[myself] - 40, global.monstery[myself] - 4, obj_basicattack);
|
|
1188
|
attack.sprite_index = spr_attack_cut1_purple;
|
|
1189
|
attack.image_speed = 0.25;
|
|
1190
|
attack.image_xscale = 0.75;
|
|
1191
|
attack.image_yscale = 0.75;
|
|
1192
|
attack.image_angle = 45;
|
|
1193
|
attack.maxindex = 4;
|
|
1194
|
ls = snd_play(snd_laz_c);
|
|
1195
|
snd_pitch(ls, 0.7);
|
|
1196
|
nohairsprite = true;
|
|
1197
|
snd_play(snd_old_man_grunt);
|
|
1198
|
}
|
|
1199
|
if (endtimer == 45)
|
|
1200
|
{
|
|
1201
|
scr_fadeoutscr_fadeout
function scr_fadeout(arg0)
{
__fadeouter = instance_create(camerax() - 200, cameray() - 200, obj_fadeout);
__fadeouter.fadespeed = 1 / arg0;
__fadeouter.depth = 3;
return __fadeouter;
} (60);
|
|
1202
|
with (obj_fadeout)
|
|
1203
|
{
|
|
1204
|
image_blend = c_white;
|
|
1205
|
if (i_ex(obj_tensionbar))
|
|
1206
|
depth = obj_tensionbar.depth - 1;
|
|
1207
|
}
|
|
1208
|
hair = instance_create(x + 25, y + 32, obj_gerson_hair2);
|
|
1209
|
hair.image_speed = 0;
|
|
1210
|
hair.image_index = 0;
|
|
1211
|
hair.image_angle = 20;
|
|
1212
|
hair.hspeed -= 0.5;
|
|
1213
|
if (i_ex(obj_fadeout))
|
|
1214
|
hair.depth = obj_fadeout.depth - 1;
|
|
1215
|
hair = instance_create(x + 25, y + 32, obj_gerson_hair2);
|
|
1216
|
hair.image_speed = 0;
|
|
1217
|
hair.image_index = 0;
|
|
1218
|
hair.image_angle = -20;
|
|
1219
|
hair.hspeed = 0.5;
|
|
1220
|
if (i_ex(obj_fadeout))
|
|
1221
|
hair.depth = obj_fadeout.depth - 1;
|
|
1222
|
}
|
|
1223
|
if (endtimer == 55)
|
|
1224
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_attack_end, 0.5, true);
|
|
1225
|
if (endtimer == 105)
|
|
1226
|
{
|
|
1227
|
with (obj_battlecontroller)
|
|
1228
|
skipvictory = 1;
|
|
1229
|
global.mag[2] += 4;
|
|
1230
|
global.flag[1569] = 1;
|
|
1231
|
scr_wincombatscr_wincombat
function scr_wincombat()
{
if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1)
{
global.myfight = 7;
global.mnfight = -1;
with (obj_battlecontroller)
victory = 1;
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
}
else
{
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0;
for (__j = 0; __j < 3; __j++)
{
if (global.monstertype[__j] != 0(None))
{
_newmonster = scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800;
global.monsterinstance[_newmonster].y = global.monstermakey[__j];
with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
}
}
global.myfight = 5;
myfightreturntimer = 15;
global.mnfight = -1;
}
} ();
|
|
1232
|
}
|
|
1233
|
}
|
|
1234
|
with (obj_battlecontroller)
|
|
1235
|
damagenoise = 0;
|
|
1236
|
}
|
|
1237
|
|
|
1238
|
enum e__VW
|
|
1239
|
{
|
|
1240
|
XView,
|
|
1241
|
YView,
|
|
1242
|
WView,
|
|
1243
|
HView,
|
|
1244
|
Angle,
|
|
1245
|
HBorder,
|
|
1246
|
VBorder,
|
|
1247
|
HSpeed,
|
|
1248
|
VSpeed,
|
|
1249
|
Object,
|
|
1250
|
Visible,
|
|
1251
|
XPort,
|
|
1252
|
YPort,
|
|
1253
|
WPort,
|
|
1254
|
HPort,
|
|
1255
|
Camera,
|
|
1256
|
SurfaceID
|
|
1257
|
}
|