1 | if (victory == 0) |
2 | { |
3 | if (global.flag[378 mouselottery_solved_2] == 1 && global.flag[377 mouselottery_solved] == 1) |
4 | { |
5 | victory = 1; |
6 | global.interact = 1; |
7 | timer = 0; |
8 | } |
9 | } |
10 | if (victory == 1) |
11 | { |
12 | global.interact = 1; |
13 | timer++; |
14 | if (timer == 30) |
15 | { |
16 | snd_play_pitch(snd_locker, 0.8); |
17 | scr_camerareset |
18 | } |
19 | if (timer == 60) |
20 | { |
21 | with (obj_bridgeSwapper) |
22 | inert = 1; |
23 | with (obj_lotteryMouseTrigger) |
24 | inert = 1; |
25 | scr_speaker |
26 | msgsetloc(0, |
27 | global.facing = 0; |
28 | d_make(); |
29 | victory++; |
30 | } |
31 | } |
32 | if (victory == 2 && !d_ex()) |
33 | { |
34 | var hints = instance_create(x, y, obj_mouseLotteryCompleteHint); |
35 | with (hints) |
36 | scr_depth(); |
37 | global.interact = 0; |
38 | instance_destroy(); |
39 | } |