[logic]
active = ph_idle@wait

[ph_idle@wait]
nonscript_usable = false
tips = radar_x_5_need_card
on_info  = {=actor_has_item(radar_x5_access_card) +level_x_5_to_radar_ok} ph_code@_1
on_info2 = {+laba_lena_final_dialog_end} ph_idle@end

[ph_code@_1]
code = 230543
on_code = %+rad_code_x5_door_unlocked%
tips = radar_x_5_door_code
on_info  = {+rad_code_x5_door_unlocked +level_x_5_to_radar_ok} ph_idle@wait_1 %+actor_can_go_to_x_5 -rad_code_x5_door_unlocked%
on_info2 = {+rad_code_x5_door_unlocked -level_x_5_to_radar_ok} %-rad_code_x5_door_unlocked%
on_info3 = {!actor_has_item(radar_x5_access_card)} ph_idle@wait %-level_x_5_to_radar_ok%
on_info4 = {+laba_lena_final_dialog_end} ph_idle@end

[ph_idle@wait_1]
nonscript_usable = false
tips = radar_x_5_door_code_ok
on_info  = {-actor_can_go_to_x_5} ph_code@_1
on_info2 = {!actor_has_item(radar_x5_access_card)} ph_idle@wait %-level_x_5_to_radar_ok%
on_info3 = {+laba_lena_final_dialog_end} ph_idle@end

[ph_idle@end]
nonscript_usable = false
tips = radar_x_5_need_card
