41 lines
2.8 KiB
TeX
41 lines
2.8 KiB
TeX
[logic]
|
|
active = ph_idle@full_locked
|
|
|
|
[ph_idle@full_locked]
|
|
nonscript_usable = false
|
|
tips = zat_b12_conteiner_full_locked
|
|
on_info = {=actor_has_item(zat_b12_key_1) =actor_has_item(zat_b12_key_2)} ph_idle@has_two_key, {=actor_has_item(zat_b12_key_1) !actor_has_item(zat_b12_key_2)} ph_idle@has_one_key, {=actor_has_item(zat_b12_key_2) !actor_has_item(zat_b12_key_1)} ph_idle@has_one_key
|
|
on_info2 = {+zat_b12_conteiner_open} ph_idle@open, {+zat_b12_one_lock_open} ph_idle@locked
|
|
on_use = {!actor_has_item(zat_b12_key_2) !actor_has_item(zat_b12_key_1)} %+zat_b12_find_the_way_to_open%
|
|
|
|
[ph_idle@has_one_key]
|
|
nonscript_usable = false
|
|
tips = zat_b12_conteiner_has_one_key
|
|
on_use = {=actor_has_item(zat_b12_key_1) !actor_has_item(zat_b12_key_2)} ph_idle@locked %=remove_item(zat_b12_key_1) =play_sound(power_switch) +zat_b12_one_lock_open%, {=actor_has_item(zat_b12_key_2) !actor_has_item(zat_b12_key_1)} ph_idle@locked %=remove_item(zat_b12_key_2) =play_sound(power_switch) +zat_b12_one_lock_open%
|
|
on_info = {=actor_has_item(zat_b12_key_1) =actor_has_item(zat_b12_key_2)} ph_idle@has_two_key, {!actor_has_item(zat_b12_key_2) !actor_has_item(zat_b12_key_1)} ph_idle@full_locked
|
|
on_info2 = {+zat_b12_conteiner_open} ph_idle@open, {+zat_b12_one_lock_open} ph_idle@locked
|
|
|
|
[ph_idle@locked]
|
|
nonscript_usable = false
|
|
tips = zat_b12_conteiner_locked
|
|
on_info = {=actor_has_item(zat_b12_key_1) !actor_has_item(zat_b12_key_2)} ph_idle@locked_has_second_key, {=actor_has_item(zat_b12_key_2) !actor_has_item(zat_b12_key_1)} ph_idle@locked_has_second_key
|
|
on_info2 = {+zat_b12_conteiner_open} ph_idle@open
|
|
|
|
[ph_idle@locked_has_second_key]
|
|
nonscript_usable = false
|
|
tips = zat_b12_conteiner_has_one_key
|
|
on_use = {=actor_has_item(zat_b12_key_1) !actor_has_item(zat_b12_key_2)} ph_idle@open %=remove_item(zat_b12_key_1) =play_sound(power_switch) +zat_b12_conteiner_open%, {=actor_has_item(zat_b12_key_2) !actor_has_item(zat_b12_key_1)} ph_idle@open %=remove_item(zat_b12_key_2) =play_sound(power_switch) +zat_b12_conteiner_open%
|
|
on_info = {!actor_has_item(zat_b12_key_2) !actor_has_item(zat_b12_key_1)} ph_idle@locked
|
|
on_info2 = {+zat_b12_conteiner_open} ph_idle@open
|
|
|
|
[ph_idle@has_two_key]
|
|
nonscript_usable = false
|
|
tips = zat_b12_conteiner_has_two_key
|
|
on_use = {=actor_has_item(zat_b12_key_1) =actor_has_item(zat_b12_key_2)} ph_idle@open %=play_sound(power_switch) =remove_item(zat_b12_key_1) =remove_item(zat_b12_key_2) +zat_b12_conteiner_open%
|
|
on_info = {=actor_has_item(zat_b12_key_1) !actor_has_item(zat_b12_key_2)} ph_idle@has_one_key, {=actor_has_item(zat_b12_key_2) !actor_has_item(zat_b12_key_1)} ph_idle@has_one_key, {!actor_has_item(zat_b12_key_2) !actor_has_item(zat_b12_key_1)} ph_idle@full_locked
|
|
on_info2 = {+zat_b12_conteiner_open} ph_idle@open
|
|
|
|
[ph_idle@open]
|
|
nonscript_usable = true
|
|
tips = zat_b12_conteiner_open
|
|
on_info = {-zat_b12_conteiner_open} %+zat_b12_conteiner_open%
|