1 | if (global.flag[310 touched_cheese_maze] == 1) |
2 | { |
3 | if (i_ex(obj_solidblock_destructable)) |
4 | { |
5 | with (obj_solidblock_destructable) |
6 | instance_destroy(); |
7 | } |
8 | } |
9 | if (obj_mainchara.x >= trigX && eventTriggered == 0) |
10 | { |
11 | global.flag[360 did_cheese_fight] = 1; |
12 | if (global.flag[310 touched_cheese_maze] == 1) |
13 | { |
14 | if (con == 0) |
15 | { |
16 | global.interact = 1; |
17 | con++; |
18 | } |
19 | if (con == 1) |
20 | { |
21 | scr_speaker |
22 | msgsetloc(0, |
23 | d = d_make(); |
24 | con++; |
25 | } |
26 | if (con == 2 && !d_ex()) |
27 | { |
28 | global.interact = 0; |
29 | eventTriggered = 1; |
30 | instance_destroy(); |
31 | } |
32 | } |
33 | if (global.flag[310 touched_cheese_maze] == 0) |
34 | { |
35 | with (obj_mazecheese) |
36 | { |
37 | if (x < other.trigX) |
38 | { |
39 | image_index = 1; |
40 | type = 4; |
41 | con = 999; |
42 | global.flag[310 touched_cheese_maze] = 1; |
43 | } |
44 | } |
45 | eventTriggered = 1; |
46 | instance_destroy(); |
47 | } |
48 | } |