[logic]
active = ph_idle@wait
prior = 200

[ph_idle@wait]
on_actor_in_zone = sr_teleport_zone | ph_idle@unlocked

[ph_idle@unlocked]
nonscript_usable = false
on_info = {+radar_y -start_radar} ph_code@locked_1, {+military_y -start_military} ph_code@locked_2, {+limansk_y -start_limansk} ph_code@locked_3, {+darkscape_y -start_darkscape} ph_code@locked_4, {+aver_y -start_aver} ph_code@locked_5, {+chaes_y -start_chaes_1} ph_code@locked_6, {+laba_y -start_x_5} ph_code@locked_7, {+redlim_y -start_redlim} ph_code@locked_8 

[ph_code@locked_1]
code = 10
on_code = %+radar_z%
on_info = {+radar_z} ph_idle@wait_1 %+start_radar -radar_z%

[ph_code@locked_2]
code = 20
on_code = %+military_z%
on_info = {+military_z} ph_idle@wait_1 %+start_military -military_z%

[ph_code@locked_3]
code = 30
on_code = %+limansk_z%
on_info = {+limansk_z} ph_idle@wait_1 %+start_limansk -limansk_z%

[ph_code@locked_4]
code = 40
on_code = %+darkscape_z%
on_info = {+darkscape_z} ph_idle@wait_1 %+start_darkscape -darkscape_z%

[ph_code@locked_5]
code = 50
on_code = %+aver_z%
on_info = {+aver_z} ph_idle@wait_1 %+start_aver -aver_z%

[ph_code@locked_6]
code = 60
on_code = %+chaes_z%
on_info = {+chaes_z} ph_idle@wait_1 %+start_chaes_1 -chaes_z%

[ph_code@locked_7]
code = 70
on_code = %+laba_z%
on_info = {+laba_z} ph_idle@wait_1 %+start_x_5 -laba_z%

[ph_code@locked_8]
code = 80
on_code = %+redlim_z%
on_info = {+redlim_z} ph_idle@wait_1 %+start_redlim -redlim_z%

[ph_idle@wait_1]
on_actor_not_in_zone = sr_teleport_zone | ph_idle@wait

