|
1
|
if (global.monster[myself] == 1)
|
|
2
|
{
|
|
3
|
if (global.mnfight == 1 && talked == 0)
|
|
4
|
{
|
|
5
|
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;
} ();
|
|
6
|
if (!instance_exists(obj_darkener))
|
|
7
|
instance_create(0, 0, obj_darkener);
|
|
8
|
hb = instance_create(x - 100, y, obj_heartblcon);
|
|
9
|
hb.sprite_index = choose(spr_heartblcon_4, spr_heartblcon_5);
|
|
10
|
if (acting == 2)
|
|
11
|
hb.sprite_index = spr_heartblcon_2;
|
|
12
|
if (acting == 3)
|
|
13
|
hb.sprite_index = spr_heartblcon_3;
|
|
14
|
talked = 1;
|
|
15
|
talktimer = 0;
|
|
16
|
}
|
|
17
|
if (talked == 1 && global.mnfight == 1)
|
|
18
|
{
|
|
19
|
rtimer = 0;
|
|
20
|
if (button1_p() && talktimer > 15)
|
|
21
|
talktimer = talkmax;
|
|
22
|
talktimer += 1;
|
|
23
|
if (talktimer >= talkmax)
|
|
24
|
{
|
|
25
|
with (obj_heartblcon)
|
|
26
|
instance_destroy();
|
|
27
|
global.mnfight = 2;
|
|
28
|
}
|
|
29
|
if (global.mnfight == 2)
|
|
30
|
{
|
|
31
|
if (!instance_exists(obj_moveheart))
|
|
32
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
33
|
if (!instance_exists(obj_growtangle))
|
|
34
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
35
|
}
|
|
36
|
}
|
|
37
|
if (global.mnfight == 2 && attacked == 0)
|
|
38
|
{
|
|
39
|
with (obj_heartblcon)
|
|
40
|
instance_destroy();
|
|
41
|
rtimer += 1;
|
|
42
|
if (rtimer == 12)
|
|
43
|
{
|
|
44
|
rr = scr_monsterpopscr_monsterpop
function scr_monsterpop()
{
return global.monster[0] + global.monster[1] + global.monster[2];
} ();
|
|
45
|
global.turntimer = 180;
|
|
46
|
if (rr == 1)
|
|
47
|
{
|
|
48
|
dc = instance_create(x, y, obj_spinheart);
|
|
49
|
dc.joker = 1;
|
|
50
|
dc.type = 0;
|
|
51
|
dc.target = mytarget;
|
|
52
|
dc.damage = global.monsterat[myself] * 5;
|
|
53
|
}
|
|
54
|
else
|
|
55
|
{
|
|
56
|
dc = instance_create(x, y, obj_dbulletcontroller);
|
|
57
|
dc.type = 33;
|
|
58
|
dc.ratio = 1.3 - (instance_number(object_index) / 10);
|
|
59
|
dc.target = mytarget;
|
|
60
|
dc.damage = global.monsterat[myself] * 5;
|
|
61
|
if (instance_number(object_index) > 1 && instance_number(obj_dbulletcontroller) > 1)
|
|
62
|
{
|
|
63
|
with (dc)
|
|
64
|
instance_destroy();
|
|
65
|
}
|
|
66
|
}
|
|
67
|
turns += 1;
|
|
68
|
attacked = 1;
|
|
69
|
global.typer = 6;
|
|
70
|
global.fc = 0;
|
|
71
|
rr = choose(0, 1, 2, 3, 4);
|
|
72
|
if (rr == 0)
|
|
73
|
global.battlemsg[0] = * Head Hathy's body moves silently. ;
|
|
74
|
if (rr == 1)
|
|
75
|
global.battlemsg[0] = * Head Hathy showed no emotion at all. ;
|
|
76
|
if (rr == 2)
|
|
77
|
global.battlemsg[0] = * Head Hathy whispered something unhearable. ;
|
|
78
|
if (rr == 3)
|
|
79
|
global.battlemsg[0] = * Head Hathy's mind is an enigma. ;
|
|
80
|
if (rr == 4)
|
|
81
|
global.battlemsg[0] = * Smells like a lonely kiss. ;
|
|
82
|
if (global.monsterstatus[myself] == 1)
|
|
83
|
global.battlemsg[0] = * Head Hathy's beat slows. ;
|
|
84
|
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
|
|
85
|
global.battlemsg[0] = * Head Hathy's beat seems to stutter. ;
|
|
86
|
if (global.mercymod[myself] >= global.mercymax[myself])
|
|
87
|
global.msg[0] = * Head Hathy is skipping beats. ;
|
|
88
|
}
|
|
89
|
else
|
|
90
|
{
|
|
91
|
global.turntimer = 120;
|
|
92
|
}
|
|
93
|
}
|
|
94
|
if (global.mnfight == 2)
|
|
95
|
{
|
|
96
|
if (global.turntimer <= 1)
|
|
97
|
{
|
|
98
|
if (instance_exists(obj_hathyfightevent) && firstturn == 0)
|
|
99
|
{
|
|
100
|
if (checkhp1 <= global.hp[1])
|
|
101
|
{
|
|
102
|
if (checkhp2 <= global.hp[2])
|
|
103
|
{
|
|
104
|
with (obj_battlecontroller)
|
|
105
|
noreturn = 1;
|
|
106
|
with (obj_hathyfightevent)
|
|
107
|
con = 15;
|
|
108
|
}
|
|
109
|
}
|
|
110
|
}
|
|
111
|
firstturn = 1;
|
|
112
|
if (battlecancel == 1)
|
|
113
|
global.mercymod[myself] = 999;
|
|
114
|
}
|
|
115
|
}
|
|
116
|
}
|
|
117
|
if (global.myfight == 3)
|
|
118
|
{
|
|
119
|
xx = __view_get(e__VW.XView, 0);
|
|
120
|
yy = __view_get(e__VW.YView, 0);
|
|
121
|
if (acting == 1 && actcon == 0)
|
|
122
|
{
|
|
123
|
actcon = 1;
|
|
124
|
global.msg[0] = * HEAD HATHY - AT 8 DF 0 * It learned to hide its feelings...Delay 11 is that strength?Wait for inputClose Message ;
|
|
125
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
126
|
}
|
|
127
|
if (acting == 2 && actcon == 0)
|
|
128
|
{
|
|
129
|
rr = choose(0, 1, 2);
|
|
130
|
global.msg[0] = * You flirted with Head Hathy.Delay 11 * It was highly effective.Wait for inputClose Message ;
|
|
131
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (myself, 100);
|
|
132
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
133
|
battlecancel = 1;
|
|
134
|
actcon = 1;
|
|
135
|
}
|
|
136
|
if (acting == 3 && actcon == 0)
|
|
137
|
{
|
|
138
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (myself, 100);
|
|
139
|
actcon = 1;
|
|
140
|
if (global.flag[504 susie_flirted] == 0)
|
|
141
|
{
|
|
142
|
global.msg[0] = * You ordered SUSIE to flirt with the enemy!Wait for input ;
|
|
143
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (1, 0);
|
|
144
|
global.msg[2] = ;
|
|
145
|
global.msg[3] = Face 1* Annnnnnnnnd hell no.Wait for input ;
|
|
146
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (4, 6);
|
|
147
|
global.msg[5] = * Aww,Delay 11 Susie,Delay 11 it's OK if you don't know how!Wait for input ;
|
|
148
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (6, 7);
|
|
149
|
global.msg[7] = * What?Delay 11 Shut up,Delay 11 that's not the problem!Wait for input ;
|
|
150
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (8, 6);
|
|
151
|
global.msg[9] = * ... Are you sure?Wait for input ;
|
|
152
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (10, 7);
|
|
153
|
global.msg[11] = * Alright,Delay 11 LOOK,Delay 11 wise guy! I'll show you! Watch this!Wait for input ;
|
|
154
|
global.msg[12] = Face 0* AHEM.Wait for inputClose Message ;
|
|
155
|
actcon = 20;
|
|
156
|
acttimer = 0;
|
|
157
|
}
|
|
158
|
if (global.flag[504 susie_flirted] == 1)
|
|
159
|
{
|
|
160
|
global.msg[0] = * You ordered SUSIE to flirt with the enemy!Wait for input ;
|
|
161
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (1, 2);
|
|
162
|
global.msg[2] = * Hell nah.Delay 11 Let's see Ralsei do it.Wait for input ;
|
|
163
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (3, 1);
|
|
164
|
global.msg[4] = * I suppose if it can't be helped...!Wait for input ;
|
|
165
|
global.msg[5] = Face 0* Hathy,Delay 11 your beauty is just... transcendent.Wait for input ;
|
|
166
|
global.msg[6] = Face 8* Your hair is like a waterfall of...Wait for input ;
|
|
167
|
global.msg[7] = Face 1* ... wait,Delay 11 um,Delay 11 do you have hair,Delay 11 or...Wait for inputClose Message ;
|
|
168
|
actcon = 22;
|
|
169
|
}
|
|
170
|
if (global.flag[504 susie_flirted] == 2)
|
|
171
|
{
|
|
172
|
global.msg[0] = * You ordered SUSIE to flirt with the enemy!Wait for input ;
|
|
173
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (1, 7);
|
|
174
|
global.msg[2] = * Oh my god,Delay 11 Kris!!!Delay 11 I can't!!Delay 11 Do it yourself!!Wait for inputClose Message ;
|
|
175
|
actcon = 25;
|
|
176
|
}
|
|
177
|
if (global.flag[504 susie_flirted] >= 3)
|
|
178
|
{
|
|
179
|
global.msg[0] = * You flirted with the enemies.Delay 11 It worked!Delay 11 (Susie did not help.)Wait for inputClose Message ;
|
|
180
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (0, 100);
|
|
181
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (1, 100);
|
|
182
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (2, 100);
|
|
183
|
}
|
|
184
|
global.flag[504 susie_flirted] += 1;
|
|
185
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
186
|
}
|
|
187
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
188
|
{
|
|
189
|
actcon = 0;
|
|
190
|
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();
}
}
} ();
|
|
191
|
if (delete_n == 1)
|
|
192
|
instance_destroy();
|
|
193
|
}
|
|
194
|
if (actcon == 20 && !instance_exists(obj_writer))
|
|
195
|
{
|
|
196
|
snd_pause(global.batmusic[0]);
|
|
197
|
acttimer += 1;
|
|
198
|
if (acttimer >= 60)
|
|
199
|
actcon = 21;
|
|
200
|
}
|
|
201
|
if (actcon == 21)
|
|
202
|
{
|
|
203
|
global.fe = 2;
|
|
204
|
global.msg[0] = * So,Delay 11 uh...Wait for input ;
|
|
205
|
global.msg[1] = * Come here...Delay 11 often?Wait for inputClose Message ;
|
|
206
|
scr_battletextscr_battletext
function scr_battletext()
{
xx = __view_get(e__VW.XView, 0);
yy = __view_get(e__VW.YView, 0);
if (global.fc != 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
if (global.fc == 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
myface = instance_create(xx + 26, yy + 380, obj_face);
with (battlewriter)
{
dialoguer = 1;
facer = 1;
if (global.fc == 0 && originalcharline == 33)
charline = 26;
}
return battlewriter;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ();
|
|
207
|
actcon = 22;
|
|
208
|
}
|
|
209
|
if (actcon == 22 && !instance_exists(obj_writer))
|
|
210
|
{
|
|
211
|
snd_resume(global.batmusic[0]);
|
|
212
|
hspeed = 6;
|
|
213
|
global.msg[0] = * (Head Hathy felt awkward and left...)Wait for input ;
|
|
214
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (1, 7);
|
|
215
|
global.msg[2] = * HEY,Delay 11 GET BACK HERE AND LET ME FLIRT WITH YOU!!!Wait for inputClose Message ;
|
|
216
|
if (global.flag[504 susie_flirted] == 2)
|
|
217
|
{
|
|
218
|
global.msg[0] = * (Head Hathy felt awkward and left...)Wait for input ;
|
|
219
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (1, 3);
|
|
220
|
global.msg[2] = * Oh,Delay 11 oh dear!Delay 11 Wait!!Wait for input ;
|
|
221
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (3, 2);
|
|
222
|
global.msg[4] = * Not so easy,Delay 11 huh!?Wait for inputClose Message ;
|
|
223
|
}
|
|
224
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
225
|
delete_n = 1;
|
|
226
|
actcon = 23;
|
|
227
|
global.monster[myself] = 0;
|
|
228
|
}
|
|
229
|
if (actcon == 23)
|
|
230
|
{
|
|
231
|
if (x >= (__view_get(e__VW.XView, 0) + 640))
|
|
232
|
actcon = 1;
|
|
233
|
}
|
|
234
|
if (actcon == 25 && !instance_exists(obj_writer))
|
|
235
|
{
|
|
236
|
global.msg[0] = * You said some sweet lines. The enemies were deeply enamored!Wait for inputClose Message ;
|
|
237
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
238
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (0, 100);
|
|
239
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (1, 100);
|
|
240
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (2, 100);
|
|
241
|
actcon = 1;
|
|
242
|
}
|
|
243
|
}
|
|
244
|
if (global.myfight == 7)
|
|
245
|
hspeed = 15;
|
|
246
|
|
|
247
|
enum e__VW
|
|
248
|
{
|
|
249
|
XView,
|
|
250
|
YView,
|
|
251
|
WView,
|
|
252
|
HView,
|
|
253
|
Angle,
|
|
254
|
HBorder,
|
|
255
|
VBorder,
|
|
256
|
HSpeed,
|
|
257
|
VSpeed,
|
|
258
|
Object,
|
|
259
|
Visible,
|
|
260
|
XPort,
|
|
261
|
YPort,
|
|
262
|
WPort,
|
|
263
|
HPort,
|
|
264
|
Camera,
|
|
265
|
SurfaceID
|
|
266
|
}
|