[logic]
active = ph_idle@wait
prior = 70

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

[ph_idle@unlocked]
on_info = {+radar_x} ph_code@locked_1, {+military_x} ph_code@locked_2, {+limansk_x} ph_code@locked_3, {+darkscape_x} ph_code@locked_4, {+aver_x} ph_code@locked_5, {+chaes_x} ph_code@locked_6, {+laba_x} ph_code@locked_7, {+redlim_x} ph_code@locked_8

[ph_code@locked_1]
code = 10
on_code = %+radar_y%
on_info = {+radar_y} ph_idle@enable

[ph_code@locked_2]
code = 20
on_code = %+military_y%
on_info = {+military_y} ph_idle@enable

[ph_code@locked_3]
code = 30
on_code = %+limansk_y%
on_info = {+limansk_y} ph_idle@enable

[ph_code@locked_4]
code = 40
on_code = %+darkscape_y%
on_info = {+darkscape_y} ph_idle@enable

[ph_code@locked_5]
code = 50
on_code = %+aver_y%
on_info = {+aver_y} ph_idle@enable

[ph_code@locked_6]
code = 60
on_code = %+chaes_y%
on_info = {+chaes_y} ph_idle@enable

[ph_code@locked_7]
code = 70
on_code = %+laba_y%
on_info = {+laba_y} ph_idle@enable

[ph_code@locked_8]
code = 80
on_code = %+redlim_y%
on_info = {+redlim_y} ph_idle@enable

[ph_idle@enable]
nonscript_usable = false
tips = teleport_y
on_info = {-radar_y -military_y -limansk_y -darkscape_y -aver_y -chaes_y -laba_y -redlim_y} ph_idle@wait_1

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

