|
1
|
if (difficulty == 0)
|
|
2
|
{
|
|
3
|
}
|
|
4
|
if (difficulty == 1)
|
|
5
|
{
|
|
6
|
}
|
|
7
|
if (difficulty == 2)
|
|
8
|
{
|
|
9
|
}
|
|
10
|
if (difficulty == 3)
|
|
11
|
{
|
|
12
|
}
|
|
13
|
if (turn_type == "full")
|
|
14
|
{
|
|
15
|
local_turntimer = 340;
|
|
16
|
x += 200;
|
|
17
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_lerpvar, 8, "image_index", 8, 5, 8);
|
|
18
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 16, "image_alpha", 0);
|
|
19
|
}
|
|
20
|
if (turn_type == "start")
|
|
21
|
{
|
|
22
|
local_turntimer = 200;
|
|
23
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, x + 96, 16, 1, "out");
|
|
24
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 16, "image_alpha", 0);
|
|
25
|
}
|
|
26
|
if (turn_type == "end")
|
|
27
|
{
|
|
28
|
init_start = 2;
|
|
29
|
init = 1;
|
|
30
|
snd_play(snd_knight_teleport);
|
|
31
|
local_turntimer = 200;
|
|
32
|
image_alpha = 0;
|
|
33
|
image_index = 5;
|
|
34
|
}
|
|
35
|
if (turn_type == "short start")
|
|
36
|
{
|
|
37
|
local_turntimer = 170;
|
|
38
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, x + 96, 16, 1, "out");
|
|
39
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 16, "image_alpha", 0);
|
|
40
|
}
|
|
41
|
if (turn_type == "short mid")
|
|
42
|
{
|
|
43
|
init_start = 2;
|
|
44
|
init = 1;
|
|
45
|
snd_play(snd_knight_teleport);
|
|
46
|
local_turntimer = 170;
|
|
47
|
image_alpha = 0;
|
|
48
|
image_index = 5;
|
|
49
|
}
|
|
50
|
if (turn_type == "short end")
|
|
51
|
{
|
|
52
|
init_start = 2;
|
|
53
|
init = 1;
|
|
54
|
snd_play(snd_knight_teleport);
|
|
55
|
local_turntimer = 170;
|
|
56
|
image_alpha = 0;
|
|
57
|
image_index = 5;
|
|
58
|
}
|