| 1 |
type = 2; |
| 2 |
s_buffer = 10; |
| 3 |
o_sound = 0; |
| 4 |
c_sound = 0; |
| 5 |
s_sound = 0; |
| 6 |
open = -1; |
| 7 |
ox = 0; |
| 8 |
anim = 0; |
| 9 |
red = 0; |
| 10 |
yel = 0; |
| 11 |
gre = 0; |
| 12 |
blu = 0; |
| 13 |
if (global.flag[481 truelab_red_key_status] == 3) |
| 14 |
red = 1; |
| 15 |
if (global.flag[482 truelab_blue_key_status] == 3) |
| 16 |
blu = 1; |
| 17 |
if (global.flag[483 truelab_green_key_status] == 3) |
| 18 |
gre = 1; |
| 19 |
if (global.flag[484 truelab_yellow_key_status] == 3) |
| 20 |
yel = 1; |
| 21 |
if (room == room_truelab_elevator) |
| 22 |
{ |
| 23 |
if (global.entrance == 1) |
| 24 |
alarm[0] = 1; |
| 25 |
shouldopen = 0; |
| 26 |
type = 0; |
| 27 |
global.flag[480 inside_truelab] = 1; |
| 28 |
with (obj_mainchara) |
| 29 |
image_blend = merge_color(c_gray, c_white, 0.3); |
| 30 |
} |
| 31 |
if (room == room_truelab_hub && x < ((room_width * 2) / 3)) |
| 32 |
{ |
| 33 |
shouldopen = 0; |
| 34 |
type = 1; |
| 35 |
if (red == 1 && blu == 1 && gre == 1 && yel == 1) |
| 36 |
shouldopen = 1; |
| 37 |
global.flag[480 inside_truelab] = 1; |
| 38 |
with (obj_mainchara) |
| 39 |
image_blend = merge_color(c_gray, c_white, 0.3); |
| 40 |
} |
| 41 |
if (room == room_truelab_hub && x > ((room_width * 2) / 3)) |
| 42 |
{ |
| 43 |
shouldopen = 0; |
| 44 |
type = 2; |
| 45 |
if (red == 1) |
| 46 |
shouldopen = 1; |
| 47 |
if (global.entrance == 20) |
| 48 |
open = 1; |
| 49 |
} |
| 50 |
s1 = instance_create(x, y + 40, obj_solidsmall); |
| 51 |
s2 = instance_create(x + 20, y + 40, obj_solidsmall); |
| 52 |
myinteract = 0; |
| 53 |
if (global.entrance == 19) |
| 54 |
alarm[0] = 1; |