/tg/ Station 13 - Modules - TypesVar Details - Proc Details

uplink

Uplinks

All /obj/item(s) have a hidden_uplink var. By default it's null. Give the item one with 'new(src') (it must be in it's contents). Then add 'uses.' Use whatever conditionals you want to check that the user has an uplink, and then call interact() on their uplink. You might also want the uplink menu to open if active. Check if the uplink is 'active' and then interact() with it.

Vars

activeWhether the uplink is currently active or not
allow_restrictedWhether this uplink allows restricted items to be accessed
failsafe_codeThe failsafe code that causes this uplink to blow up.
lockableWhether this uplink can be locked or not
lockedWhether the uplink is locked or not.
nameName of the uplink
ownerCurrent owner of the uplink
previous_attemptsUsed for pen uplink
purchase_logPurchase log, listing all the purchases this uplink has made
unlock_codeCode to unlock the uplink.
unlock_noteThe unlock note that is sent to the traitor with this uplink. This is not modular and not recommended to expand upon
unlock_textThe unlock text that is sent to the traitor with this uplink. This is not modular and not recommended to expand upon
uplink_handlerThe current linked uplink handler.

Procs

add_telecrystalsAdds telecrystals to the uplink. It is bad practice to use this outside of the component itself.
set_telecrystalsSets the telecrystals of the uplink. It is bad practice to use this outside of the component itself.

Var Details

active

Whether the uplink is currently active or not

allow_restricted

Whether this uplink allows restricted items to be accessed

failsafe_code

The failsafe code that causes this uplink to blow up.

lockable

Whether this uplink can be locked or not

locked

Whether the uplink is locked or not.

name

Name of the uplink

owner

Current owner of the uplink

previous_attempts

Used for pen uplink

purchase_log

Purchase log, listing all the purchases this uplink has made

unlock_code

Code to unlock the uplink.

unlock_note

The unlock note that is sent to the traitor with this uplink. This is not modular and not recommended to expand upon

unlock_text

The unlock text that is sent to the traitor with this uplink. This is not modular and not recommended to expand upon

The current linked uplink handler.

Proc Details

add_telecrystals

Adds telecrystals to the uplink. It is bad practice to use this outside of the component itself.

set_telecrystals

Sets the telecrystals of the uplink. It is bad practice to use this outside of the component itself.