/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 its 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

handle_uplink_replacedWhen a new uplink is made via the syndicate beacon it locks all lockable uplinks and destroys replacement uplinks
lock_uplinkProc that locks uplinks
on_heardProc that unlocks a locked replacement uplink when it hears the unlock code from their datum

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

When a new uplink is made via the syndicate beacon it locks all lockable uplinks and destroys replacement uplinks

Proc that locks uplinks

on_heard

Proc that unlocks a locked replacement uplink when it hears the unlock code from their datum