1 |
function scr_attack_overridescr_attack_overridefunction scr_attack_override(arg0, arg1, arg2)
{
var __attackdebug = arg0;
if (arg1 > 10)
arg1 = 10;
if (keyboard_check_pressed(vk_decimal) || keyboard_check_pressed(189))
{
__attackdebug = -1;
scr_debug_print(arg2 + " attack randomized.");
}
else
{
for (i = 0; i < arg1; i++)
{
if (keyboard_check_pressed(ord(string(i))) || keyboard_check_pressed(vk_numpad0 + i))
__attackdebug = i;
}
for (i = arg1; i < 10; i++)
{
if (keyboard_check_pressed(ord(string(i))) || keyboard_check_pressed(vk_numpad0 + i))
scr_debug_print(arg2 + " does not have an attack no. " + string(i));
}
}
if (__attackdebug != arg0 && __attackdebug > -1)
scr_debug_print(arg2 + " attack set to no. " + string(__attackdebug));
if (keyboard_check_pressed(vk_tab))
{
if (window_get_height() == 480)
{
var __screensize = floor(display_get_height() / 480);
window_set_size(640 * __screensize, 480 * __screensize);
}
else
{
window_set_size(640, 480);
}
}
return __attackdebug;
} (arg0, arg1, arg2) |
2 |
{ |
3 |
var __attackdebug = arg0; |
4 |
if (arg1 > 10) |
5 |
arg1 = 10; |
6 |
if (keyboard_check_pressed(vk_decimal) || keyboard_check_pressed(189)) |
7 |
{ |
8 |
__attackdebug = -1; |
9 |
scr_debug_printscr_debug_printfunction scr_debug_print(arg0)
{
if (! scr_debug())
exit;
if (!instance_exists(obj_debug_gui))
{
instance_create(__view_get(e__VW.XView, 0) + 10, __view_get(e__VW.YView, 0) + 10, obj_debug_gui);
obj_debug_gui.depth = -9999;
}
obj_debug_gui.newtext = arg0;
with (obj_debug_gui)
{
message[messagecount] = newtext;
newtext = "";
timer[messagecount] = 90 - totaltimer;
totaltimer += timer[messagecount];
messagecount++;
debugmessage = message[0];
for (i = 1; i < messagecount; i++)
debugmessage += ("#" + message[i]);
}
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (arg2 + " attack randomized."); |
10 |
} |
11 |
else |
12 |
{ |
13 |
for (i = 0; i < arg1; i++) |
14 |
{ |
15 |
if (keyboard_check_pressed(ord(string(i))) || keyboard_check_pressed(vk_numpad0 + i)) |
16 |
__attackdebug = i; |
17 |
} |
18 |
for (i = arg1; i < 10; i++) |
19 |
{ |
20 |
if (keyboard_check_pressed(ord(string(i))) || keyboard_check_pressed(vk_numpad0 + i)) |
21 |
scr_debug_printscr_debug_printfunction scr_debug_print(arg0)
{
if (! scr_debug())
exit;
if (!instance_exists(obj_debug_gui))
{
instance_create(__view_get(e__VW.XView, 0) + 10, __view_get(e__VW.YView, 0) + 10, obj_debug_gui);
obj_debug_gui.depth = -9999;
}
obj_debug_gui.newtext = arg0;
with (obj_debug_gui)
{
message[messagecount] = newtext;
newtext = "";
timer[messagecount] = 90 - totaltimer;
totaltimer += timer[messagecount];
messagecount++;
debugmessage = message[0];
for (i = 1; i < messagecount; i++)
debugmessage += ("#" + message[i]);
}
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (arg2 + " does not have an attack no. " + string(i)); |
22 |
} |
23 |
} |
24 |
if (__attackdebug != arg0 && __attackdebug > -1) |
25 |
scr_debug_printscr_debug_printfunction scr_debug_print(arg0)
{
if (! scr_debug())
exit;
if (!instance_exists(obj_debug_gui))
{
instance_create(__view_get(e__VW.XView, 0) + 10, __view_get(e__VW.YView, 0) + 10, obj_debug_gui);
obj_debug_gui.depth = -9999;
}
obj_debug_gui.newtext = arg0;
with (obj_debug_gui)
{
message[messagecount] = newtext;
newtext = "";
timer[messagecount] = 90 - totaltimer;
totaltimer += timer[messagecount];
messagecount++;
debugmessage = message[0];
for (i = 1; i < messagecount; i++)
debugmessage += ("#" + message[i]);
}
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (arg2 + " attack set to no. " + string(__attackdebug)); |
26 |
if (keyboard_check_pressed(vk_tab)) |
27 |
{ |
28 |
if (window_get_height() == 480) |
29 |
{ |
30 |
var __screensize = floor(display_get_height() / 480); |
31 |
window_set_size(640 * __screensize, 480 * __screensize); |
32 |
} |
33 |
else |
34 |
{ |
35 |
window_set_size(640, 480); |
36 |
} |
37 |
} |
38 |
return __attackdebug; |
39 |
} |