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

(global)

Vars

FailsafeFailsafe
MasterStonedMC

Procs

GibberishTurn text into complete gibberish!
IsAdminGhostIs the passed in mob an admin ghost
___TraitAddDO NOT USE ___TraitAdd OR ___TraitRemove as a replacement for ADD_TRAIT / REMOVE_TRAIT defines. To be used explicitly for callback.
___TraitRemoveDO NOT USE ___TraitAdd OR ___TraitRemove as a replacement for ADD_TRAIT / REMOVE_TRAIT defines. To be used explicitly for callback.
above_neckWould this zone be above the neck
add_keybindingAdds an instanced keybinding to the global tracker
addtimerCreate a new timer and insert it in the queue
callback_selectRuns a list of callbacks asyncronously, returning only when all have finished
check_zoneConvert a PRECISE ZONE into the BODY_ZONE
completed_bounty_countSubtype Gens
considered_exiledExiled check
cultslurMakes you talk like you got cult stunned, which is slurring but with some dark messages
deltimerDelete a timer
derpspeechConvert a message to derpy speak
find_recordReturns datum/data/record
findnameFind if the message has the real name of any user mob in the mob_list
getFlatIconCreate a single [/icon] from a given /atom or [/image].
getleftblocksDNA HELPER-PROCS
goonchem_vortexSimulates a vortex that moves nearby movable atoms towards or away from the turf T. Range also determines the strength of the effect. High values cause nearby objects to be thrown.
init_keybindingsCreates and sorts all the keybinding datums
is_blindChecks if passed through item is blind
is_special_characterIs this mob special to the gamemode?
item_heal_roboticHeal a robotic body part on a mob
json_deserialize_datumConvert a list of json to datum
json_serialize_datumConvert a datum into a json blob
load_mapShortcut function to parse a map and apply it to the world.
log_combatLog a combat message in the attack log
log_directed_talkHelper for logging of messages with only one sender and receiver
make_datum_references_listsInitial Building
movespeed_data_null_checkChecks if a move speed modifier is valid and not missing any data
notify_ghostsFancy notifications for ghosts
offer_controlOffer control of the passed in mob to dead player
process_teleport_locsGenerate a list of turfs you can teleport to from the areas list
propagate_networkremove the old powernet and replace it with a new one throughout the network.
ran_zoneReturn the zone or randomly, another valid zone
recursive_organ_check
sanitize_namereturns nothing with an alert instead of the message if it contains something in the ic filter, and sanitizes normally if the name is fine. It returns nothing so it backs out of the input the same way as if you had entered nothing.
shake_cameraShake the camera of the person viewing the mob SO REAL!
slurMakes you speak like you're drunk
starsConvert random parts of a passed in message to stars
stutterAdds stuttering to the message passed in
timeleftGet the remaining deciseconds on a timer
voice_of_godVOICE OF GOD

Var Details

Failsafe

Failsafe

Pretty much pokes the MC to make sure it's still alive.

Master

StonedMC

Designed to properly split up a given tick among subsystems Note: if you read parts of this code and think "why is it doing it that way" Odds are, there is a reason

Proc Details

Gibberish

Turn text into complete gibberish!

text is the inputted message, replace_characters will cause original letters to be replaced and chance are the odds that a character gets modified.

IsAdminGhost

Is the passed in mob an admin ghost

___TraitAdd

DO NOT USE ___TraitAdd OR ___TraitRemove as a replacement for ADD_TRAIT / REMOVE_TRAIT defines. To be used explicitly for callback.

___TraitRemove

DO NOT USE ___TraitAdd OR ___TraitRemove as a replacement for ADD_TRAIT / REMOVE_TRAIT defines. To be used explicitly for callback.

above_neck

Would this zone be above the neck

add_keybinding

Adds an instanced keybinding to the global tracker

addtimer

Create a new timer and insert it in the queue

Arguments:

callback_select

Runs a list of callbacks asyncronously, returning only when all have finished

Callbacks can be repeated, to call it multiple times

Arguments:

check_zone

Convert a PRECISE ZONE into the BODY_ZONE

completed_bounty_count

Subtype Gens

Strict Type Gens

Dynamic Gens

Cutoff for Non-Low Priority Bounties

Low Priority Gens

considered_exiled

Exiled check

Checks if the current body of the mind has an exile implant and is currently in an away mission. Returns FALSE if any of those conditions aren't met.

cultslur

Makes you talk like you got cult stunned, which is slurring but with some dark messages

deltimer

Delete a timer

Arguments:

derpspeech

Convert a message to derpy speak

find_record

Returns datum/data/record

findname

Find if the message has the real name of any user mob in the mob_list

getFlatIcon

Create a single [/icon] from a given /atom or [/image].

Very low-performance. Should usually only be used for HTML, where BYOND's appearance system (overlays/underlays, etc.) is not available.

Only the first argument is required.

getleftblocks

DNA HELPER-PROCS

goonchem_vortex

Simulates a vortex that moves nearby movable atoms towards or away from the turf T. Range also determines the strength of the effect. High values cause nearby objects to be thrown.

init_keybindings

Creates and sorts all the keybinding datums

is_blind

Checks if passed through item is blind

is_special_character

Is this mob special to the gamemode?

returns 1 for special characters and 2 for heroes of gamemode

item_heal_robotic

Heal a robotic body part on a mob

json_deserialize_datum

Convert a list of json to datum

json_serialize_datum

Convert a datum into a json blob

load_map

Shortcut function to parse a map and apply it to the world.

log_combat

Log a combat message in the attack log

1 argument is the actor performing the action 2 argument is the target of the action 3 is a verb describing the action (e.g. punched, throwed, kicked, etc.) 4 is a tool with which the action was made (usually an item) 5 is any additional text, which will be appended to the rest of the log line

log_directed_talk

Helper for logging of messages with only one sender and receiver

make_datum_references_lists

Initial Building

movespeed_data_null_check

Checks if a move speed modifier is valid and not missing any data

notify_ghosts

Fancy notifications for ghosts

The kitchen sink of notification procs

Arguments:

offer_control

Offer control of the passed in mob to dead player

Automatic logging and uses pollCandidatesForMob, how convenient

process_teleport_locs

Generate a list of turfs you can teleport to from the areas list

Includes areas if they're not a shuttle or not not teleport or have no contents

The chosen turf is the first item in the areas contents that is a station level

The returned list of turfs is sorted by name

propagate_network

remove the old powernet and replace it with a new one throughout the network.

ran_zone

Return the zone or randomly, another valid zone

probability controls the chance it chooses the passed in zone, or another random zone defaults to 80

recursive_organ_check

sanitize_name

returns nothing with an alert instead of the message if it contains something in the ic filter, and sanitizes normally if the name is fine. It returns nothing so it backs out of the input the same way as if you had entered nothing.

shake_camera

Shake the camera of the person viewing the mob SO REAL!

slur

Makes you speak like you're drunk

stars

Convert random parts of a passed in message to stars

This proc is dangerously laggy, avoid it or die

stutter

Adds stuttering to the message passed in

timeleft

Get the remaining deciseconds on a timer

Arguments:

voice_of_god

VOICE OF GOD