1 |
if (pcon == 0 && global.interact == 0) |
2 |
{ |
3 |
if (puzzle.suit[0] == 4 && puzzle.suit[1] == 1 && puzzle.suit[2] == 2 && global.flag[234 solved_clover_puzzle] == 0) |
4 |
{ |
5 |
with (blockn) |
6 |
instance_destroy(); |
7 |
global.flag[234 solved_clover_puzzle] = 1; |
8 |
global.interact = 1; |
9 |
pcon = 1; |
10 |
with (spiken[0]) |
11 |
image_index = 1; |
12 |
with (spiken[1]) |
13 |
image_index = 1; |
14 |
} |
15 |
} |
16 |
if (pcon == 1) |
17 |
{ |
18 |
ptimer = 0; |
19 |
snd_play(snd_screenshake); |
20 |
instance_create(0, 0, obj_shake); |
21 |
pcon = 2; |
22 |
} |
23 |
if (pcon == 2) |
24 |
{ |
25 |
ptimer += 1; |
26 |
if (ptimer >= 20) |
27 |
{ |
28 |
ptimer = 0; |
29 |
pcon = 0; |
30 |
global.interact = 0; |
31 |
} |
32 |
} |
33 |
if (con == 0 && global.interact == 0) |
34 |
{ |
35 |
if (obj_mainchara.y <= 80) |
36 |
{ |
37 |
global.facing = 0; |
38 |
with (global.cinstance[0]) |
39 |
{ |
40 |
fun = 1; |
41 |
sprite_index = dsprite; |
42 |
} |
43 |
global.interact = 1; |
44 |
con = 1; |
45 |
alarm[4] = 22; |
46 |
cmarker = 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;
} (x, y, spr_clubs_idle); |
47 |
with (cmarker) |
48 |
depth = 960000; |
49 |
with (cmarker) |
50 |
vspeed = -8; |
51 |
} |
52 |
} |
53 |
if (con == 1) |
54 |
{ |
55 |
if (cmarker.y <= 280) |
56 |
{ |
57 |
with (cmarker) |
58 |
scr_depth(); |
59 |
} |
60 |
} |
61 |
if (con == 2) |
62 |
{ |
63 |
with (cmarker) |
64 |
scr_halt(); |
65 |
global.typer = 6; |
66 |
global.fc = 0; |
67 |
global.msg[0] = * Heyy~!Delay 11 It's my birthday today~!Delay 11 * And you didn't even SAY HELLO!?Delay 11 * That's fine,Delay 11 actually...Wait for input ; |
68 |
global.msg[1] = * Stop and say hi,Delay 11 folks~!Delay 11 * Shut up!Delay 11 They don't DESERVE us!Delay 11 * H-hey,Delay 11 calm down,Delay 11 you two.Wait for input ; |
69 |
global.msg[2] = * Let's celebrate my birthday~! * Yeah,Delay 11 get ready to HURT! * Oh,Delay 11 I'm s-sorry about this...!Wait for inputClose Message ; |
70 |
if (global.flag[236 interacted_clover?] == 1) |
71 |
{ |
72 |
global.msg[0] = * Oh,Delay 11 you don't know the day?Delay 11 * You mean you FORGOT!?Delay 11 * That's OK,Delay 11 you don't know us.Wait for input ; |
73 |
global.msg[1] = * It's our birthday~!Delay 11 Yayyyy~!Delay 11 * And you're gonna REGRET IT!Delay 11 * Oh, I'm sorry about this...Wait for inputClose Message ; |
74 |
} |
75 |
con = 3; |
76 |
instance_create(0, 0, obj_dialoguer); |
77 |
} |
78 |
if (con == 3 && !d_ex()) |
79 |
{ |
80 |
with (global.cinstance[0]) |
81 |
fun = 0; |
82 |
if (global.plot < 75) |
83 |
global.plot = 75; |
84 |
with (obj_cloverhole) |
85 |
{ |
86 |
sprite_index = spr_cloverhole; |
87 |
holecon = 999; |
88 |
image_index = 0; |
89 |
} |
90 |
cencounter = instance_create(cmarker.x, cmarker.y, obj_chaseenemy); |
91 |
with (cmarker) |
92 |
instance_destroy(); |
93 |
with (cencounter) |
94 |
{ |
95 |
global.interact = 0; |
96 |
myencounter = 8; |
97 |
sprite_index = spr_clubs_idle; |
98 |
touchsprite = spr_clubs_idle; |
99 |
event_user(0); |
100 |
} |
101 |
con = 4; |
102 |
} |