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

offering

Vars

give_alert_typeThe type of alert given to people when offered, in case you need to override some behavior (like for high-fives)
offered_itemThe actual item being offered
possible_takersThe people who were offered this item at the start

Procs

additional_taker_checkAdditional checks added to CanReach() and IS_DEAD_OR_INCAP() in is_taker_elligible(). Should be what you override instead of is_taker_elligible(). By default, checks if the taker can hold items.
check_owner_in_rangeThe offerer moved, see if anyone is out of range now
check_taker_in_rangeOne of our possible takers moved, see if they left us hanging
dropped_itemWe lost the item, give it up
is_taker_elligibleIs our taker valid as a target for the offering? Meant to be used when registering takers in on_creation(). You should override additional_taker_check() instead of this.
register_candidateHook up the specified carbon mob to be offered the item in question, give them the alert and signals and all
remove_candidateRemove the alert and signals for the specified carbon mob. Automatically removes the status effect when we lost the last taker

Var Details

give_alert_type

The type of alert given to people when offered, in case you need to override some behavior (like for high-fives)

offered_item

The actual item being offered

possible_takers

The people who were offered this item at the start

Proc Details

additional_taker_check

Additional checks added to CanReach() and IS_DEAD_OR_INCAP() in is_taker_elligible(). Should be what you override instead of is_taker_elligible(). By default, checks if the taker can hold items.

Returns TRUE if the taker is valid as a target for the offering based on these additional checks.

check_owner_in_range

The offerer moved, see if anyone is out of range now

check_taker_in_range

One of our possible takers moved, see if they left us hanging

dropped_item

We lost the item, give it up

is_taker_elligible

Is our taker valid as a target for the offering? Meant to be used when registering takers in on_creation(). You should override additional_taker_check() instead of this.

Returns TRUE if the taker is valid as a target for the offering.

register_candidate

Hook up the specified carbon mob to be offered the item in question, give them the alert and signals and all

remove_candidate

Remove the alert and signals for the specified carbon mob. Automatically removes the status effect when we lost the last taker