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

xenobio

Vars

connected_recycler_refWeakref to the monkey recycler connected to this console.
current_potionThe slime potion stored inside this console.
max_slimesThe maximum amount of slimes that fit in this machine.
stored_monkeysThe amount of monkey cubes inside this machine.
stored_slimesThe slimes stored inside this console.
xeno_hudThe HUD for this console.

Procs

alt_click_slimeFeeds a stored potion to a slime
can_recycle_monkeysCheck whether we can recycle monkeys at all. Optionally, displays a balloon alert over a target atom for feedback.
can_recycle_target_monkeyCheck whether we can recycle the target monkey. Optionally takes in a user to display errors to.
ctrl_click_monkeyPicks up a dead monkey for recycling.
ctrl_click_slimeScans the target slime.
ctrl_click_turfAttempts to recycle all monkeys on the turf, otherwise places a monkey from the internal storage.
feed_slimePlaces one monkey, if possible
handle_shatter_soundThe sound that plays when a potion shatters. Easier to call w/ addtimer()
handle_xeno_soundsPlays the sound in the given location. Easier to call w/ addtimer()
monkeycube_actHandles inserting a monkey cube into the console.
recycle_monkeyRecycles a given monkey.
shift_click_slimePicks up a slime, and places them in the internal storage.
shift_click_turfPlaces all slimes from the internal storage.
slime_pickupPlaces every slime not controlled by a player into the internal storage, respecting its limits Returns TRUE to signal it hitting the limit, in case its being called from a loop and we want it to stop
slime_placePlaces every slime in storage on target turf
slimepotion_actHandles inserting a slime potion into the console, potentially swapping out an existing one.
spit_atomShoots the target atom out of the tube. Used for anything that isn't a mob (I.e. potions)
spit_outShoots the target mob(s) out of the console
storage_actHandles inserting any monkey cubes stored in the tool into the console.
suck_upSucks the target mob up into the console.
try_recycle_monkeys_on_turfAttempts to recycle any monkeys on the targeted turf.
try_recycle_target_monkeyAttempts to recycle the targeted human.
user_alt_clickHandles console user alt-clicking, forwards to other procs based on target type.
user_ctrl_clickHandles console user ctrl-clicking, forwards to other procs based on target type.
user_shift_clickHandles console user shift-clicking, forwards to other procs based on target type.
validate_turfValidates whether the target turf can be interacted with.

Var Details

connected_recycler_ref

Weakref to the monkey recycler connected to this console.

current_potion

The slime potion stored inside this console.

max_slimes

The maximum amount of slimes that fit in this machine.

stored_monkeys

The amount of monkey cubes inside this machine.

stored_slimes

The slimes stored inside this console.

xeno_hud

The HUD for this console.

Proc Details

alt_click_slime

Feeds a stored potion to a slime

can_recycle_monkeys

Check whether we can recycle monkeys at all. Optionally, displays a balloon alert over a target atom for feedback.

can_recycle_target_monkey

Check whether we can recycle the target monkey. Optionally takes in a user to display errors to.

ctrl_click_monkey

Picks up a dead monkey for recycling.

ctrl_click_slime

Scans the target slime.

ctrl_click_turf

Attempts to recycle all monkeys on the turf, otherwise places a monkey from the internal storage.

feed_slime

Places one monkey, if possible

handle_shatter_sound

The sound that plays when a potion shatters. Easier to call w/ addtimer()

handle_xeno_sounds

Plays the sound in the given location. Easier to call w/ addtimer()

monkeycube_act

Handles inserting a monkey cube into the console.

recycle_monkey

Recycles a given monkey.

shift_click_slime

Picks up a slime, and places them in the internal storage.

shift_click_turf

Places all slimes from the internal storage.

slime_pickup

Places every slime not controlled by a player into the internal storage, respecting its limits Returns TRUE to signal it hitting the limit, in case its being called from a loop and we want it to stop

slime_place

Places every slime in storage on target turf

slimepotion_act

Handles inserting a slime potion into the console, potentially swapping out an existing one.

spit_atom

Shoots the target atom out of the tube. Used for anything that isn't a mob (I.e. potions)

spit_out

Shoots the target mob(s) out of the console

storage_act

Handles inserting any monkey cubes stored in the tool into the console.

suck_up

Sucks the target mob up into the console.

try_recycle_monkeys_on_turf

Attempts to recycle any monkeys on the targeted turf.

try_recycle_target_monkey

Attempts to recycle the targeted human.

user_alt_click

Handles console user alt-clicking, forwards to other procs based on target type.

user_ctrl_click

Handles console user ctrl-clicking, forwards to other procs based on target type.

user_shift_click

Handles console user shift-clicking, forwards to other procs based on target type.

validate_turf

Validates whether the target turf can be interacted with.