[logic]
active = ph_button@no_card

[ph_button@no_card]
anim = idle
tooltip = tunnel_lab_1_physic_door_1_code
on_info = {+you_must_find_road_to_bar} ph_code@_1 %=turn_off(labx5_lamp_104_switch_1_green)%

[ph_code@_1]
code = 79246
on_code = %+labx5_key_code =remove_item_no_news(labx5_first_door_code_flash)%
info_code = actor_has_labx5_first_door_code_flash
tips = tunnel_lab_1_physic_door_1_code
on_info = {+labx5_key_code} ph_button@unlocked

[ph_button@unlocked]
anim = idle
tooltip = st_lx8_button_press_true
on_game_timer = 20 | {-labx5_door_open} %+labx5_door_open =anim_obj_forward(lx2_physic_door)%  
on_game_timer2 = 10 | {-labx5_green_on} %+labx5_green_on =turn_off(labx5_lamp_104_switch_1_red) =turn_on(labx5_lamp_104_switch_1_green)%
