[logic]
active = ph_idle@close

[ph_idle@close]
nonscript_usable = false
tips = st_seif_way_is_pripyat_close
on_info = {=actor_has_item(sv_seif_key)} ph_idle@key
on_info2 = {+seif_way_is_pripyat_open} ph_idle@open

[ph_idle@key]
nonscript_usable = false
tips = st_seif_way_is_pripyat_key
on_info = {!actor_has_item(sv_seif_key)} ph_idle@close
on_use = {=actor_has_item(sv_seif_key)} ph_idle@open %=remove_item(sv_seif_key) =play_sound(power_switch) +seif_way_is_pripyat_open%
on_info2 = {+seif_way_is_pripyat_open} ph_idle@open

[ph_idle@open]
nonscript_usable = true
tips = st_seif_way_is_pripyat_open
on_info = {=actor_in_zone(sv_seif_way_is_pripyat_ph)} ph_idle@box

[ph_idle@box]
nonscript_usable = false
on_info = {!actor_in_zone(sv_seif_way_is_pripyat_ph)} ph_idle@open