1 |
if (myinteract == 3) |
2 |
{ |
3 |
if (!i_ex(mydialoguer)) |
4 |
{ |
5 |
global.interact = 0; |
6 |
myinteract = 0; |
7 |
with (obj_mainchara) |
8 |
onebuffer = 5; |
9 |
} |
10 |
} |
11 |
if (myinteract == 1 && !d_ex()) |
12 |
{ |
13 |
con = 1; |
14 |
myinteract = 0; |
15 |
timer = 99; |
16 |
bucket = 76; |
17 |
} |
18 |
if (con == 1) |
19 |
{ |
20 |
timer++; |
21 |
if (timer >= 5) |
22 |
{ |
23 |
snd_play(snd_mouse); |
24 |
mouse = scr_dark_markerscr_dark_markerfunction scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (bucket.x, bucket.y, spr_holemouse_exit); |
25 |
mouse.depth = bucket.depth + 10; |
26 |
var _x = x + 20; |
27 |
var _y = y + 20; |
28 |
mouse.image_alpha = 2; |
29 |
with (mouse) |
30 |
scr_lerpvarscr_lerpvarfunction 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;
} ("x", x, _x, 15, 2, "out"); |
31 |
with (mouse) |
32 |
scr_lerpvarscr_lerpvarfunction 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;
} ("y", y, _y, 15, 2, "out"); |
33 |
with (mouse) |
34 |
scr_lerpvarscr_lerpvarfunction 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;
} ("image_alpha", 4, 0, 25, 2, "out"); |
35 |
scr_doomscr_doomfunction scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{alarm[0]
target = arg0;
}
} (mouse, 25); |
36 |
timer = 0; |
37 |
bucket.miceheld--; |
38 |
micerequired--; |
39 |
if (bucket.miceheld <= 0) |
40 |
{ |
41 |
con = 2; |
42 |
timer = 0; |
43 |
} |
44 |
} |
45 |
} |
46 |
if (con == 2) |
47 |
{ |
48 |
timer++; |
49 |
if (timer == 30) |
50 |
{ |
51 |
scr_shakescreen(); |
52 |
completed = 1; |
53 |
snd_play(snd_impact); |
54 |
} |
55 |
if (timer == 40) |
56 |
{ |
57 |
con = 3; |
58 |
global.interact = 0; |
59 |
global.facing = 0; |
60 |
} |
61 |
} |