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

give

Vars

additional_desc_textAdditional text displayed in the description of the alert.
examinableWhether the offered item can be examined by shift-clicking the alert
offerThe offer we're linked to, yes this is suspiciously like a status effect alert
screentip_override_textText to override what appears in screentips for the alert

Procs

get_receiving_nameCalled right before setup(), to do any sort of logic to change the name of what's displayed as the name of what's being offered in the alert. Use this to add pronouns and the like, or to totally override the displayed name! Also the best place to make changes to additional_desc_text before setup() without having to override setup() entirely.
handle_transferAn overrideable proc used simply to hand over the item when claimed, this is a proc so that high-fives can override them since nothing is actually transferred
setupHandles assigning most of the variables for the alert that pops up when an item is offered

Var Details

additional_desc_text

Additional text displayed in the description of the alert.

examinable

Whether the offered item can be examined by shift-clicking the alert

offer

The offer we're linked to, yes this is suspiciously like a status effect alert

screentip_override_text

Text to override what appears in screentips for the alert

Proc Details

get_receiving_name

Called right before setup(), to do any sort of logic to change the name of what's displayed as the name of what's being offered in the alert. Use this to add pronouns and the like, or to totally override the displayed name! Also the best place to make changes to additional_desc_text before setup() without having to override setup() entirely.

Arguments:

Returns a string that will be displayed in the alert, which is receiving.name by default.

handle_transfer

An overrideable proc used simply to hand over the item when claimed, this is a proc so that high-fives can override them since nothing is actually transferred

setup

Handles assigning most of the variables for the alert that pops up when an item is offered

Handles setting the name, description and icon of the alert and tracking the person giving and the item being offered. Arguments: