|
1
|
if (init == 0)
|
|
2
|
{
|
|
3
|
init = 1;
|
|
4
|
with (obj_mainchara)
|
|
5
|
{
|
|
6
|
dsprite = spr_krisd;
|
|
7
|
rsprite = spr_krisr;
|
|
8
|
lsprite = spr_krisl;
|
|
9
|
usprite = spr_krisu;
|
|
10
|
}
|
|
11
|
}
|
|
12
|
if (faded == 0)
|
|
13
|
{
|
|
14
|
if (!i_ex(fadein))
|
|
15
|
{
|
|
16
|
faded = 1;
|
|
17
|
global.interact = 0;
|
|
18
|
}
|
|
19
|
}
|
|
20
|
if (rudinn4 == 0)
|
|
21
|
{
|
|
22
|
with (obj_npc_room)
|
|
23
|
{
|
|
24
|
if (extflag == "rudinn4")
|
|
25
|
other.rudinn4 = id;
|
|
26
|
}
|
|
27
|
}
|
|
28
|
if (rudinn4.talked == 1 && binocon == -1 && !bw_ex())
|
|
29
|
{
|
|
30
|
global.interact = 1;
|
|
31
|
destx = 256;
|
|
32
|
desty = 268;
|
|
33
|
if (obj_mainchara.x < 320)
|
|
34
|
destx = 384;
|
|
35
|
binocon = -9;
|
|
36
|
}
|
|
37
|
if (binocon == -9)
|
|
38
|
{
|
|
39
|
global.interact = 1;
|
|
40
|
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, 2, "binocon", -8);
|
|
41
|
}
|
|
42
|
if (binocon == -8)
|
|
43
|
{
|
|
44
|
var movetime = 18;
|
|
45
|
with (rudinn4)
|
|
46
|
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;
} ("y", y, y - 16, movetime);
|
|
47
|
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, movetime, "binocon", -7);
|
|
48
|
binocon = -999;
|
|
49
|
}
|
|
50
|
if (binocon == -7)
|
|
51
|
{
|
|
52
|
var movetime = 24;
|
|
53
|
with (rudinn4)
|
|
54
|
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, other.destx, movetime);
|
|
55
|
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, movetime + 2, "binocon", -6);
|
|
56
|
binocon = -999;
|
|
57
|
}
|
|
58
|
if (binocon == -6)
|
|
59
|
{
|
|
60
|
global.interact = 0;
|
|
61
|
global.facing = 0;
|
|
62
|
binocon = 0;
|
|
63
|
}
|
|
64
|
if (binocon == 1)
|
|
65
|
{
|
|
66
|
binobuff = 3;
|
|
67
|
binocon = 2;
|
|
68
|
}
|
|
69
|
if (binocon == 2)
|
|
70
|
{
|
|
71
|
binobuff--;
|
|
72
|
if (binobuff < 0 && button1_p())
|
|
73
|
{
|
|
74
|
snd_play_pitch(snd_item, 0.5);
|
|
75
|
global.interact = 0;
|
|
76
|
global.facing = 0;
|
|
77
|
binocon = 99;
|
|
78
|
binobuff = 3;
|
|
79
|
}
|
|
80
|
}
|
|
81
|
if (binocon == 99)
|
|
82
|
{
|
|
83
|
binobuff--;
|
|
84
|
if (binobuff <= 0)
|
|
85
|
binocon = 0;
|
|
86
|
}
|