[logic]
active = ph_code@_1

[ph_code@_1]
code = 111
on_code = %+laba_x6_laba_x16_key_done%
tips = laba_x6_laba_x16_key_code
info_code = actor_has_laba_x6_laba_x16_code
on_info = {+laba_x6_laba_x16_key_done} ph_idle@wait_1 %-laba_x6_laba_x16_key_done%

[ph_idle@wait_1]
nonscript_usable = false
on_game_timer = 20 | ph_idle@wait_2 %+open_door_x16_laba%

[ph_idle@wait_2]
nonscript_usable = false
on_info = {=actor_in_zone(level_lx16_restr)} ph_idle@wait_3 %=disable_ui() =run_postprocess(black:6127:true)%

[ph_idle@wait_3]
nonscript_usable = false
on_game_timer = 10 | ph_idle@wait_4 %=teleport_actor( actor_laba_x6_laba_x16_walk:actor_laba_x6_laba_x16_look )%

[ph_idle@wait_4]
nonscript_usable = false
tips = laba_x6_laba_x16_key_code
on_game_timer = 20 | {=actor_on_level(tunnel_lab_1) !black_screen} ph_idle@wait_0 %-open_door_x16_laba%

[ph_idle@wait_0]
tips = laba_x6_laba_x16_key_code
on_use = ph_idle@wait_1
on_info  = {+yan_labx16_switcher_primary_on} ph_idle@locked

[ph_idle@locked]
nonscript_usable = false
tips = laba_x6_laba_x16_key_locked