|
1
|
if (global.chapter == 3)
|
|
2
|
{
|
|
3
|
if (i_ex(obj_shadowman_sharpshoot_cursor) && obj_shadowman_sharpshoot_cursor.disablesbattleui == true)
|
|
4
|
exit;
|
|
5
|
if (instance_exists(obj_knight_enemy) && obj_knight_enemy.end_cutscene_version > 0)
|
|
6
|
exit;
|
|
7
|
if (i_ex(obj_actor_tenna) && obj_actor_tenna.threepartmode == 1 && i_ex(obj_lightemup_controller))
|
|
8
|
{
|
|
9
|
}
|
|
10
|
else if (i_ex(obj_tenna_zoom) && obj_tenna_zoom.minigameinsanityintro)
|
|
11
|
{
|
|
12
|
}
|
|
13
|
else
|
|
14
|
{
|
|
15
|
if (i_ex(obj_susiezilla_gamecontroller))
|
|
16
|
exit;
|
|
17
|
if (i_ex(obj_chefs_game))
|
|
18
|
exit;
|
|
19
|
if (i_ex(obj_rhythmgame))
|
|
20
|
exit;
|
|
21
|
if (i_ex(obj_tenna_minigame_ui) && obj_tenna_minigame_ui.enabled == true)
|
|
22
|
exit;
|
|
23
|
if (i_ex(obj_shootout_controller) && i_ex(obj_tenna_enemy))
|
|
24
|
exit;
|
|
25
|
if (i_ex(obj_tenna_zoom) && obj_tenna_zoom.con == 0 && sprite_exists(obj_tenna_zoom.screenshot))
|
|
26
|
exit;
|
|
27
|
}
|
|
28
|
if (room == room_board_1 || room == room_board_2 || room == room_board_3)
|
|
29
|
{
|
|
30
|
if ((instance_exists(obj_tennabattleconvo_controller) && obj_tennabattleconvo_controller.introcon < 2) || (instance_exists(obj_elnina_lanino_controller) && obj_elnina_lanino_controller.intro < 4))
|
|
31
|
{
|
|
32
|
}
|
|
33
|
else
|
|
34
|
{
|
|
35
|
battletimer++;
|
|
36
|
}
|
|
37
|
if (battletimer == 30)
|
|
38
|
{
|
|
39
|
battletimer = 0;
|
|
40
|
battleseconds++;
|
|
41
|
if (battleseconds == 60)
|
|
42
|
{
|
|
43
|
battleseconds = 0;
|
|
44
|
battleminutes++;
|
|
45
|
}
|
|
46
|
}
|
|
47
|
var _first_digit = battleseconds div 10;
|
|
48
|
var _second_digit = battleseconds % 10;
|
|
49
|
var _col = merge_color(c_red, c_red, 1);
|
|
50
|
var _xx = 310;
|
|
51
|
var _yy = 20;
|
|
52
|
if (!i_ex(obj_shadowman_sharpshoot_cursor) && !i_ex(obj_elnina_lanino_controller))
|
|
53
|
{
|
|
54
|
if (battleminutes < 3)
|
|
55
|
{
|
|
56
|
}
|
|
57
|
else
|
|
58
|
{
|
|
59
|
}
|
|
60
|
}
|
|
61
|
}
|
|
62
|
}
|
|
63
|
xx = __view_get(e__VW.XView, 0);
|
|
64
|
yy = __view_get(e__VW.YView, 0);
|
|
65
|
if (i_ex(obj_tenna_zoom) && obj_tenna_zoom.minigameinsanityintro)
|
|
66
|
{
|
|
67
|
ypostenna = lerp(ypostenna, 58, 0.4);
|
|
68
|
yy = __view_get(e__VW.YView, 0) + ypostenna;
|
|
69
|
depth = -999999999;
|
|
70
|
}
|
|
71
|
tpoff = (tp - tpy) + yy;
|
|
72
|
bpoff = -bp + bpy + yy;
|
|
73
|
var spell_offset = langopt(500, 496);
|
|
74
|
if (intro == 1)
|
|
75
|
{
|
|
76
|
if (bp < (bpy - 1))
|
|
77
|
{
|
|
78
|
if ((bpy - bp) < 40)
|
|
79
|
bp += round((bpy - bp) / 2.5);
|
|
80
|
else
|
|
81
|
bp += 30;
|
|
82
|
}
|
|
83
|
else
|
|
84
|
{
|
|
85
|
bp = bpy;
|
|
86
|
}
|
|
87
|
if (bp == bpy)
|
|
88
|
intro = 0;
|
|
89
|
}
|
|
90
|
if (intro == 2)
|
|
91
|
{
|
|
92
|
if (bp > 0)
|
|
93
|
{
|
|
94
|
if (round((bpy - bp) / 5) > 15)
|
|
95
|
bp -= round((bpy - bp) / 2.5);
|
|
96
|
else
|
|
97
|
bp -= 30;
|
|
98
|
}
|
|
99
|
else
|
|
100
|
{
|
|
101
|
bp = 0;
|
|
102
|
}
|
|
103
|
}
|
|
104
|
if (global.chapter == 3 && i_ex(obj_rouxls_ch3_enemy) && obj_rouxls_ch3_enemy.intro >= 2 && spadebuttonenabled == true && global.bmenuno == 0 && global.myfight == 0)
|
|
105
|
{
|
|
106
|
var lowhealth = false;
|
|
107
|
if (global.hp[1] < (global.maxhp[1] / 3))
|
|
108
|
lowhealth = true;
|
|
109
|
if (global.hp[2] < (global.maxhp[2] / 3))
|
|
110
|
lowhealth = true;
|
|
111
|
if (global.hp[3] < (global.maxhp[3] / 3))
|
|
112
|
lowhealth = true;
|
|
113
|
if ((global.hp[1] + global.hp[2] + global.hp[3]) < ((global.maxhp[1] + global.maxhp[2] + global.maxhp[3]) / 2))
|
|
114
|
lowhealth = true;
|
|
115
|
if (rouxlserrorcon == 0 && rouxlstelegraphcon == 0 && rouxlsbuttoncount > 0 && (rouxlsbuttoncount - 1) == (global.bmenucoord[0][global.charturn] + (rouxlsbuttoncount_y * 5)))
|
|
116
|
{
|
|
117
|
rouxlserrorcon = 1;
|
|
118
|
snd_play(snd_error);
|
|
119
|
}
|
|
120
|
if (rouxlserrorcon == 0 && rouxlstelegraphcon == 0 && rouxlsbuttoncount2 > 0 && (rouxlsbuttoncount2 - 1) == (global.bmenucoord[0][global.charturn] + (rouxlsbuttoncount_y * 5)))
|
|
121
|
{
|
|
122
|
rouxlserrorcon = 1;
|
|
123
|
snd_play(snd_error);
|
|
124
|
}
|
|
125
|
if (rouxlserrorcon == 1)
|
|
126
|
{
|
|
127
|
rouxlserrortimer++;
|
|
128
|
if (rouxlserrortimer >= 10)
|
|
129
|
{
|
|
130
|
spadesuccesscon = 0;
|
|
131
|
spadebuttontimer = 0;
|
|
132
|
rouxlserrortimer = 0;
|
|
133
|
rouxlserrorcon = 0;
|
|
134
|
global.bmenuno = 0;
|
|
135
|
scr_nextheroscr_nexthero
function scr_nexthero()
{
moveswapped = 0;
prevturn = global.charturn;
if (global.charturn == 0)
{
moveswapped = 1;
if (global.charmove[1] == 1 && scr_charcan(1))
global.charturn = 1;
else if (global.charmove[2] == 1 && scr_charcan(2))
global.charturn = 2;
else
scr_endturn();
}
if (global.charturn == 1 && moveswapped == 0)
{
moveswapped = 1;
if (scr_charcan(2) && global.acting[1] == 0)
global.charturn = 2;
else
scr_endturn();
}
var endturn = false;
if (global.charturn == 2 && global.chapter == 3 && i_ex(obj_heroralsei) && (obj_heroralsei.sprite_index == spr_ralseib_yarn_1 || obj_heroralsei.sprite_index == spr_ralseib_yarn_2))
endturn = true;
if ((global.charturn == 2 && moveswapped == 0) || endturn == true)
scr_endturn();
if (moveswapped == 1)
global.bmenuno = 0;
if (global.charturn > 0)
{
global.temptension[global.charturn] = global.tension;
for (i = 0; i < 12; i += 1)
tempitem[i][global.charturn] = tempitem[i][prevturn];
}
} ();
|
|
136
|
global.bmenucoord[0][0] = 2;
|
|
137
|
global.bmenucoord[0][1] = 2;
|
|
138
|
global.bmenucoord[0][2] = 2;
|
|
139
|
if (rouxlsgridenabled == true)
|
|
140
|
{
|
|
141
|
rouxlsbuttoncount_y = 4;
|
|
142
|
buttonorder = 0;
|
|
143
|
rouxlsbuttoncount = choose(0, -1, -3, -4);
|
|
144
|
}
|
|
145
|
if (obj_rouxls_ch3_enemy.phase > 1)
|
|
146
|
{
|
|
147
|
rouxlsbuttondirection = choose(0, 90, 180, 270);
|
|
148
|
rouxlsbuttondirection = 270;
|
|
149
|
if (rouxlsbuttondirection == 0)
|
|
150
|
rouxlsbuttoncount = choose(6, 11, 16);
|
|
151
|
if (rouxlsbuttondirection == 90)
|
|
152
|
rouxlsbuttoncount = choose(21, 22, 23, 24, 25);
|
|
153
|
if (rouxlsbuttondirection == 180)
|
|
154
|
rouxlsbuttoncount = choose(5, 10, 15, 20, 25);
|
|
155
|
if (rouxlsbuttondirection == 270)
|
|
156
|
rouxlsbuttoncount = rouxlsbuttoncount == choose(0, -1, -3, -4);
|
|
157
|
}
|
|
158
|
}
|
|
159
|
if (rouxlsbuttoncount == 1 && (heartbuttoncount == 1 || heartbuttoncount == 6 || heartbuttoncount == 11 || heartbuttoncount == 16 || heartbuttoncount == 21 || heartbuttoncount == 26))
|
|
160
|
rouxlsbuttoncount++;
|
|
161
|
if (rouxlsbuttoncount == 2 && (heartbuttoncount == 2 || heartbuttoncount == 7 || heartbuttoncount == 12 || heartbuttoncount == 17 || heartbuttoncount == 22 || heartbuttoncount == 27))
|
|
162
|
rouxlsbuttoncount++;
|
|
163
|
if (rouxlsbuttoncount == 3 && (heartbuttoncount == 3 || heartbuttoncount == 8 || heartbuttoncount == 13 || heartbuttoncount == 18 || heartbuttoncount == 23 || heartbuttoncount == 28))
|
|
164
|
rouxlsbuttoncount++;
|
|
165
|
if (rouxlsbuttoncount == 4 && (heartbuttoncount == 4 || heartbuttoncount == 9 || heartbuttoncount == 14 || heartbuttoncount == 19 || heartbuttoncount == 24 || heartbuttoncount == 29))
|
|
166
|
rouxlsbuttoncount++;
|
|
167
|
if (rouxlsbuttoncount == 5 && (heartbuttoncount == 5 || heartbuttoncount == 10 || heartbuttoncount == 15 || heartbuttoncount == 20 || heartbuttoncount == 25 || heartbuttoncount == 30))
|
|
168
|
rouxlsbuttoncount = 1;
|
|
169
|
if (rouxlsbuttoncount == 1 && (spadebuttoncount == 1 || spadebuttoncount == 6 || spadebuttoncount == 11 || spadebuttoncount == 16 || spadebuttoncount == 21 || spadebuttoncount == 26))
|
|
170
|
rouxlsbuttoncount++;
|
|
171
|
if (rouxlsbuttoncount == 2 && (spadebuttoncount == 2 || spadebuttoncount == 7 || spadebuttoncount == 12 || spadebuttoncount == 17 || spadebuttoncount == 22 || spadebuttoncount == 27))
|
|
172
|
rouxlsbuttoncount++;
|
|
173
|
if (rouxlsbuttoncount == 3 && (spadebuttoncount == 3 || spadebuttoncount == 8 || spadebuttoncount == 13 || spadebuttoncount == 18 || spadebuttoncount == 23 || spadebuttoncount == 28))
|
|
174
|
rouxlsbuttoncount++;
|
|
175
|
if (rouxlsbuttoncount == 4 && (spadebuttoncount == 4 || spadebuttoncount == 9 || spadebuttoncount == 14 || spadebuttoncount == 19 || spadebuttoncount == 24 || spadebuttoncount == 29))
|
|
176
|
rouxlsbuttoncount++;
|
|
177
|
if (rouxlsbuttoncount == 5 && (spadebuttoncount == 5 || spadebuttoncount == 10 || spadebuttoncount == 15 || spadebuttoncount == 20 || spadebuttoncount == 25 || spadebuttoncount == 30))
|
|
178
|
rouxlsbuttoncount = 1;
|
|
179
|
}
|
|
180
|
if (rouxlserrorcon == 0)
|
|
181
|
{
|
|
182
|
spadebuttontimer++;
|
|
183
|
if (obj_rouxls_ch3_enemy.phase > 1)
|
|
184
|
rouxlsbuttontimer++;
|
|
185
|
}
|
|
186
|
if (!lowhealth)
|
|
187
|
heartbuttoncount = -6;
|
|
188
|
else if (lowhealth == true && obj_rouxls_ch3_enemy.phase > 1)
|
|
189
|
heartbuttontimer++;
|
|
190
|
if (spadebuttontimer >= 10 && spadetelegraphcon == 1)
|
|
191
|
{
|
|
192
|
spadetelegraphcon = 0;
|
|
193
|
spadebuttontimer = 0;
|
|
194
|
}
|
|
195
|
else if (spadebuttontimer >= 10 && spadesuccesscon == 1)
|
|
196
|
{
|
|
197
|
norouxlsbutton = false;
|
|
198
|
rouxlserrortimer = 0;
|
|
199
|
rouxlserrorcon = 0;
|
|
200
|
spadesuccesscon = 0;
|
|
201
|
spadesuccesstimer = 0;
|
|
202
|
global.bmenucoord[0][0] = 2;
|
|
203
|
global.bmenucoord[0][1] = 2;
|
|
204
|
global.bmenucoord[0][2] = 2;
|
|
205
|
if (rouxlsgridenabled == true)
|
|
206
|
{
|
|
207
|
rouxlsbuttoncount_y = 4;
|
|
208
|
buttonorder = 0;
|
|
209
|
rouxlsbuttoncount = choose(0, -1, -3, -4);
|
|
210
|
spadebuttoncount = -6;
|
|
211
|
}
|
|
212
|
spadefail = false;
|
|
213
|
if (rouxlsbuttonendcon == 0)
|
|
214
|
{
|
|
215
|
scr_nextheroscr_nexthero
function scr_nexthero()
{
moveswapped = 0;
prevturn = global.charturn;
if (global.charturn == 0)
{
moveswapped = 1;
if (global.charmove[1] == 1 && scr_charcan(1))
global.charturn = 1;
else if (global.charmove[2] == 1 && scr_charcan(2))
global.charturn = 2;
else
scr_endturn();
}
if (global.charturn == 1 && moveswapped == 0)
{
moveswapped = 1;
if (scr_charcan(2) && global.acting[1] == 0)
global.charturn = 2;
else
scr_endturn();
}
var endturn = false;
if (global.charturn == 2 && global.chapter == 3 && i_ex(obj_heroralsei) && (obj_heroralsei.sprite_index == spr_ralseib_yarn_1 || obj_heroralsei.sprite_index == spr_ralseib_yarn_2))
endturn = true;
if ((global.charturn == 2 && moveswapped == 0) || endturn == true)
scr_endturn();
if (moveswapped == 1)
global.bmenuno = 0;
if (global.charturn > 0)
{
global.temptension[global.charturn] = global.tension;
for (i = 0; i < 12; i += 1)
tempitem[i][global.charturn] = tempitem[i][prevturn];
}
} ();
|
|
216
|
}
|
|
217
|
else
|
|
218
|
{
|
|
219
|
global.charturn = 0;
|
|
220
|
global.bmenuno = 0;
|
|
221
|
}
|
|
222
|
}
|
|
223
|
else if (((spadebuttontimer >= 7 && buttonspeed == 0) || (spadebuttontimer >= 5 && buttonspeed == 1) || (spadebuttontimer >= 3 && buttonspeed == 2)) && spadetelegraphcon == 0 && spadesuccesscon == 0)
|
|
224
|
{
|
|
225
|
spadebuttontimer = 0;
|
|
226
|
if (dogcon != 2 && spadebuttoncount != -6)
|
|
227
|
snd_play_x(snd_menumove, 0.6, 1.4);
|
|
228
|
if (spadebuttondirection == 0)
|
|
229
|
spadebuttoncount++;
|
|
230
|
if (spadebuttondirection == 90)
|
|
231
|
spadebuttoncount -= 5;
|
|
232
|
if (spadebuttondirection == 180)
|
|
233
|
spadebuttoncount--;
|
|
234
|
if (spadebuttondirection == 270 && spadebuttoncount != -6)
|
|
235
|
spadebuttoncount += 5;
|
|
236
|
if (rouxlsgridenabled == false && spadebuttoncount > 5)
|
|
237
|
{
|
|
238
|
spadebuttoncount = 1;
|
|
239
|
}
|
|
240
|
else if ((spadebuttondirection == 0 && (spadebuttoncount == 6 || spadebuttoncount == 11 || spadebuttoncount == 16 || spadebuttoncount == 21 || spadebuttoncount == 26)) || (spadebuttondirection == 90 && (spadebuttoncount == -4 || spadebuttoncount == -3 || spadebuttoncount == -2 || spadebuttoncount == -1 || spadebuttoncount == 0)) || (spadebuttondirection == 180 && (spadebuttoncount == 0 || spadebuttoncount == 5 || spadebuttoncount == 10 || spadebuttoncount == 15 || spadebuttoncount == 20)) || (spadebuttondirection == 270 && (spadebuttoncount == 26 || spadebuttoncount == 27 || spadebuttoncount == 28 || spadebuttoncount == 29 || spadebuttoncount == 30)))
|
|
241
|
{
|
|
242
|
buttonorder = 0;
|
|
243
|
spadebuttoncount = -6;
|
|
244
|
rouxlsbuttondirection = 270;
|
|
245
|
rouxlsbuttoncount = choose(1, 2, 3, 4, 5);
|
|
246
|
rouxlsbuttontimer = 0;
|
|
247
|
}
|
|
248
|
if (rouxlsbuttoncount == 1 && (heartbuttoncount == 1 || heartbuttoncount == 6 || heartbuttoncount == 11 || heartbuttoncount == 16 || heartbuttoncount == 21 || heartbuttoncount == 26))
|
|
249
|
rouxlsbuttoncount++;
|
|
250
|
if (rouxlsbuttoncount == 2 && (heartbuttoncount == 2 || heartbuttoncount == 7 || heartbuttoncount == 12 || heartbuttoncount == 17 || heartbuttoncount == 22 || heartbuttoncount == 27))
|
|
251
|
rouxlsbuttoncount++;
|
|
252
|
if (rouxlsbuttoncount == 3 && (heartbuttoncount == 3 || heartbuttoncount == 8 || heartbuttoncount == 13 || heartbuttoncount == 18 || heartbuttoncount == 23 || heartbuttoncount == 28))
|
|
253
|
rouxlsbuttoncount++;
|
|
254
|
if (rouxlsbuttoncount == 4 && (heartbuttoncount == 4 || heartbuttoncount == 9 || heartbuttoncount == 14 || heartbuttoncount == 19 || heartbuttoncount == 24 || heartbuttoncount == 29))
|
|
255
|
rouxlsbuttoncount++;
|
|
256
|
if (rouxlsbuttoncount == 5 && (heartbuttoncount == 5 || heartbuttoncount == 10 || heartbuttoncount == 15 || heartbuttoncount == 20 || heartbuttoncount == 25 || heartbuttoncount == 30))
|
|
257
|
rouxlsbuttoncount = 1;
|
|
258
|
if (rouxlsbuttoncount == 1 && (spadebuttoncount == 1 || spadebuttoncount == 6 || spadebuttoncount == 11 || spadebuttoncount == 16 || spadebuttoncount == 21 || spadebuttoncount == 26))
|
|
259
|
rouxlsbuttoncount++;
|
|
260
|
if (rouxlsbuttoncount == 2 && (spadebuttoncount == 2 || spadebuttoncount == 7 || spadebuttoncount == 12 || spadebuttoncount == 17 || spadebuttoncount == 22 || spadebuttoncount == 27))
|
|
261
|
rouxlsbuttoncount++;
|
|
262
|
if (rouxlsbuttoncount == 3 && (spadebuttoncount == 3 || spadebuttoncount == 8 || spadebuttoncount == 13 || spadebuttoncount == 18 || spadebuttoncount == 23 || spadebuttoncount == 28))
|
|
263
|
rouxlsbuttoncount++;
|
|
264
|
if (rouxlsbuttoncount == 4 && (spadebuttoncount == 4 || spadebuttoncount == 9 || spadebuttoncount == 14 || spadebuttoncount == 19 || spadebuttoncount == 24 || spadebuttoncount == 29))
|
|
265
|
rouxlsbuttoncount++;
|
|
266
|
if (rouxlsbuttoncount == 5 && (spadebuttoncount == 5 || spadebuttoncount == 10 || spadebuttoncount == 15 || spadebuttoncount == 20 || spadebuttoncount == 25 || spadebuttoncount == 30))
|
|
267
|
rouxlsbuttoncount = 1;
|
|
268
|
}
|
|
269
|
if (heartbuttontimer >= 10 && heartsuccesscon == 1)
|
|
270
|
{
|
|
271
|
caster = 1;
|
|
272
|
for (i = 0; i < 3; i += 1)
|
|
273
|
{
|
|
274
|
with (global.charinstance[i])
|
|
275
|
{
|
|
276
|
var _heal = round(global.maxhp[global.char[myself]] / 2);
|
|
277
|
ha = instance_create(x, y, obj_healanim);
|
|
278
|
ha.target = id;
|
|
279
|
dmgwr = scr_dmgwriter_selfcharscr_dmgwriter_selfchar
function scr_dmgwriter_selfchar()
{
return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter);
} ();
|
|
280
|
dmgwr.damage = _heal;
|
|
281
|
scr_healscr_heal
function scr_heal(arg0, arg1)
{
abovemaxhp = 0;
belowzero = 0;
hltarget = global.char[arg0];
_curhp = global.hp[hltarget];
if (global.hp[hltarget] <= 0)
belowzero = 1;
if (global.hp[hltarget] > global.maxhp[hltarget])
abovemaxhp = 1;
if (abovemaxhp == 0)
{
global.hp[hltarget] += arg1;
if (global.hp[hltarget] > global.maxhp[hltarget])
global.hp[hltarget] = global.maxhp[hltarget];
}
if (belowzero == 1 && global.hp[hltarget] >= 0)
{
if (global.hp[hltarget] < ceil(global.maxhp[hltarget] / 6))
global.hp[hltarget] = ceil(global.maxhp[hltarget] / 6);
scr_revive(arg0);
}
snd_stop(snd_power);
snd_play(snd_power);
return global.hp[hltarget] - _curhp;
} (other.i, _heal);
|
|
282
|
with (dmgwr)
|
|
283
|
{
|
|
284
|
delay = 8;
|
|
285
|
type = 3;
|
|
286
|
}
|
|
287
|
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
|
|
288
|
{
|
|
289
|
with (dmgwr)
|
|
290
|
specialmessage = 3;
|
|
291
|
}
|
|
292
|
tu += 1;
|
|
293
|
}
|
|
294
|
}
|
|
295
|
heartsuccesscon = 0;
|
|
296
|
buttonorder = 0;
|
|
297
|
spadebuttoncount = -6;
|
|
298
|
rouxlsbuttondirection = 270;
|
|
299
|
rouxlsbuttoncount = choose(1, 2, 3, 4, 5);
|
|
300
|
if (rouxlsbuttoncount == 1 && (heartbuttoncount == 1 || heartbuttoncount == 6 || heartbuttoncount == 11 || heartbuttoncount == 16 || heartbuttoncount == 21 || heartbuttoncount == 26))
|
|
301
|
rouxlsbuttoncount++;
|
|
302
|
if (rouxlsbuttoncount == 2 && (heartbuttoncount == 2 || heartbuttoncount == 7 || heartbuttoncount == 12 || heartbuttoncount == 17 || heartbuttoncount == 22 || heartbuttoncount == 27))
|
|
303
|
rouxlsbuttoncount++;
|
|
304
|
if (rouxlsbuttoncount == 3 && (heartbuttoncount == 3 || heartbuttoncount == 8 || heartbuttoncount == 13 || heartbuttoncount == 18 || heartbuttoncount == 23 || heartbuttoncount == 28))
|
|
305
|
rouxlsbuttoncount++;
|
|
306
|
if (rouxlsbuttoncount == 4 && (heartbuttoncount == 4 || heartbuttoncount == 9 || heartbuttoncount == 14 || heartbuttoncount == 19 || heartbuttoncount == 24 || heartbuttoncount == 29))
|
|
307
|
rouxlsbuttoncount++;
|
|
308
|
if (rouxlsbuttoncount == 5 && (heartbuttoncount == 5 || heartbuttoncount == 10 || heartbuttoncount == 15 || heartbuttoncount == 20 || heartbuttoncount == 25 || heartbuttoncount == 30))
|
|
309
|
rouxlsbuttoncount = 1;
|
|
310
|
if (rouxlsbuttoncount == 1 && (spadebuttoncount == 1 || spadebuttoncount == 6 || spadebuttoncount == 11 || spadebuttoncount == 16 || spadebuttoncount == 21 || spadebuttoncount == 26))
|
|
311
|
rouxlsbuttoncount++;
|
|
312
|
if (rouxlsbuttoncount == 2 && (spadebuttoncount == 2 || spadebuttoncount == 7 || spadebuttoncount == 12 || spadebuttoncount == 17 || spadebuttoncount == 22 || spadebuttoncount == 27))
|
|
313
|
rouxlsbuttoncount++;
|
|
314
|
if (rouxlsbuttoncount == 3 && (spadebuttoncount == 3 || spadebuttoncount == 8 || spadebuttoncount == 13 || spadebuttoncount == 18 || spadebuttoncount == 23 || spadebuttoncount == 28))
|
|
315
|
rouxlsbuttoncount++;
|
|
316
|
if (rouxlsbuttoncount == 4 && (spadebuttoncount == 4 || spadebuttoncount == 9 || spadebuttoncount == 14 || spadebuttoncount == 19 || spadebuttoncount == 24 || spadebuttoncount == 29))
|
|
317
|
rouxlsbuttoncount++;
|
|
318
|
if (rouxlsbuttoncount == 5 && (spadebuttoncount == 5 || spadebuttoncount == 10 || spadebuttoncount == 15 || spadebuttoncount == 20 || spadebuttoncount == 25 || spadebuttoncount == 30))
|
|
319
|
rouxlsbuttoncount = 1;
|
|
320
|
heartsuccesscon = 0;
|
|
321
|
heartsuccesstimer = 0;
|
|
322
|
global.bmenucoord[0][0] = 2;
|
|
323
|
global.bmenucoord[0][1] = 2;
|
|
324
|
global.bmenucoord[0][2] = 2;
|
|
325
|
if (rouxlsgridenabled == true)
|
|
326
|
{
|
|
327
|
rouxlsbuttoncount_y = 4;
|
|
328
|
buttonorder = 0;
|
|
329
|
rouxlsbuttoncount = choose(0, -1, -3, -4);
|
|
330
|
spadebuttoncount = -6;
|
|
331
|
}
|
|
332
|
}
|
|
333
|
else if (heartbuttontimer >= 7 && spadetelegraphcon == 0 && spadesuccesscon == 0)
|
|
334
|
{
|
|
335
|
heartbuttontimer = 0;
|
|
336
|
if (dogcon != 2 && heartbuttoncount != -6)
|
|
337
|
snd_play_x(snd_menumove, 0.6, 1.4);
|
|
338
|
if (heartbuttondirection == 0)
|
|
339
|
heartbuttoncount++;
|
|
340
|
if (heartbuttondirection == 90)
|
|
341
|
heartbuttoncount -= 5;
|
|
342
|
if (heartbuttondirection == 180)
|
|
343
|
heartbuttoncount--;
|
|
344
|
if (heartbuttondirection == 270)
|
|
345
|
heartbuttoncount += 5;
|
|
346
|
if (rouxlsgridenabled == false && heartbuttoncount > 5)
|
|
347
|
{
|
|
348
|
heartbuttoncount = 1;
|
|
349
|
}
|
|
350
|
else if ((heartbuttondirection == 0 && (heartbuttoncount == 6 || heartbuttoncount == 11 || heartbuttoncount == 16 || heartbuttoncount == 21 || heartbuttoncount == 26)) || (heartbuttondirection == 90 && (heartbuttoncount == -4 || heartbuttoncount == -3 || heartbuttoncount == -2 || heartbuttoncount == -1 || heartbuttoncount == 0)) || (heartbuttondirection == 180 && (heartbuttoncount == 0 || heartbuttoncount == 5 || heartbuttoncount == 10 || heartbuttoncount == 15 || heartbuttoncount == 20)) || (heartbuttondirection == 270 && (heartbuttoncount == 26 || heartbuttoncount == 27 || heartbuttoncount == 28 || heartbuttoncount == 29 || heartbuttoncount == 30)))
|
|
351
|
{
|
|
352
|
heartbuttoncount = -6;
|
|
353
|
heartbuttondirection = 270;
|
|
354
|
heartbuttoncount = choose(1, 2, 3, 4, 5);
|
|
355
|
}
|
|
356
|
if (heartbuttoncount == 1 && (rouxlsbuttoncount == 1 || rouxlsbuttoncount == 6 || rouxlsbuttoncount == 11 || rouxlsbuttoncount == 16 || rouxlsbuttoncount == 21 || rouxlsbuttoncount == 26))
|
|
357
|
heartbuttoncount++;
|
|
358
|
if (heartbuttoncount == 2 && (rouxlsbuttoncount == 2 || rouxlsbuttoncount == 7 || rouxlsbuttoncount == 12 || rouxlsbuttoncount == 17 || rouxlsbuttoncount == 22 || rouxlsbuttoncount == 27))
|
|
359
|
heartbuttoncount++;
|
|
360
|
if (heartbuttoncount == 3 && (rouxlsbuttoncount == 3 || rouxlsbuttoncount == 8 || rouxlsbuttoncount == 13 || rouxlsbuttoncount == 18 || rouxlsbuttoncount == 23 || rouxlsbuttoncount == 28))
|
|
361
|
heartbuttoncount++;
|
|
362
|
if (heartbuttoncount == 4 && (rouxlsbuttoncount == 4 || rouxlsbuttoncount == 9 || rouxlsbuttoncount == 14 || rouxlsbuttoncount == 19 || rouxlsbuttoncount == 24 || rouxlsbuttoncount == 29))
|
|
363
|
heartbuttoncount++;
|
|
364
|
if (heartbuttoncount == 5 && (rouxlsbuttoncount == 5 || rouxlsbuttoncount == 10 || rouxlsbuttoncount == 15 || rouxlsbuttoncount == 20 || rouxlsbuttoncount == 25 || rouxlsbuttoncount == 30))
|
|
365
|
heartbuttoncount = 1;
|
|
366
|
if (heartbuttoncount == 1 && (spadebuttoncount == 1 || spadebuttoncount == 6 || spadebuttoncount == 11 || spadebuttoncount == 16 || spadebuttoncount == 21 || spadebuttoncount == 26))
|
|
367
|
heartbuttoncount++;
|
|
368
|
if (heartbuttoncount == 2 && (spadebuttoncount == 2 || spadebuttoncount == 7 || spadebuttoncount == 12 || spadebuttoncount == 17 || spadebuttoncount == 22 || spadebuttoncount == 27))
|
|
369
|
heartbuttoncount++;
|
|
370
|
if (heartbuttoncount == 3 && (spadebuttoncount == 3 || spadebuttoncount == 8 || spadebuttoncount == 13 || spadebuttoncount == 18 || spadebuttoncount == 23 || spadebuttoncount == 28))
|
|
371
|
heartbuttoncount++;
|
|
372
|
if (heartbuttoncount == 4 && (spadebuttoncount == 4 || spadebuttoncount == 9 || spadebuttoncount == 14 || spadebuttoncount == 19 || spadebuttoncount == 24 || spadebuttoncount == 29))
|
|
373
|
heartbuttoncount++;
|
|
374
|
if (heartbuttoncount == 5 && (spadebuttoncount == 5 || spadebuttoncount == 10 || spadebuttoncount == 15 || spadebuttoncount == 20 || spadebuttoncount == 25 || spadebuttoncount == 30))
|
|
375
|
heartbuttoncount = 1;
|
|
376
|
if (heartbuttoncount == rouxlsbuttoncount || heartbuttoncount == spadebuttoncount)
|
|
377
|
heartbuttoncount++;
|
|
378
|
if (heartbuttoncount > 30)
|
|
379
|
heartbuttoncount = 26;
|
|
380
|
}
|
|
381
|
if (rouxlsbuttontimer >= 20 && rouxlstelegraphcon == 1)
|
|
382
|
{
|
|
383
|
rouxlstelegraphcon = 0;
|
|
384
|
rouxlsbuttontimer = 0;
|
|
385
|
}
|
|
386
|
else if (((rouxlsbuttontimer >= 7 && buttonspeed == 0) || (rouxlsbuttontimer >= 5 && buttonspeed == 1) || (rouxlsbuttontimer >= 3 && buttonspeed == 2)) && rouxlstelegraphcon == 0 && spadesuccesscon == 0)
|
|
387
|
{
|
|
388
|
rouxlsbuttontimer = 0;
|
|
389
|
if (rouxlsbuttoncount != -6)
|
|
390
|
snd_play_x(snd_menumove, 0.6, 1.4);
|
|
391
|
if (rouxlsbuttondirection == 0)
|
|
392
|
rouxlsbuttoncount++;
|
|
393
|
if (rouxlsbuttondirection == 90)
|
|
394
|
rouxlsbuttoncount -= 5;
|
|
395
|
if (rouxlsbuttondirection == 180)
|
|
396
|
rouxlsbuttoncount--;
|
|
397
|
if (rouxlsbuttondirection == 270 && rouxlsbuttoncount != -6)
|
|
398
|
rouxlsbuttoncount += 5;
|
|
399
|
if (rouxlsbuttondirection == 270 && (rouxlsbuttoncount == 26 || rouxlsbuttoncount == 27 || rouxlsbuttoncount == 28 || rouxlsbuttoncount == 29 || rouxlsbuttoncount == 30))
|
|
400
|
{
|
|
401
|
buttonorder++;
|
|
402
|
if ((buttonorder < 2 && obj_rouxls_ch3_enemy.phase == 2) || (buttonorder < 4 && obj_rouxls_ch3_enemy.phase == 3))
|
|
403
|
{
|
|
404
|
rouxlsbuttondirection = 270;
|
|
405
|
rouxlsbuttoncount = choose(1, 2, 3, 4, 5);
|
|
406
|
}
|
|
407
|
else
|
|
408
|
{
|
|
409
|
rouxlsbuttoncount = -6;
|
|
410
|
spadebuttontimer = 0;
|
|
411
|
spadebuttondirection = 270;
|
|
412
|
spadebuttoncount = choose(1, 2, 3, 4, 5);
|
|
413
|
}
|
|
414
|
}
|
|
415
|
if (rouxlsbuttoncount == 1 && (heartbuttoncount == 1 || heartbuttoncount == 6 || heartbuttoncount == 11 || heartbuttoncount == 16 || heartbuttoncount == 21 || heartbuttoncount == 26))
|
|
416
|
rouxlsbuttoncount++;
|
|
417
|
if (rouxlsbuttoncount == 2 && (heartbuttoncount == 2 || heartbuttoncount == 7 || heartbuttoncount == 12 || heartbuttoncount == 17 || heartbuttoncount == 22 || heartbuttoncount == 27))
|
|
418
|
rouxlsbuttoncount++;
|
|
419
|
if (rouxlsbuttoncount == 3 && (heartbuttoncount == 3 || heartbuttoncount == 8 || heartbuttoncount == 13 || heartbuttoncount == 18 || heartbuttoncount == 23 || heartbuttoncount == 28))
|
|
420
|
rouxlsbuttoncount++;
|
|
421
|
if (rouxlsbuttoncount == 4 && (heartbuttoncount == 4 || heartbuttoncount == 9 || heartbuttoncount == 14 || heartbuttoncount == 19 || heartbuttoncount == 24 || heartbuttoncount == 29))
|
|
422
|
rouxlsbuttoncount++;
|
|
423
|
if (rouxlsbuttoncount == 5 && (heartbuttoncount == 5 || heartbuttoncount == 10 || heartbuttoncount == 15 || heartbuttoncount == 20 || heartbuttoncount == 25 || heartbuttoncount == 30))
|
|
424
|
rouxlsbuttoncount = 1;
|
|
425
|
if (rouxlsbuttoncount == 1 && (spadebuttoncount == 1 || spadebuttoncount == 6 || spadebuttoncount == 11 || spadebuttoncount == 16 || spadebuttoncount == 21 || spadebuttoncount == 26))
|
|
426
|
rouxlsbuttoncount++;
|
|
427
|
if (rouxlsbuttoncount == 2 && (spadebuttoncount == 2 || spadebuttoncount == 7 || spadebuttoncount == 12 || spadebuttoncount == 17 || spadebuttoncount == 22 || spadebuttoncount == 27))
|
|
428
|
rouxlsbuttoncount++;
|
|
429
|
if (rouxlsbuttoncount == 3 && (spadebuttoncount == 3 || spadebuttoncount == 8 || spadebuttoncount == 13 || spadebuttoncount == 18 || spadebuttoncount == 23 || spadebuttoncount == 28))
|
|
430
|
rouxlsbuttoncount++;
|
|
431
|
if (rouxlsbuttoncount == 4 && (spadebuttoncount == 4 || spadebuttoncount == 9 || spadebuttoncount == 14 || spadebuttoncount == 19 || spadebuttoncount == 24 || spadebuttoncount == 29))
|
|
432
|
rouxlsbuttoncount++;
|
|
433
|
if (rouxlsbuttoncount == 5 && (spadebuttoncount == 5 || spadebuttoncount == 10 || spadebuttoncount == 15 || spadebuttoncount == 20 || spadebuttoncount == 25 || spadebuttoncount == 30))
|
|
434
|
rouxlsbuttoncount = 1;
|
|
435
|
if (spadebuttoncount == 1 && (heartbuttoncount == 1 || heartbuttoncount == 6 || heartbuttoncount == 11 || heartbuttoncount == 16 || heartbuttoncount == 21 || heartbuttoncount == 26))
|
|
436
|
spadebuttoncount++;
|
|
437
|
if (spadebuttoncount == 2 && (heartbuttoncount == 2 || heartbuttoncount == 7 || heartbuttoncount == 12 || heartbuttoncount == 17 || heartbuttoncount == 22 || heartbuttoncount == 27))
|
|
438
|
spadebuttoncount++;
|
|
439
|
if (spadebuttoncount == 3 && (heartbuttoncount == 3 || heartbuttoncount == 8 || heartbuttoncount == 13 || heartbuttoncount == 18 || heartbuttoncount == 23 || heartbuttoncount == 28))
|
|
440
|
spadebuttoncount++;
|
|
441
|
if (spadebuttoncount == 4 && (heartbuttoncount == 4 || heartbuttoncount == 9 || heartbuttoncount == 14 || heartbuttoncount == 19 || heartbuttoncount == 24 || heartbuttoncount == 29))
|
|
442
|
spadebuttoncount++;
|
|
443
|
if (spadebuttoncount == 5 && (heartbuttoncount == 5 || heartbuttoncount == 10 || heartbuttoncount == 15 || heartbuttoncount == 20 || heartbuttoncount == 25 || heartbuttoncount == 30))
|
|
444
|
spadebuttoncount = 1;
|
|
445
|
if (spadebuttoncount == 1 && (rouxlsbuttoncount == 1 || rouxlsbuttoncount == 6 || rouxlsbuttoncount == 11 || rouxlsbuttoncount == 16 || rouxlsbuttoncount == 21 || rouxlsbuttoncount == 26))
|
|
446
|
spadebuttoncount++;
|
|
447
|
if (spadebuttoncount == 2 && (rouxlsbuttoncount == 2 || rouxlsbuttoncount == 7 || rouxlsbuttoncount == 12 || rouxlsbuttoncount == 17 || rouxlsbuttoncount == 22 || rouxlsbuttoncount == 27))
|
|
448
|
spadebuttoncount++;
|
|
449
|
if (spadebuttoncount == 3 && (rouxlsbuttoncount == 3 || rouxlsbuttoncount == 8 || rouxlsbuttoncount == 13 || rouxlsbuttoncount == 18 || rouxlsbuttoncount == 23 || rouxlsbuttoncount == 28))
|
|
450
|
spadebuttoncount++;
|
|
451
|
if (spadebuttoncount == 4 && (rouxlsbuttoncount == 4 || rouxlsbuttoncount == 9 || rouxlsbuttoncount == 14 || rouxlsbuttoncount == 19 || rouxlsbuttoncount == 24 || rouxlsbuttoncount == 29))
|
|
452
|
spadebuttoncount++;
|
|
453
|
if (spadebuttoncount == 5 && (rouxlsbuttoncount == 5 || rouxlsbuttoncount == 10 || rouxlsbuttoncount == 15 || rouxlsbuttoncount == 20 || rouxlsbuttoncount == 25 || rouxlsbuttoncount == 30))
|
|
454
|
spadebuttoncount = 1;
|
|
455
|
}
|
|
456
|
}
|
|
457
|
else
|
|
458
|
{
|
|
459
|
rouxlserrortimer = 0;
|
|
460
|
rouxlstelegraphcon = 0;
|
|
461
|
}
|
|
462
|
draw_set_color(c_black);
|
|
463
|
draw_rectangle(xx - 10, 481 + yy, xx + 700, ((480 - bp) + yy) - 4, false);
|
|
464
|
draw_set_color(bcolor);
|
|
465
|
draw_rectangle(xx - 10, (480 - bp - 3) + yy, xx + 700, (480 - bp - 2) + yy, false);
|
|
466
|
draw_set_color(bcolor);
|
|
467
|
draw_rectangle(xx - 10, (480 - bp) + 34 + yy, xx + 700, (480 - bp) + 36 + yy, false);
|
|
468
|
scr_charboxscr_charbox
function scr_charbox()
{
for (c = 0; c < 4; c += 1)
{
if (havechar[c] == 1)
{
if (c == 0)
charcolor = hpcolor[0];
if (c == 1)
charcolor = hpcolor[1];
if (c == 2)
charcolor = hpcolor[2];
if (c == 3)
charcolor = hpcolor[3];
gc = global.charturn;
xchunk = 0;
if (charpos[c] == 0 && chartotal == 3)
xchunk = 0;
if (charpos[c] == 1 && chartotal == 3)
xchunk = 213;
if (charpos[c] == 2 && chartotal == 3)
xchunk = 426;
if (charpos[c] == 0 && chartotal == 2)
xchunk = 108;
if (charpos[c] == 1 && chartotal == 2)
xchunk = 322;
if (charpos[c] == 0 && chartotal == 1)
xchunk = 213;
if (gc == charpos[c])
{
if (rouxlsgridenabled == false)
{
if (mmy[c] > -32)
mmy[c] -= 2;
if (mmy[c] > -24)
mmy[c] -= 4;
if (mmy[c] > -16)
mmy[c] -= 6;
if (mmy[c] > -8)
mmy[c] -= 8;
if (mmy[c] < -32)
mmy[c] = -64;
}
else
{
if (mmy[c] > -170)
mmy[c] -= 2;
if (mmy[c] > -160)
mmy[c] -= 4;
if (mmy[c] > -150)
mmy[c] -= 6;
if (mmy[c] > -140)
mmy[c] -= 12;
if (mmy[c] > -32)
mmy[c] -= 32;
}
}
else if (rouxlsgridenabled == false)
{
if (mmy[c] < -14)
mmy[c] += 15;
else
mmy[c] = 0;
}
else
{
if (mmy[c] < -14)
mmy[c] += 32;
if (mmy[c] > -14)
mmy[c] = 0;
}
if (rouxlsgridenabled && mmy[c] != 0)
{
draw_set_color(c_black);
draw_rectangle(xx + xchunk + 2, (480 - bp - 1) + yy + mmy[c], xx + xchunk + 210, (480 - bp) + yy + 0 + 33, false);
}
if (gc == charpos[c])
{
if (global.myfight == 0)
{
if (rouxlsgridenabled == false)
{
scr_selectionmatrix(xx + xchunk, (480 - bp) + yy);
}
else
{
draw_rectangle(xx + xchunk, (480 - bp - 3) + yy + mmy[c], xx + xchunk + 212, 480 - bp, false);
draw_set_color(c_black);
draw_rectangle(xx + xchunk + 2, (480 - bp - 1) + yy + mmy[c], xx + xchunk + 210, 480 - bp, false);
slmxx = xx + xchunk;
slmyy = (480 - bp) + yy;
s_siner += 2;
draw_set_color(charcolor);
draw_rectangle(slmxx, (480 - bp) + 40 + yy + mmy[c], slmxx + 212, (480 - bp) + 43 + yy + mmy[c], false);
for (i = 0; i < 12; i += 1)
{
myxx = s_siner + (i * (10 * pi));
draw_set_alpha(sin(myxx / 60));
draw_line_width(slmxx, (slmyy - 3) + (mmy[c] * 0.75), slmxx, slmyy + 33, 2);
draw_line_width(slmxx + 210 + 1, (slmyy - 3) + (mmy[c] * 0.75), slmxx + 210 + 1, slmyy + 33, 2);
if (mmy[c] < -140)
... ();
|
|
469
|
if (global.bmenuno == 1 || global.bmenuno == 3 || global.bmenuno == 11 || global.bmenuno == 12 || global.bmenuno == 13)
|
|
470
|
{
|
|
471
|
if (global.myfight == 0)
|
|
472
|
{
|
|
473
|
draw_sprite(spr_heart, 0, xx + 55, yy + 385 + (global.bmenucoord[global.bmenuno][global.charturn] * 30));
|
|
474
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
475
|
namewidthb[0] = string_width(string_hash_to_newline(global.monstername[0]));
|
|
476
|
namewidthb[1] = string_width(string_hash_to_newline(global.monstername[1]));
|
|
477
|
namewidthb[2] = string_width(string_hash_to_newline(global.monstername[2]));
|
|
478
|
var namewidthmax = 0;
|
|
479
|
for (i = 0; i < 3; i++)
|
|
480
|
{
|
|
481
|
if (namewidthb[i] > namewidthmax)
|
|
482
|
namewidthmax = namewidthb[i];
|
|
483
|
}
|
|
484
|
for (i = 0; i < 3; i += 1)
|
|
485
|
{
|
|
486
|
with (global.monsterinstance[global.bmenucoord[global.bmenuno][global.charturn]])
|
|
487
|
{
|
|
488
|
if (flash == 0)
|
|
489
|
fsiner = 0;
|
|
490
|
flash = 1;
|
|
491
|
becomeflash = 1;
|
|
492
|
}
|
|
493
|
if (global.monster[i] == 1)
|
|
494
|
{
|
|
495
|
draw_set_color(c_white);
|
|
496
|
mercydraw = 0;
|
|
497
|
tireddraw = 0;
|
|
498
|
mnamecolor1 = 16777215;
|
|
499
|
mnamecolor2 = 16777215;
|
|
500
|
aqcolor = merge_color(c_aqua, c_blue, 0.3);
|
|
501
|
if (global.charturn == 2)
|
|
502
|
{
|
|
503
|
var _aqcolor = merge_color(c_aqua, c_blue, 0.3);
|
|
504
|
aqcolor = merge_color(_aqcolor, c_white, 0.5 + (sin(t_siner / 4) * 0.5));
|
|
505
|
}
|
|
506
|
if (global.monsterstatus[i] == 1)
|
|
507
|
tireddraw = 1;
|
|
508
|
if (global.mercymod[i] >= global.mercymax[i])
|
|
509
|
mercydraw = 1;
|
|
510
|
namewidth = string_width(string_hash_to_newline(global.monstername[i]));
|
|
511
|
if (tireddraw == 1)
|
|
512
|
{
|
|
513
|
if (global.encounterno != 31)
|
|
514
|
{
|
|
515
|
draw_set_color(aqcolor);
|
|
516
|
mnamecolor1 = aqcolor;
|
|
517
|
mnamecolor2 = aqcolor;
|
|
518
|
}
|
|
519
|
draw_sprite(spr_tiredmark, 0, xx + 80 + namewidth + 40, yy + 385 + (i * 30));
|
|
520
|
}
|
|
521
|
if (mercydraw == 1)
|
|
522
|
{
|
|
523
|
draw_set_color(c_yellow);
|
|
524
|
mnamecolor1 = 65535;
|
|
525
|
if (tireddraw == 0)
|
|
526
|
mnamecolor2 = 65535;
|
|
527
|
if (hidemercy == 0)
|
|
528
|
draw_sprite(spr_sparestar, 0, xx + 80 + namewidth + 20, yy + 385 + (i * 30));
|
|
529
|
}
|
|
530
|
draw_text_colour(xx + 80, yy + 375 + (i * 30), string_hash_to_newline(global.monstername[i]), mnamecolor1, mnamecolor2, mnamecolor2, mnamecolor1, 1);
|
|
531
|
var __drawstatus = 0;
|
|
532
|
if (global.bmenuno == 13)
|
|
533
|
__drawstatus = 1;
|
|
534
|
if (__drawstatus == 0)
|
|
535
|
{
|
|
536
|
draw_set_color(c_gray);
|
|
537
|
if (global.lang != "ja")
|
|
538
|
draw_text(xx + 80 + namewidth + 60, yy + 375 + (i * 30), string_hash_to_newline(global.monstercomment[i]));
|
|
539
|
else if ((80 + namewidth + 60 + (string_width(global.monstercomment[i]) / 2)) < 415)
|
|
540
|
draw_text_transformed(xx + 80 + namewidth + 60, yy + 375 + (i * 30), string_hash_to_newline(global.monstercomment[i]), 0.5, 1, 0);
|
|
541
|
draw_set_color(c_maroon);
|
|
542
|
draw_rectangle(xx + 420, yy + 380 + (i * 30), xx + 500, yy + 380 + (i * 30) + 15, false);
|
|
543
|
draw_set_color(c_lime);
|
|
544
|
draw_rectangle(xx + 420, yy + 380 + (i * 30), xx + 420 + ((global.monsterhp[i] / global.monstermaxhp[i]) * 80), yy + 380 + (i * 30) + 15, false);
|
|
545
|
draw_set_color(c_white);
|
|
546
|
draw_text_transformed(xx + 424, yy + 364, stringsetloc(HP"HP", "obj_battlecontroller_slash_Draw_0_gml_173_0" ), 1, 0.5, 0);
|
|
547
|
if (global.chapter == 3 && i_ex(obj_knight_enemy))
|
|
548
|
draw_text_transformed(xx + 424, yy + 380 + (i * 30), "???", 1, 0.5, 0);
|
|
549
|
else
|
|
550
|
draw_text_transformed(xx + 424, yy + 380 + (i * 30), string(ceil((global.monsterhp[i] / global.monstermaxhp[i]) * 100)) + "%", 1, 0.5, 0);
|
|
551
|
}
|
|
552
|
else
|
|
553
|
{
|
|
554
|
var __actname = stringsetloc(Standard"Standard", "obj_battlecontroller_slash_Draw_0_gml_172_0" );
|
|
555
|
var __plainactname = __actname;
|
|
556
|
if (global.char[global.charturn] == 2)
|
|
557
|
__actname = global.actnamesus[i][global.bmenucoord[2][global.charturn]];
|
|
558
|
if (global.char[global.charturn] == 3)
|
|
559
|
__actname = global.actnameral[i][global.bmenucoord[2][global.charturn]];
|
|
560
|
if (global.char[global.charturn] == 4)
|
|
561
|
__actname = global.actnamenoe[i][global.bmenucoord[2][global.charturn]];
|
|
562
|
if (__actname == "S-Action")
|
|
563
|
__actname = __plainactname;
|
|
564
|
if (__actname == "R-Action")
|
|
565
|
__actname = __plainactname;
|
|
566
|
if (__actname == "N-Action")
|
|
567
|
__actname = __plainactname;
|
|
568
|
draw_set_color(hpcolorsoft[global.char[global.charturn] - 1]);
|
|
569
|
draw_text_width(xx + 80 + namewidthmax + 60, yy + 375 + (i * 30), string_hash_to_newline(__actname), 514 - (80 + namewidthmax + 60));
|
|
570
|
}
|
|
571
|
mercyamt = global.mercymod[i];
|
|
572
|
if (mercyamt >= 100)
|
|
573
|
mercyamt = 100;
|
|
574
|
if (hidemercy == 0)
|
|
575
|
{
|
|
576
|
var mercypercent = ceil((global.mercymod[i] / global.mercymax[i]) * 100);
|
|
577
|
if (mercypercent > 100)
|
|
578
|
mercypercent = 100;
|
|
579
|
draw_set_color(merge_color(c_orange, c_red, 0.5));
|
|
580
|
draw_rectangle(xx + 520, yy + 380 + (i * 30), xx + 600, yy + 380 + (i * 30) + 15, false);
|
|
581
|
draw_set_color(c_yellow);
|
|
582
|
if (mercyamt > 0 && cantspare[i] == 0)
|
|
583
|
draw_rectangle(xx + 520, yy + 380 + (i * 30), xx + 520 + (mercypercent * 0.8), yy + 380 + (i * 30) + 15, false);
|
|
584
|
draw_set_color(c_white);
|
|
585
|
var mercywidth = 1;
|
|
586
|
if (global.lang == "ja")
|
|
587
|
mercywidth = 0.5;
|
|
588
|
draw_text_transformed(xx + 524, yy + 364, stringsetloc(MERCY"MERCY", "obj_battlecontroller_slash_Draw_0_gml_208_0" ), mercywidth, 0.5, 0);
|
|
589
|
draw_set_color(c_maroon);
|
|
590
|
if (cantspare[i] == 0)
|
|
591
|
draw_text_transformed(xx + 524, yy + 380 + (i * 30), string(mercypercent) + "%", 1, 0.5, 0);
|
|
592
|
if (cantspare[i] == 1)
|
|
593
|
{
|
|
594
|
draw_line_width_color((xx + 520) - 1, yy + 380 + (i * 30), xx + 600, yy + 380 + (i * 30) + 15, 2, c_maroon, c_maroon);
|
|
595
|
draw_line_width_color((xx + 520) - 1, yy + 380 + (i * 30) + 15, xx + 600, yy + 380 + (i * 30), 2, c_maroon, c_maroon);
|
|
596
|
}
|
|
597
|
}
|
|
598
|
}
|
|
599
|
}
|
|
600
|
}
|
|
601
|
}
|
|
602
|
if (global.bmenuno == 2 && global.myfight == 0 && global.flag[34 disable_monster_acts] == 1)
|
|
603
|
{
|
|
604
|
thischar = global.char[global.charturn];
|
|
605
|
spellcoord = global.bmenucoord[2][global.charturn];
|
|
606
|
page = 0;
|
|
607
|
if (spellcoord > 5)
|
|
608
|
{
|
|
609
|
page = 1;
|
|
610
|
spellcoord -= 6;
|
|
611
|
}
|
|
612
|
icx = 10;
|
|
613
|
icy = 385;
|
|
614
|
if (spellcoord == 1 || spellcoord == 3 || spellcoord == 5)
|
|
615
|
icx = 230;
|
|
616
|
if (spellcoord > 1 && spellcoord < 4)
|
|
617
|
icy = 415;
|
|
618
|
if (spellcoord > 3)
|
|
619
|
icy = 445;
|
|
620
|
draw_sprite(spr_heart, 0, xx + icx, yy + icy);
|
|
621
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
622
|
for (i = 0; i < 3; i += 1)
|
|
623
|
{
|
|
624
|
var currentspell = global.spell[thischar][(page * 6) + (i * 2)];
|
|
625
|
draw_set_color(c_white);
|
|
626
|
if (global.tension < global.spellcost[thischar][(page * 6) + (i * 2)])
|
|
627
|
{
|
|
628
|
draw_set_color(c_gray);
|
|
629
|
}
|
|
630
|
else if (currentspell == 3 || currentspell == 8)
|
|
631
|
{
|
|
632
|
pacify_glow = 0;
|
|
633
|
for (sglowi = 0; sglowi < 3; sglowi += 1)
|
|
634
|
{
|
|
635
|
if (global.monster[sglowi] == 1 && global.monsterstatus[sglowi] == 1)
|
|
636
|
{
|
|
637
|
if (global.encounterno != 31)
|
|
638
|
pacify_glow = 1;
|
|
639
|
}
|
|
640
|
}
|
|
641
|
if (pacify_glow == 1)
|
|
642
|
draw_set_color(merge_color(c_aqua, c_blue, 0.3));
|
|
643
|
}
|
|
644
|
draw_text(xx + 30, yy + 375 + (i * 30), string_hash_to_newline(global.spellnameb[thischar][(page * 6) + (i * 2)]));
|
|
645
|
draw_set_color(c_white);
|
|
646
|
if (global.tension < global.spellcost[thischar][(page * 6) + (i * 2) + 1])
|
|
647
|
draw_set_color(c_gray);
|
|
648
|
draw_text(xx + 260, yy + 375 + (i * 30), string_hash_to_newline(global.spellnameb[thischar][(page * 6) + (i * 2) + 1]));
|
|
649
|
}
|
|
650
|
draw_set_color(c_gray);
|
|
651
|
draw_text(xx + spell_offset, yy + 375, string_hash_to_newline(global.spelldescb[thischar][(page * 6) + spellcoord]));
|
|
652
|
thiscost = floor((global.spellcost[thischar][(page * 6) + spellcoord] / global.maxtension) * 100);
|
|
653
|
draw_set_color(c_orange);
|
|
654
|
draw_text(xx + spell_offset, yy + 440, string_hash_to_newline(string(thiscost) + "% TP"));
|
|
655
|
}
|
|
656
|
var havejeviltail = false;
|
|
657
|
if (global.chararmor1[1] == 7 || global.chararmor2[1] == 7 || global.chararmor1[2] == 7 || global.chararmor2[2] == 7 || global.chararmor1[3] == 7 || global.chararmor2[3] == 7)
|
|
658
|
havejeviltail = true;
|
|
659
|
if (global.bmenuno == 2 && global.myfight == 0 && global.flag[34 disable_monster_acts] == 0)
|
|
660
|
{
|
|
661
|
thischar = global.charturn;
|
|
662
|
spellcoord = global.bmenucoord[2][global.charturn];
|
|
663
|
page = 0;
|
|
664
|
if (spellcoord > 5)
|
|
665
|
{
|
|
666
|
page = 1;
|
|
667
|
spellcoord -= 6;
|
|
668
|
}
|
|
669
|
icx = 10;
|
|
670
|
icy = 385;
|
|
671
|
if (spellcoord == 1 || spellcoord == 3 || spellcoord == 5)
|
|
672
|
icx = 230;
|
|
673
|
if (spellcoord > 1 && spellcoord < 4)
|
|
674
|
icy = 415;
|
|
675
|
if (spellcoord > 3)
|
|
676
|
icy = 445;
|
|
677
|
var _cant = 0;
|
|
678
|
draw_sprite(spr_heart, 0, xx + icx, yy + icy);
|
|
679
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
680
|
for (i = 0; i < 3; i += 1)
|
|
681
|
{
|
|
682
|
var __n = 0;
|
|
683
|
var __isact = 0;
|
|
684
|
repeat (2)
|
|
685
|
{
|
|
686
|
draw_set_color(c_white);
|
|
687
|
if (global.battlespellspecial[thischar][(page * 6) + (i * 2) + __n] >= 1)
|
|
688
|
draw_set_color(hpcolorsoft[global.char[thischar] - 1]);
|
|
689
|
_cant = 0;
|
|
690
|
if (i_ex(obj_pippins_enemy) && global.battlespellname[thischar][(page * 6) + (i * 2) + __n] == global.actnamesus[obj_pippins_enemy.myself][1] && global.flag[1044 points] < 150)
|
|
691
|
_cant = 1;
|
|
692
|
if (!havejeviltail == true && i_ex(obj_tenna_enemy_bg) && i_ex(obj_tenna_enemy) && global.battlespellname[thischar][(page * 6) + (i * 2) + __n] == global.actnamesus[obj_tenna_enemy.myself][1] && obj_tenna_enemy_bg.myscore < 20)
|
|
693
|
_cant = 1;
|
|
694
|
if (havejeviltail == true && i_ex(obj_tenna_enemy_bg) && i_ex(obj_tenna_enemy) && global.battlespellname[thischar][(page * 6) + (i * 2) + __n] == global.actnamesus[obj_tenna_enemy.myself][1] && obj_tenna_enemy_bg.myscore < 30)
|
|
695
|
_cant = 1;
|
|
696
|
if (global.tension < global.battlespellcost[thischar][(page * 6) + (i * 2) + __n] || _cant == 1)
|
|
697
|
{
|
|
698
|
draw_set_color(c_gray);
|
|
699
|
}
|
|
700
|
else if (global.battlespell[thischar][(page * 6) + (i * 2) + __n] == 3 || global.battlespell[thischar][(page * 6) + (i * 2) + __n] == 8)
|
|
701
|
{
|
|
702
|
pacify_glow = 0;
|
|
703
|
for (sglowi = 0; sglowi < 3; sglowi += 1)
|
|
704
|
{
|
|
705
|
if (global.monster[sglowi] == 1 && global.monsterstatus[sglowi] == 1)
|
|
706
|
{
|
|
707
|
if (global.encounterno != 31)
|
|
708
|
pacify_glow = 1;
|
|
709
|
}
|
|
710
|
}
|
|
711
|
if (pacify_glow == 1)
|
|
712
|
{
|
|
713
|
var _aqcolor = merge_color(c_aqua, c_blue, 0.3);
|
|
714
|
var _aqcolor2 = merge_color(_aqcolor, c_white, 0.5 + (sin(t_siner / 4) * 0.5));
|
|
715
|
draw_set_color(_aqcolor2);
|
|
716
|
}
|
|
717
|
}
|
|
718
|
draw_text(xx + 30 + (__n * 230), yy + 375 + (i * 30), string_hash_to_newline(global.battlespellname[thischar][(page * 6) + (i * 2) + __n]));
|
|
719
|
__n++;
|
|
720
|
}
|
|
721
|
}
|
|
722
|
draw_set_color(c_gray);
|
|
723
|
draw_text(xx + spell_offset, yy + 375, string_hash_to_newline(global.battlespelldesc[thischar][(page * 6) + spellcoord]));
|
|
724
|
thiscost = floor((global.battlespellcost[thischar][(page * 6) + spellcoord] / global.maxtension) * 100);
|
|
725
|
draw_set_color(c_orange);
|
|
726
|
if (thiscost > 0)
|
|
727
|
draw_text(xx + spell_offset, yy + 440, string_hash_to_newline(string(thiscost) + "% TP"));
|
|
728
|
}
|
|
729
|
if (global.bmenuno == 4 && global.myfight == 0)
|
|
730
|
{
|
|
731
|
itemcoord = global.bmenucoord[4][global.charturn];
|
|
732
|
page = 0;
|
|
733
|
if (itemcoord > 5)
|
|
734
|
{
|
|
735
|
page = 1;
|
|
736
|
itemcoord -= 6;
|
|
737
|
}
|
|
738
|
icx = 10;
|
|
739
|
icy = 385;
|
|
740
|
if (itemcoord == 1 || itemcoord == 3 || itemcoord == 5)
|
|
741
|
icx = langopt(230, 240);
|
|
742
|
if (itemcoord > 1 && itemcoord < 4)
|
|
743
|
icy = 415;
|
|
744
|
if (itemcoord > 3)
|
|
745
|
icy = 445;
|
|
746
|
draw_sprite(spr_heart, 0, xx + icx, yy + icy);
|
|
747
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
748
|
for (i = 0; i < 3; i += 1)
|
|
749
|
{
|
|
750
|
var s1 = string_hash_to_newline(tempitemnameb[(page * 6) + (i * 2)][global.charturn]);
|
|
751
|
var s2 = string_hash_to_newline(tempitemnameb[(page * 6) + (i * 2) + 1][global.charturn]);
|
|
752
|
var s1_width = string_width(s1);
|
|
753
|
var s2_width = string_width(s2);
|
|
754
|
var s1_xscale = min(1, 200 / s1_width);
|
|
755
|
var s2_xscale = min(1, 200 / s2_width);
|
|
756
|
draw_set_color(c_white);
|
|
757
|
draw_text_transformed(xx + 30, yy + 375 + (i * 30), s1, s1_xscale, 1, 0);
|
|
758
|
draw_text_transformed(xx + 260, yy + 375 + (i * 30), s2, s2_xscale, 1, 0);
|
|
759
|
}
|
|
760
|
if (page == 0 && global.item[6] != 0)
|
|
761
|
draw_sprite(spr_morearrow, 0, xx + 470, yy + 445 + (sin(s_siner / 10) * 2));
|
|
762
|
if (page == 1)
|
|
763
|
draw_sprite_ext(spr_morearrow, 0, xx + 470, (yy + 395) - (sin(s_siner / 10) * 2), 1, -1, 0, c_white, 1);
|
|
764
|
draw_set_color(c_gray);
|
|
765
|
draw_text(xx + spell_offset, yy + 375, string_hash_to_newline(tempitemdescb[(page * 6) + itemcoord][global.charturn]));
|
|
766
|
}
|
|
767
|
if (global.bmenuno == 9 && global.myfight == 0)
|
|
768
|
{
|
|
769
|
actcoord = global.bmenucoord[9][global.charturn];
|
|
770
|
for (__acti = 0; __acti < 6; __acti++)
|
|
771
|
{
|
|
772
|
canact[__acti] = 0;
|
|
773
|
if (global.char[global.charturn] == 1)
|
|
774
|
{
|
|
775
|
canact[__acti] = global.canact[thisenemy][__acti];
|
|
776
|
acttpcost[__acti] = global.actcost[thisenemy][__acti];
|
|
777
|
actsimul[__acti] = global.actsimul[thisenemy][__acti];
|
|
778
|
actname[__acti] = global.actname[thisenemy][__acti];
|
|
779
|
actdesc[__acti] = global.actdesc[thisenemy][__acti];
|
|
780
|
}
|
|
781
|
if (global.char[global.charturn] == 2)
|
|
782
|
{
|
|
783
|
canact[__acti] = global.canactsus[thisenemy][__acti];
|
|
784
|
acttpcost[__acti] = global.actcostsus[thisenemy][__acti];
|
|
785
|
actsimul[__acti] = global.actsimulsus[thisenemy][__acti];
|
|
786
|
actname[__acti] = global.actnamesus[thisenemy][__acti];
|
|
787
|
actdesc[__acti] = global.actdescsus[thisenemy][__acti];
|
|
788
|
}
|
|
789
|
if (global.char[global.charturn] == 3)
|
|
790
|
{
|
|
791
|
canact[__acti] = global.canactral[thisenemy][__acti];
|
|
792
|
acttpcost[__acti] = global.actcostral[thisenemy][__acti];
|
|
793
|
actsimul[__acti] = global.actsimulral[thisenemy][__acti];
|
|
794
|
actname[__acti] = global.actnameral[thisenemy][__acti];
|
|
795
|
actdesc[__acti] = global.actdescral[thisenemy][__acti];
|
|
796
|
}
|
|
797
|
if (global.char[global.charturn] == 4)
|
|
798
|
{
|
|
799
|
canact[__acti] = global.canactnoe[thisenemy][__acti];
|
|
800
|
acttpcost[__acti] = global.actcostnoe[thisenemy][__acti];
|
|
801
|
actsimul[__acti] = global.actsimulnoe[thisenemy][__acti];
|
|
802
|
actname[__acti] = global.actnamenoe[thisenemy][__acti];
|
|
803
|
actdesc[__acti] = global.actdescnoe[thisenemy][__acti];
|
|
804
|
}
|
|
805
|
}
|
|
806
|
page = 0;
|
|
807
|
icx = 10;
|
|
808
|
icy = 385;
|
|
809
|
if (actcoord == 1 || actcoord == 3 || actcoord == 5)
|
|
810
|
icx = 230;
|
|
811
|
if (actcoord > 1 && actcoord < 4)
|
|
812
|
icy = 415;
|
|
813
|
if (actcoord > 3)
|
|
814
|
icy = 445;
|
|
815
|
if (tripticket)
|
|
816
|
{
|
|
817
|
if (actcoord == 2)
|
|
818
|
{
|
|
819
|
if (left_h())
|
|
820
|
triptickettimer++;
|
|
821
|
else
|
|
822
|
triptickettimer = max(0, triptickettimer - 1);
|
|
823
|
}
|
|
824
|
else
|
|
825
|
{
|
|
826
|
triptickettimer = 0;
|
|
827
|
}
|
|
828
|
}
|
|
829
|
if (triptickettimer > 0)
|
|
830
|
{
|
|
831
|
draw_sprite(spr_heartgtfo, triptickettimer / 4, (xx + icx) - triptickettimer, yy + icy);
|
|
832
|
if (triptickettimer > 28)
|
|
833
|
{
|
|
834
|
global.bmenuno = -999;
|
|
835
|
tripticketcon = 1;
|
|
836
|
}
|
|
837
|
}
|
|
838
|
else
|
|
839
|
{
|
|
840
|
draw_sprite(spr_heart, 0, xx + icx, yy + icy);
|
|
841
|
}
|
|
842
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
843
|
for (i = 0; i < 6; i += 1)
|
|
844
|
{
|
|
845
|
cant = 0;
|
|
846
|
chartime = 0;
|
|
847
|
if (global.char[global.charturn] == 1)
|
|
848
|
chartime = global.actactor[global.bmenucoord[11][global.charturn]][i];
|
|
849
|
charoffset = 0;
|
|
850
|
xoffset = 0;
|
|
851
|
if (i == 1 || i == 3 || i == 5)
|
|
852
|
xoffset = 230;
|
|
853
|
yoffset = 0;
|
|
854
|
if (i == 2 || i == 3)
|
|
855
|
yoffset = 30;
|
|
856
|
if (i == 4 || i == 5)
|
|
857
|
yoffset = 60;
|
|
858
|
drawsus = 0;
|
|
859
|
drawral = 0;
|
|
860
|
drawnoe = 0;
|
|
861
|
susblend = 16777215;
|
|
862
|
ralblend = 16777215;
|
|
863
|
noeblend = 16777215;
|
|
864
|
if (chartime == 2 || chartime == 4)
|
|
865
|
{
|
|
866
|
drawsus = 1;
|
|
867
|
if (havechar[1] == 0 || global.hp[2] <= 0)
|
|
868
|
{
|
|
869
|
susblend = 8421504;
|
|
870
|
cant = 1;
|
|
871
|
}
|
|
872
|
charoffset = 30;
|
|
873
|
}
|
|
874
|
if (chartime == 3 || chartime == 4)
|
|
875
|
{
|
|
876
|
drawral = 1;
|
|
877
|
if (havechar[2] == 0 || global.hp[3] <= 0)
|
|
878
|
{
|
|
879
|
ralblend = 8421504;
|
|
880
|
cant = 1;
|
|
881
|
}
|
|
882
|
charoffset = 30;
|
|
883
|
}
|
|
884
|
if (chartime == 5)
|
|
885
|
{
|
|
886
|
drawnoe = 1;
|
|
887
|
if (havechar[3] == 0 || global.hp[4] <= 0)
|
|
888
|
{
|
|
889
|
noeblend = 8421504;
|
|
890
|
cant = 1;
|
|
891
|
}
|
|
892
|
charoffset = 30;
|
|
893
|
}
|
|
894
|
if (global.tension < acttpcost[i])
|
|
895
|
cant = 1;
|
|
896
|
if (i == 3 && global.monstertype[thisenemy] == 59Pippins && global.flag[1044 points] < 150)
|
|
897
|
cant = 1;
|
|
898
|
if (global.monstertype[thisenemy] == 103 && global.char[global.charturn] == 2Lancer)
|
|
899
|
{
|
|
900
|
if (!havejeviltail == true)
|
|
901
|
{
|
|
902
|
if (i == 1 && i_ex(obj_tenna_enemy_bg) && obj_tenna_enemy_bg.myscore < 20)
|
|
903
|
cant = 1;
|
|
904
|
}
|
|
905
|
if (havejeviltail == true)
|
|
906
|
{
|
|
907
|
if (i == 1 && i_ex(obj_tenna_enemy_bg) && obj_tenna_enemy_bg.myscore < 30)
|
|
908
|
cant = 1;
|
|
909
|
}
|
|
910
|
}
|
|
911
|
if (chartime == 4)
|
|
912
|
charoffset *= 2;
|
|
913
|
draw_set_color(c_white);
|
|
914
|
if (cant == 1)
|
|
915
|
draw_set_color(c_gray);
|
|
916
|
if (chartime == 2)
|
|
917
|
draw_sprite_ext(spr_headsusie, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
|
|
918
|
if (chartime == 3)
|
|
919
|
draw_sprite_ext(spr_headralsei, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
|
|
920
|
if (chartime == 4)
|
|
921
|
{
|
|
922
|
draw_sprite_ext(spr_headsusie, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
|
|
923
|
draw_sprite_ext(spr_headralsei, 0, xx + 60 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
|
|
924
|
}
|
|
925
|
if (chartime == 5)
|
|
926
|
draw_sprite_ext(spr_headnoelle, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, noeblend, 1);
|
|
927
|
var s1 = string_hash_to_newline(actname[i]);
|
|
928
|
var s1_width = max(1, string_width(s1));
|
|
929
|
var s1_xscale = (206 - charoffset) / s1_width;
|
|
930
|
if (s1_xscale > 1)
|
|
931
|
s1_xscale = 1;
|
|
932
|
if (s1_xscale < 0.5)
|
|
933
|
s1_xscale = 0.5;
|
|
934
|
draw_text_transformed(xx + 30 + charoffset + xoffset, yy + 375 + yoffset, string_hash_to_newline(actname[i]), s1_xscale, 1, 0);
|
|
935
|
}
|
|
936
|
draw_set_color(c_gray);
|
|
937
|
draw_text(xx + 500, yy + 375, string_hash_to_newline(actdesc[actcoord]));
|
|
938
|
if (global.tensionselect > 0)
|
|
939
|
{
|
|
940
|
thiscost = round((acttpcost[actcoord] / global.maxtension) * 100);
|
|
941
|
draw_set_color(c_orange);
|
|
942
|
draw_text(xx + 500, yy + 440, string_hash_to_newline(string(thiscost) + "% TP"));
|
|
943
|
}
|
|
944
|
with (global.monsterinstance[global.bmenucoord[11][global.charturn]])
|
|
945
|
{
|
|
946
|
if (flash == 0)
|
|
947
|
fsiner = 0;
|
|
948
|
flash = 1;
|
|
949
|
becomeflash = 1;
|
|
950
|
}
|
|
951
|
if (tripticket)
|
|
952
|
{
|
|
953
|
var xstring = stringsetloc(X"X", "obj_battlecontroller_slash_Draw_0_gml_819_0" );
|
|
954
|
draw_set_color(c_red);
|
|
955
|
var offset = 0;
|
|
956
|
if (global.lang == "ja")
|
|
957
|
offset = 14;
|
|
958
|
draw_text(xx + 158 + offset, yy + 405, xstring);
|
|
959
|
draw_set_color(-1);
|
|
960
|
}
|
|
961
|
}
|
|
962
|
if (global.bmenuno == 7 || global.bmenuno == 8)
|
|
963
|
{
|
|
964
|
if (global.myfight == 0)
|
|
965
|
{
|
|
966
|
draw_sprite(spr_heart, 0, xx + 55, yy + 385 + (global.bmenucoord[global.bmenuno][global.charturn] * 30));
|
|
967
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
968
|
for (i = 0; i < 3; i += 1)
|
|
969
|
{
|
|
970
|
if (global.char[i] != 0)
|
|
971
|
{
|
|
972
|
with (global.charinstance[global.bmenucoord[global.bmenuno][global.charturn]])
|
|
973
|
{
|
|
974
|
if (flash == 0)
|
|
975
|
fsiner = 0;
|
|
976
|
flash = 1;
|
|
977
|
becomeflash = 1;
|
|
978
|
}
|
|
979
|
draw_set_color(c_white);
|
|
980
|
draw_text(xx + 80, yy + 375 + (i * 30), string_hash_to_newline(global.charname[global.char[i]]));
|
|
981
|
draw_set_color(c_maroon);
|
|
982
|
draw_rectangle(xx + 400, yy + 380 + (i * 30), xx + 500, yy + 380 + (i * 30) + 15, false);
|
|
983
|
draw_set_color(c_lime);
|
|
984
|
var _hp = (global.hp[global.char[i]] / global.maxhp[global.char[i]]) * 100;
|
|
985
|
if (_hp <= -100)
|
|
986
|
_hp = -100;
|
|
987
|
draw_rectangle(xx + 400, yy + 380 + (i * 30), xx + 400 + _hp, yy + 380 + (i * 30) + 15, false);
|
|
988
|
}
|
|
989
|
}
|
|
990
|
}
|
|
991
|
}
|
|
992
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
993
|
{
|
|
994
|
if (sunkus_kb_check(65))
|
|
995
|
{
|
|
996
|
if (global.flag[34 disable_monster_acts] == 0 && global.myfight == 0)
|
|
997
|
{
|
|
998
|
if (global.bmenuno == 11 || global.bmenuno == 13 || global.bmenuno == 2)
|
|
999
|
{
|
|
1000
|
var remfont = draw_get_font();
|
|
1001
|
for (i = 0; i < 3; i++)
|
|
1002
|
{
|
|
1003
|
var __y = 0;
|
|
1004
|
var __x = 0;
|
|
1005
|
var __offsetx = 0;
|
|
1006
|
var __offsety = 0;
|
|
1007
|
if (global.monster[i])
|
|
1008
|
{
|
|
1009
|
with (global.monsterinstance[i])
|
|
1010
|
{
|
|
1011
|
__offsetx = sactionboxx;
|
|
1012
|
__offsety = sactionboxy;
|
|
1013
|
}
|
|
1014
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("main");
|
|
1015
|
if (scr_havecharscr_havechar
function scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (2))
|
|
1016
|
{
|
|
1017
|
for (var __n = 0; __n < 3; __n++)
|
|
1018
|
{
|
|
1019
|
draw_set_color(hpcolorsoft[1]);
|
|
1020
|
if (global.canactsus[i][__n] == 1)
|
|
1021
|
{
|
|
1022
|
var __actnamestring = global.actnamesus[i][__n];
|
|
1023
|
var __actnamestringwidth = string_width(__actnamestring);
|
|
1024
|
if ((__actnamestringwidth - 45) > __x)
|
|
1025
|
__x = __actnamestringwidth - 45;
|
|
1026
|
if (__actnamestring != "S-Action")
|
|
1027
|
draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "S-Action - " + __actnamestring);
|
|
1028
|
else
|
|
1029
|
draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, __actnamestring);
|
|
1030
|
__y += 18;
|
|
1031
|
}
|
|
1032
|
}
|
|
1033
|
}
|
|
1034
|
if (scr_havecharscr_havechar
function scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (3))
|
|
1035
|
{
|
|
1036
|
for (var __n = 0; __n < 3; __n++)
|
|
1037
|
{
|
|
1038
|
draw_set_color(hpcolorsoft[2]);
|
|
1039
|
if (global.canactral[i][__n] == 1)
|
|
1040
|
{
|
|
1041
|
var __actnamestring = global.actnameral[i][__n];
|
|
1042
|
var __actnamestringwidth = string_width(__actnamestring);
|
|
1043
|
if ((__actnamestringwidth - 45) > __x)
|
|
1044
|
__x = __actnamestringwidth - 45;
|
|
1045
|
if (global.actnameral[i][__n] != "R-Action")
|
|
1046
|
draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "R-Action - " + global.actnameral[i][__n]);
|
|
1047
|
else
|
|
1048
|
draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "R-Action - Standard");
|
|
1049
|
__y += 18;
|
|
1050
|
}
|
|
1051
|
}
|
|
1052
|
}
|
|
1053
|
if (scr_havecharscr_havechar
function scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (4))
|
|
1054
|
{
|
|
1055
|
for (var __n = 0; __n < 3; __n++)
|
|
1056
|
{
|
|
1057
|
draw_set_color(hpcolorsoft[3]);
|
|
1058
|
if (global.canactnoe[i][__n] == 1)
|
|
1059
|
{
|
|
1060
|
var __actnamestring = global.actnamenoe[i][__n];
|
|
1061
|
var __actnamestringwidth = string_width(__actnamestring);
|
|
1062
|
if ((__actnamestringwidth - 45) > __x)
|
|
1063
|
__x = __actnamestringwidth - 45;
|
|
1064
|
if (global.actnamenoe[i][__n] != "N-Action")
|
|
1065
|
draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "N-Action - " + global.actnamenoe[i][__n]);
|
|
1066
|
else
|
|
1067
|
draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "N-Action - Standard");
|
|
1068
|
__y += 18;
|
|
1069
|
}
|
|
1070
|
}
|
|
1071
|
}
|
|
1072
|
draw_set_color(c_fuchsia);
|
|
1073
|
if (__y > 0)
|
|
1074
|
draw_rectangle((global.monsterx[i] - 210) + __offsetx, global.monstery[i] + __offsety, (global.monsterx[i] - 80) + __x + __offsetx, global.monstery[i] + __y + __offsety, true);
|
|
1075
|
}
|
|
1076
|
}
|
|
1077
|
draw_set_font(remfont);
|
|
1078
|
}
|
|
1079
|
}
|
|
1080
|
}
|
|
1081
|
}
|
|
1082
|
if (global.myfight == 0 && global.chapter == 2 && instance_exists(obj_queen_enemy) && (global.bmenuno == 1 || global.bmenuno == 3 || global.bmenuno == 11 || global.bmenuno == 12 || global.bmenuno == 13))
|
|
1083
|
{
|
|
1084
|
if (i_ex(obj_berdlyplug_enemy))
|
|
1085
|
{
|
|
1086
|
draw_set_color(c_gray);
|
|
1087
|
draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407, stringsetloc(Berdly"Berdly", "obj_battlecontroller_slash_Draw_0_gml_653_0" ), 9999, 9999, 1, 1, 0);
|
|
1088
|
draw_set_color(c_white);
|
|
1089
|
draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433, obj_queen_enemy.bardlymercy, c_gray, c_yellow, c_yellow, 0, 1, 0);
|
|
1090
|
}
|
|
1091
|
else
|
|
1092
|
{
|
|
1093
|
draw_set_color(c_gray);
|
|
1094
|
draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407, stringsetloc(Shield"Shield", "obj_queen_enemy_slash_Draw_0_gml_67_0" ), 9999, 9999, 1, 1, 0);
|
|
1095
|
draw_set_color(c_white);
|
|
1096
|
draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433, (obj_queen_enemy.shieldacthp / obj_queen_enemy.shieldactmaxhp) * 10, c_gray, c_yellow, c_yellow, 0, 1, 0);
|
|
1097
|
}
|
|
1098
|
var xx2 = 0;
|
|
1099
|
if (global.charturn > 0 && global.bmenuno == 13)
|
|
1100
|
xx2 = 100;
|
|
1101
|
if (global.lang != "ja")
|
|
1102
|
{
|
|
1103
|
if (obj_queen_enemy.shieldhp > 1)
|
|
1104
|
draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 210 + xx2, __view_get(e__VW.YView, 0) + 376, stringsetloc((Protected)"(Protected)", "obj_queen_enemy_slash_Draw_0_gml_78_0" ), 9999, 9999, 1, 1, 0);
|
|
1105
|
else
|
|
1106
|
draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 210 + xx2, __view_get(e__VW.YView, 0) + 376, stringsetloc((Defenseless)"(Defenseless)", "obj_queen_enemy_slash_Draw_0_gml_82_0" ), 9999, 9999, 1, 1, 0);
|
|
1107
|
}
|
|
1108
|
}
|
|
1109
|
if (global.chapter == 3)
|
|
1110
|
{
|
|
1111
|
if (tripticketcon == 1)
|
|
1112
|
{
|
|
1113
|
snd_free_all();
|
|
1114
|
snd_play(snd_escaped);
|
|
1115
|
msgsetloc(0, * Escaped..."* Escaped...", "obj_battlecontroller_slash_Draw_0_gml_1003_0" );
|
|
1116
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
1117
|
var fadeout = 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;
} (90);
|
|
1118
|
fadeout.depth = -1000;
|
|
1119
|
triptickettimer = 0;
|
|
1120
|
tripticketcon = 2;
|
|
1121
|
with (obj_border_controller)
|
|
1122
|
hide_border(0.01);
|
|
1123
|
}
|
|
1124
|
if (tripticketcon == 2)
|
|
1125
|
{
|
|
1126
|
triptickettimer++;
|
|
1127
|
if (triptickettimer >= 120)
|
|
1128
|
{
|
|
1129
|
global.fighting = 0;
|
|
1130
|
global.interact = 3;
|
|
1131
|
instance_create(0, 0, obj_persistentfadein);
|
|
1132
|
global.entrance = 0;
|
|
1133
|
scr_losecharscr_losechar
function scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
global.submenu = 0;
global.charselect = -1;
for (i = 0; i < 36; i += 1)
global.submenucoord[i] = 0;
} ();
|
|
1134
|
global.facing = 3;
|
|
1135
|
scr_keyitemremovescr_keyitemremove
function scr_keyitemremove(arg0)
{
removed = 0;
scr_keyitemcheck(arg0);
if (haveit == 1)
{
loc = 0;
skip = 0;
if (global.keyitem[0] == arg0 && skip == 0)
{
loc = 0;
skip = 1;
}
if (global.keyitem[1] == arg0 && skip == 0)
{
loc = 1;
skip = 1;
}
if (global.keyitem[2] == arg0 && skip == 0)
{
loc = 2;
skip = 1;
}
if (global.keyitem[3] == arg0 && skip == 0)
{
loc = 3;
skip = 1;
}
if (global.keyitem[4] == arg0 && skip == 0)
{
loc = 4;
skip = 1;
}
if (global.keyitem[5] == arg0 && skip == 0)
{
loc = 5;
skip = 1;
}
if (global.keyitem[6] == arg0 && skip == 0)
{
loc = 6;
skip = 1;
}
if (global.keyitem[7] == arg0 && skip == 0)
{
loc = 7;
skip = 1;
}
if (global.keyitem[8] == arg0 && skip == 0)
{
loc = 8;
skip = 1;
}
if (global.keyitem[9] == arg0 && skip == 0)
{
loc = 9;
skip = 1;
}
if (global.keyitem[10] == arg0 && skip == 0)
{
loc = 10;
skip = 1;
}
if (global.keyitem[11] == arg0 && skip == 0)
{
loc = 11;
skip = 1;
}
scr_keyitemshift(loc, 0);
removed = 1;
}
} (18);
|
|
1136
|
room_goto(room_dw_ch3_man);
|
|
1137
|
}
|
|
1138
|
}
|
|
1139
|
}
|
|
1140
|
|
|
1141
|
enum e__VW
|
|
1142
|
{
|
|
1143
|
XView,
|
|
1144
|
YView,
|
|
1145
|
WView,
|
|
1146
|
HView,
|
|
1147
|
Angle,
|
|
1148
|
HBorder,
|
|
1149
|
VBorder,
|
|
1150
|
HSpeed,
|
|
1151
|
VSpeed,
|
|
1152
|
Object,
|
|
1153
|
Visible,
|
|
1154
|
XPort,
|
|
1155
|
YPort,
|
|
1156
|
WPort,
|
|
1157
|
HPort,
|
|
1158
|
Camera,
|
|
1159
|
SurfaceID
|
|
1160
|
}
|