|
1
|
if (global.monster[myself] == 1 && defeated == 0)
|
|
2
|
{
|
|
3
|
global.flag[51 + myself] = 4;
|
|
4
|
event_user(1);
|
|
5
|
if (talked == 1 && global.mnfight == 1)
|
|
6
|
{
|
|
7
|
rtimer = 0;
|
|
8
|
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;
}
} (15);
|
|
9
|
if (global.mnfight == 2)
|
|
10
|
{
|
|
11
|
if (!instance_exists(obj_moveheart))
|
|
12
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
13
|
if (!instance_exists(obj_growtangle))
|
|
14
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
15
|
}
|
|
16
|
}
|
|
17
|
if (global.mnfight == 2 && attacked == 0)
|
|
18
|
{
|
|
19
|
rtimer += 1;
|
|
20
|
if (rtimer == 12)
|
|
21
|
{
|
|
22
|
global.turntimer = 180;
|
|
23
|
if (attacktype == 2)
|
|
24
|
{
|
|
25
|
dc = instance_create(x + (sprite_width / 2), y + (sprite_height / 2), obj_dbulletcontroller);
|
|
26
|
dc.type = 85;
|
|
27
|
dc.target = mytarget;
|
|
28
|
dc.damage = global.monsterat[myself] * 5;
|
|
29
|
dc.timepoints = 3;
|
|
30
|
dc.grazepoints = 5;
|
|
31
|
if (sleeping == 1)
|
|
32
|
{
|
|
33
|
with (dc)
|
|
34
|
instance_destroy();
|
|
35
|
}
|
|
36
|
}
|
|
37
|
if (attacktype == 1)
|
|
38
|
{
|
|
39
|
dc = instance_create(x, y, obj_dbulletcontroller);
|
|
40
|
dc.type = 20;
|
|
41
|
dc.target = mytarget;
|
|
42
|
dc.damage = global.monsterat[myself] * 5;
|
|
43
|
dc.timepoints = 3;
|
|
44
|
dc.grazepoints = 3;
|
|
45
|
if (sleeping == 1)
|
|
46
|
{
|
|
47
|
with (dc)
|
|
48
|
instance_destroy();
|
|
49
|
}
|
|
50
|
}
|
|
51
|
if (attacktype == 0 && sleeping == 0)
|
|
52
|
{
|
|
53
|
bike = instance_create(obj_lancerboss3.x, obj_lancerboss3.y, obj_lancerbike_neo);
|
|
54
|
with (obj_lancerboss3)
|
|
55
|
visible = 0;
|
|
56
|
bike.target = mytarget;
|
|
57
|
bike.damage = global.monsterat[myself] * 5;
|
|
58
|
global.turntimer = 999;
|
|
59
|
}
|
|
60
|
attacktype += 1;
|
|
61
|
if (attacktype >= 3)
|
|
62
|
attacktype = 0;
|
|
63
|
turns += 1;
|
|
64
|
attacked = 1;
|
|
65
|
global.typer = 6;
|
|
66
|
global.fc = 0;
|
|
67
|
rr = choose(0, 1, 2, 3, 4);
|
|
68
|
global.battlemsg[0] = * Susie and Lancer are making fun of you. ;
|
|
69
|
if (rr == 1)
|
|
70
|
global.battlemsg[0] = * Susie and Lancer are gloating about how great their team is. ;
|
|
71
|
if (rr == 2)
|
|
72
|
global.battlemsg[0] = * Susie and Lancer are having an evil laugh contest. ;
|
|
73
|
if (rr == 3)
|
|
74
|
global.battlemsg[0] = * Susie and Lancer are coming up with victory celebration plans. ;
|
|
75
|
if (rr == 4)
|
|
76
|
global.battlemsg[0] = ;
|
|
77
|
}
|
|
78
|
else
|
|
79
|
{
|
|
80
|
global.turntimer = 120;
|
|
81
|
}
|
|
82
|
}
|
|
83
|
if (global.mnfight == 2)
|
|
84
|
{
|
|
85
|
if (global.turntimer <= 1)
|
|
86
|
{
|
|
87
|
if (battlecancel == 1)
|
|
88
|
global.mercymod[myself] = 999;
|
|
89
|
if (battlecancel == 2)
|
|
90
|
{
|
|
91
|
with (obj_battlecontroller)
|
|
92
|
noreturn = 1;
|
|
93
|
con = 1;
|
|
94
|
battlecancel = 3;
|
|
95
|
}
|
|
96
|
}
|
|
97
|
}
|
|
98
|
}
|
|
99
|
if (con == 1)
|
|
100
|
{
|
|
101
|
con = 2;
|
|
102
|
alarm[4] = 10; gml_Object_obj_susieenemy_Alarm_4.gml
con += 1;
|
|
103
|
}
|
|
104
|
if (con == 3)
|
|
105
|
{
|
|
106
|
global.typer = 50;
|
|
107
|
global.mercymod[myself] = 999;
|
|
108
|
global.msg[0] = Alright,Delay 11 you convinced me!!Wait for inputClose Message ;
|
|
109
|
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, 3);
|
|
110
|
con = 4;
|
|
111
|
}
|
|
112
|
if (con == 4 && !instance_exists(obj_writer))
|
|
113
|
{
|
|
114
|
hspeed = 15;
|
|
115
|
con = 5;
|
|
116
|
alarm[4] = 15; gml_Object_obj_susieenemy_Alarm_4.gml
con += 1;
|
|
117
|
with (obj_battlecontroller)
|
|
118
|
alarm[2]
|
|
119
|
}
|
|
120
|
if (con == 6)
|
|
121
|
{
|
|
122
|
with (obj_battlecontroller)
|
|
123
|
noreturn = 0;
|
|
124
|
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);
}
} ();
|
|
125
|
instance_destroy();
|
|
126
|
con = 7;
|
|
127
|
}
|
|
128
|
if (global.myfight == 3)
|
|
129
|
{
|
|
130
|
xx = __view_get(e__VW.XView, 0);
|
|
131
|
yy = __view_get(e__VW.YView, 0);
|
|
132
|
if (acting == 1 && actcon == 0)
|
|
133
|
{
|
|
134
|
actcon = 1;
|
|
135
|
_armordf = global.itemdf[2][0] + global.itemdf[2][1] + global.itemdf[2][2];
|
|
136
|
_armorat = global.itemat[2][0] + global.itemat[2][1] + global.itemat[2][2];
|
|
137
|
totaldf = string(global.df[2] + _armordf);
|
|
138
|
totalat = string(global.at[2] + _armorat);
|
|
139
|
totalhp = string(global.maxhp[2]);
|
|
140
|
global.msg[0] = scr_84_get_subst_stringscr_84_get_subst_string
function scr_84_get_subst_string()
{
var str = argument[0];
var sub_id = 1;
length = string_length(str);
pos = 0;
while (sub_id < argument_count)
{
var sub = "~" + string(sub_id);
str = string_replace_all(str, sub, argument[sub_id]);
sub_id = sub_id + 1;
}
return str;
} (* SUSIE - AT:~1 DF:~2 HP:~3 * If you read the status screen,Delay 11 you already knew that.Wait for inputClose Message , totalat, totaldf, totalhp);
|
|
141
|
if (_armordf > 0)
|
|
142
|
global.msg[0] = scr_84_get_subst_stringscr_84_get_subst_string
function scr_84_get_subst_string()
{
var str = argument[0];
var sub_id = 1;
length = string_length(str);
pos = 0;
while (sub_id < argument_count)
{
var sub = "~" + string(sub_id);
str = string_replace_all(str, sub, argument[sub_id]);
sub_id = sub_id + 1;
}
return str;
} (* SUSIE - AT:~1 DF:~2 HP:~3 * The armor you equipped her with just made her tougher!Wait for inputClose Message , totalat, totaldf, totalhp);
|
|
143
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
144
|
}
|
|
145
|
if (acting == 2 && actcon == 0)
|
|
146
|
{
|
|
147
|
global.msg[0] = * You tried convincing Susie not to fight.Wait for input ;
|
|
148
|
if (anythingcounter == 1)
|
|
149
|
global.msg[0] = * You tried telling Susie you like her hair.Wait for input ;
|
|
150
|
if (anythingcounter == 2)
|
|
151
|
global.msg[0] = * You growled at Susie like a bear.Wait for input ;
|
|
152
|
if (anythingcounter == 3)
|
|
153
|
global.msg[0] = * You told Susie you'd give her a picnic basket of worms.Wait for input ;
|
|
154
|
if (anythingcounter >= 4)
|
|
155
|
global.msg[0] = * You have no idea what to do what to Susie anymore.Wait for input ;
|
|
156
|
global.msg[1] = * There was no effect!Wait for inputClose Message ;
|
|
157
|
if (anythingcounter >= 1)
|
|
158
|
global.msg[1] = * It seems this command is a total waste of time!Wait for inputClose Message ;
|
|
159
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
160
|
anythingcounter += 1;
|
|
161
|
actcon = 1;
|
|
162
|
}
|
|
163
|
if (acting == 3 && actcon == 0)
|
|
164
|
{
|
|
165
|
with (obj_monsterparent)
|
|
166
|
susie_act = 3;
|
|
167
|
snd_pause(global.batmusic[1]);
|
|
168
|
if (lullabied == 0)
|
|
169
|
{
|
|
170
|
singy = snd_play(snd_ralseising1);
|
|
171
|
with (object_index)
|
|
172
|
lullabied = 1;
|
|
173
|
}
|
|
174
|
else
|
|
175
|
{
|
|
176
|
singy = snd_play(snd_ralseising2);
|
|
177
|
with (object_index)
|
|
178
|
lullabied = 0;
|
|
179
|
}
|
|
180
|
global.msg[0] = * Ralsei sang a soft and entrancing lullaby!Wait for inputClose Message ;
|
|
181
|
with (obj_heroralsei)
|
|
182
|
visible = 0;
|
|
183
|
ralsing = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (obj_heroralsei.x, obj_heroralsei.y, spr_ralseib_sing);
|
|
184
|
with (ralsing)
|
|
185
|
image_speed = 0.2;
|
|
186
|
lullatimer = 0;
|
|
187
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
188
|
actcon = 10;
|
|
189
|
}
|
|
190
|
if (actcon == 10)
|
|
191
|
{
|
|
192
|
lullatimer += 1;
|
|
193
|
if (lullatimer >= 30)
|
|
194
|
actcon = 11;
|
|
195
|
}
|
|
196
|
if (actcon == 11 && instance_exists(obj_writer) == false)
|
|
197
|
{
|
|
198
|
with (ralsing)
|
|
199
|
instance_destroy();
|
|
200
|
with (obj_heroralsei)
|
|
201
|
visible = 1;
|
|
202
|
snd_stop(singy);
|
|
203
|
snd_resume(global.batmusic[1]);
|
|
204
|
global.msg[0] = * SUSIE fell asleep!Wait for inputClose Message ;
|
|
205
|
if (sleeping == 1)
|
|
206
|
global.msg[0] = * But SUSIE was already asleep...!Wait for inputClose Message ;
|
|
207
|
idlesprite = spr_susie_enemy_defeat;
|
|
208
|
sleepcounter = 0;
|
|
209
|
sleeping = 1;
|
|
210
|
global.monstercomment[myself] = ;
|
|
211
|
global.monsterstatus[myself] = 1;
|
|
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 (actcon == 1 && !instance_exists(obj_writer))
|
|
216
|
{
|
|
217
|
actcon = 0;
|
|
218
|
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();
}
}
} ();
|
|
219
|
}
|
|
220
|
}
|
|
221
|
if (pacifycon > 0)
|
|
222
|
{
|
|
223
|
global.spelldelay = 999;
|
|
224
|
with (obj_spellphase)
|
|
225
|
{
|
|
226
|
if (spelltimer > 30)
|
|
227
|
spelltimer = 30;
|
|
228
|
}
|
|
229
|
}
|
|
230
|
if (pacifycon == 1)
|
|
231
|
{
|
|
232
|
if (obj_spellphase.spelltimer >= 15)
|
|
233
|
{
|
|
234
|
pacifytimer = 0;
|
|
235
|
pacifycon = 2;
|
|
236
|
with (obj_lancerboss3)
|
|
237
|
visible = 0;
|
|
238
|
temp_l = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (x - 40, y + sprite_height, spr_lancerbike);
|
|
239
|
temp_l.depth = depth - 2;
|
|
240
|
}
|
|
241
|
}
|
|
242
|
if (pacifycon == 2)
|
|
243
|
{
|
|
244
|
snd_play(snd_lancerwhistle);
|
|
245
|
with (temp_l)
|
|
246
|
{
|
|
247
|
o = 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;
} ();
|
|
248
|
o.flashcolor = c_blue;
|
|
249
|
}
|
|
250
|
pacifycon = 3;
|
|
251
|
}
|
|
252
|
if (pacifycon == 3)
|
|
253
|
{
|
|
254
|
pacifytimer += 1;
|
|
255
|
if (pacifytimer >= 30 && !instance_exists(obj_writer))
|
|
256
|
{
|
|
257
|
with (temp_l)
|
|
258
|
instance_destroy();
|
|
259
|
with (obj_lancerboss3)
|
|
260
|
visible = 1;
|
|
261
|
pacifycon = 4;
|
|
262
|
with (obj_monsterparent)
|
|
263
|
susie_act = 9;
|
|
264
|
global.msg[0] = * (The PACIFY spell was absorbed by Lancer's bike!)Wait for input ;
|
|
265
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (1, 3);
|
|
266
|
global.msg[2] = * I'll never let you SPARE my friends!!!Wait for input ;
|
|
267
|
scr_nofacescr_noface
function scr_noface(arg0)
{
global.msg[arg0] = Sound X Char 0 Sound 0 Close Message ;
} (3);
|
|
268
|
global.msg[4] = * (Lancer's BIKE began to get tired??????????????)Wait for inputClose Message ;
|
|
269
|
if (tirespare == 1)
|
|
270
|
{
|
|
271
|
global.msg[0] = * (The PACIFY spell was absorbed by Lancer's bike!)Wait for input ;
|
|
272
|
global.msg[1] = * (The WHEEL of the BIKE became SPARED!)Wait for input ;
|
|
273
|
global.msg[2] = * (It turned into a SPARED TIRE!)Wait for input ;
|
|
274
|
global.msg[3] = * (... that didn't do anything though.)Wait for input ;
|
|
275
|
global.msg[4] = * (Seems that PACIFYing won't work!)Wait for inputClose Message ;
|
|
276
|
}
|
|
277
|
if (tirespare >= 2)
|
|
278
|
{
|
|
279
|
global.msg[0] = * (The PACIFY spell was absorbed by Lancer's bike!)Wait for input ;
|
|
280
|
global.msg[1] = * (Seems that nothing else interesting will happen!)Wait for inputClose Message ;
|
|
281
|
}
|
|
282
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
283
|
pacifycon = 5;
|
|
284
|
tirespare += 1;
|
|
285
|
}
|
|
286
|
}
|
|
287
|
if (pacifycon == 5 && !instance_exists(obj_writer))
|
|
288
|
{
|
|
289
|
global.spelldelay = 20;
|
|
290
|
with (obj_spellphase)
|
|
291
|
spelltimer = 18;
|
|
292
|
pacifycon = 0;
|
|
293
|
}
|
|
294
|
|
|
295
|
enum e__VW
|
|
296
|
{
|
|
297
|
XView,
|
|
298
|
YView,
|
|
299
|
WView,
|
|
300
|
HView,
|
|
301
|
Angle,
|
|
302
|
HBorder,
|
|
303
|
VBorder,
|
|
304
|
HSpeed,
|
|
305
|
VSpeed,
|
|
306
|
Object,
|
|
307
|
Visible,
|
|
308
|
XPort,
|
|
309
|
YPort,
|
|
310
|
WPort,
|
|
311
|
HPort,
|
|
312
|
Camera,
|
|
313
|
SurfaceID
|
|
314
|
}
|