1 |
funbuffer = 0; |
2 |
snd_play_ch1(snd_noise_ch1); |
3 |
with (obj_glowtile_ch1) |
4 |
{ |
5 |
active = 0; |
6 |
stepped = 0; |
7 |
stepbuffer = -1; |
8 |
sprite_index = spr_glowtile_off_ch1; |
9 |
} |
10 |
if (wonamt < wonmax) |
11 |
{ |
12 |
if (wonamt == 0) |
13 |
{ |
14 |
choice1 = 2; |
15 |
choice2 = 2; |
16 |
funtotal = 1; |
17 |
} |
18 |
if (wonamt == 1) |
19 |
{ |
20 |
choice1 = 0; |
21 |
choice2 = 1; |
22 |
funtotal = 2; |
23 |
} |
24 |
if (wonamt >= 2) |
25 |
{ |
26 |
choice1 = 1; |
27 |
choice2 = 2; |
28 |
funtotal = 2; |
29 |
} |
30 |
choice3 = choice1; |
31 |
if (room == room_field_puzzle2_ch1) |
32 |
{ |
33 |
if (wonamt == 0) |
34 |
{ |
35 |
choice1 = 3; |
36 |
choice2 = 3; |
37 |
choice3 = 3; |
38 |
funtotal = 1; |
39 |
} |
40 |
if (wonamt == 1) |
41 |
{ |
42 |
choice1 = 2; |
43 |
choice2 = 2; |
44 |
choice3 = 1; |
45 |
funtotal = 2; |
46 |
} |
47 |
if (wonamt == 2) |
48 |
{ |
49 |
choice1 = 2; |
50 |
choice2 = 3; |
51 |
choice3 = 4; |
52 |
funtotal = 3; |
53 |
} |
54 |
if (wonamt >= 3) |
55 |
{ |
56 |
choice1 = 1; |
57 |
choice2 = 0; |
58 |
choice3 = 4; |
59 |
funtotal = 3; |
60 |
} |
61 |
} |
62 |
with (tileid[choice1]) |
63 |
{ |
64 |
active = 1; |
65 |
sprite_index = spr_glowtile_step_ch1; |
66 |
} |
67 |
with (tileid[choice2]) |
68 |
{ |
69 |
active = 1; |
70 |
sprite_index = spr_glowtile_step_ch1; |
71 |
} |
72 |
with (tileid[choice3]) |
73 |
{ |
74 |
active = 1; |
75 |
sprite_index = spr_glowtile_step_ch1; |
76 |
} |
77 |
} |