[logic]
active = ph_idle@wait_quest

[ph_idle@wait_quest]
on_info = ph_idle@wait_for_start %=turn_off(pri_b306_lamp_1:pri_b306_lamp_2:pri_b306_lamp_3)%
nonscript_usable = false

[ph_idle@wait_for_start]
on_info = {+pri_b306_lift_generator_started} ph_idle@closed %=turn_on(pri_b306_lamp_1:pri_b306_lamp_2:pri_b306_lamp_3)%
nonscript_usable = false

[ph_idle@closed]
on_info = {=actor_has_item(prip_seif_labx8_flash)} ph_idle@open 
tips = tip_no_access_card
nonscript_usable = true

[ph_idle@open]
on_info = {!actor_has_item(prip_seif_labx8_flash)} ph_idle@closed 
tips = st_pri_b306_go_down
nonscript_usable = true
on_use = ph_idle@wait_signal

[ph_idle@wait_signal]
nonscript_usable = false
on_game_timer = 20 | ph_code@_1 %=play_sound_lift%

[ph_code@_1]
code = 5432
on_code = %+pri_b306_actor_to_lab =remove_item_no_news(prip_laundry_seif_flash)%
tips = pri_b306_lift_key_code
info_code = actor_has_labx8_flash
on_info = {+pri_b306_actor_to_lab} ph_idle@teleport %=disable_ui =run_postprocess(fade_in)%

[ph_idle@teleport]
on_game_timer = 20 | ph_idle@in %=run_postprocess(black:3009:true) =teleport_actor(pri_b306_actor_lc_walk)%

[ph_idle@in]
