byond - Modules - TypesVar Details

Global Variables

Vars

AdminProcCallHandlerUse this for indirect proccalls which require a user
admin_statetgui state: admin_state
always_statetgui state: always_state
areas_by_typeAn association from typepath to area instance. Only includes areas with unique set.
base_miss_chanceThe base miss chance for the different defence zones
blurb_witnessesList of ckeys that have seen a blurb of a given key.
cached_mapsList of all the maps that have been cached for /proc/load_map
character_trait_groups
cm_vending_clothing_doctordefined in senior_officers.dm
conscious_statetgui state: conscious_state
contained_statetgui state: contained_state
deep_inventory_statetgui state: deep_inventory_state
default_statetgui state: default_state
deployed_fultonsA list of fultons currently airborne.
em_block_colorA globaly cached version of EM_BLOCK_COLOR for quick access.
em_mask_matrixA globaly cached version of EM_MASK_MATRIX for quick access.
emissive_colorA globaly cached version of EMISSIVE_COLOR for quick access.
fallen_list_crossThis is for dogtags placed on crosses- they will show up at the end-round memorial.
focused_testThe name of the test that is currently focused. Use the PERFORM_ALL_TESTS macro instead.
gamemode_rolesList of roles that can be setup for each gamemode
hands_statetgui state: hands_state
hive_statetgui state: hive_state
hive_state_queentgui state: hive_state_queen
hj_categorieslist of categories for hazard joes
hj_emotesdict ("category" : (emotes)) of every hj emote typepath
human_adjacent_statetgui state: human_adjacent_state
inventory_statetgui state: inventory_state
medals_view_tguiCan remove notes from anyone other than yourself, unless you're the host. So long as you have deletion access anyway.
never_statetgui state: never_state
new_player_statetgui state: new_player_state
not_incapacitated_and_adjacent_statetgui state: not_incapacitated_and_adjacent state
not_incapacitated_and_adjacent_strict_statetgui state: not_incapacitated_and_adjacent_strict state
not_incapacitated_and_adjacent_turf_statetgui state: not_incapacitated_turf_state
not_incapacitated_and_adjacent_turf_strict_statetgui state: not_incapacitated_turf_state
not_incapacitated_and_inventory_statetgui state: not_incapacitated_and_inventory_state
not_incapacitated_and_inventory_turf_statetgui state: not_incapacitated_and_inventory_turf_state
not_incapacitated_statetgui state: not_incapacitated_state
not_incapacitated_turf_statetgui state: not_incapacitated_turf_state
notcontained_statetgui state: notcontained_state
note_categoriesNote categories in text form, in order of their numerical #defines.
obfs_xA number between -500 and 500.
obfs_yA number between -500 and 500.
observer_statetgui state: observer_state
ooc_color_overrideIn-round override to default OOC color
perf_flagsGlobal performance feature toggle flags
physical_obscured_statetgui state: physical_obscured_state
physical_statetgui state: physical_state
reverse_contained_statetgui state: reverse_contained_state
self_statetgui state: self_state
time_offsetOffset for the Operation time
trait_name_mapvalue -> trait name, generated on use from trait_by_type global
unit_test_mapping_logsWhen unit testing, all logs sent to log_mapping are stored here and retrieved in log_mapping unit test.
wj_categorieslist of categories for working joes
wj_emotesdict ("category" : (emotes)) of every wj emote typepath
xeno_datum_listXeno caste datums
xeno_queue_candidate_countThe last count of possible candidates in the xeno larva queue (updated via get_alien_candidates)
z_statetgui state: z_state

Var Details

AdminProcCallHandler

Use this for indirect proccalls which require a user

admin_state

tgui state: admin_state

Checks that the user is an admin, end-of-story.

always_state

tgui state: always_state

Always grants the user UI_INTERACTIVE. Period.

areas_by_type

An association from typepath to area instance. Only includes areas with unique set.

base_miss_chance

The base miss chance for the different defence zones

blurb_witnesses

List of ckeys that have seen a blurb of a given key.

cached_maps

List of all the maps that have been cached for /proc/load_map

character_trait_groups

cm_vending_clothing_doctor

defined in senior_officers.dm

conscious_state

tgui state: conscious_state

Only checks if the user is conscious.

contained_state

tgui state: contained_state

Checks that the user is inside the src_object.

deep_inventory_state

tgui state: deep_inventory_state

Checks that the src_object is in the user's deep (backpack, box, toolbox, etc) inventory.

default_state

tgui state: default_state

Checks a number of things -- mostly physical distance for humans and view for robots.

deployed_fultons

A list of fultons currently airborne.

em_block_color

A globaly cached version of EM_BLOCK_COLOR for quick access.

em_mask_matrix

A globaly cached version of EM_MASK_MATRIX for quick access.

emissive_color

A globaly cached version of EMISSIVE_COLOR for quick access.

fallen_list_cross

This is for dogtags placed on crosses- they will show up at the end-round memorial.

focused_test

The name of the test that is currently focused. Use the PERFORM_ALL_TESTS macro instead.

gamemode_roles

List of roles that can be setup for each gamemode

hands_state

tgui state: hands_state

Checks that the src_object is in the user's hands.

hive_state

tgui state: hive_state

Checks that the user is part of a hive.

hive_state_queen

tgui state: hive_state_queen

Checks that the user is part of a hive and is the leading queen of that hive.

hj_categories

list of categories for hazard joes

hj_emotes

dict ("category" : (emotes)) of every hj emote typepath

human_adjacent_state

tgui state: human_adjacent_state

In addition to default checks, only allows interaction for a human adjacent user.

inventory_state

tgui state: inventory_state

Checks that the src_object is in the user's top-level (hand, ear, pocket, belt, etc) inventory.

medals_view_tgui

Can remove notes from anyone other than yourself, unless you're the host. So long as you have deletion access anyway.

never_state

tgui state: never_state

Always closes the UI, no matter what. See the ui_state in religious_tool.dm to see an example

new_player_state

tgui state: new_player_state

Checks that the user is a new_player, or if user is an admin

not_incapacitated_and_adjacent_state

tgui state: not_incapacitated_and_adjacent state

Checks that the user isn't incapacitated and that they are adjacent

Copyright (c) 2020 Aleksej Komarov SPDX-License-Identifier: MIT

not_incapacitated_and_adjacent_strict_state

tgui state: not_incapacitated_and_adjacent_strict state

Checks that the user isn't incapacitated and that they are adjacent and always does ui_close

Copyright (c) 2020 Aleksej Komarov SPDX-License-Identifier: MIT

not_incapacitated_and_adjacent_turf_state

tgui state: not_incapacitated_turf_state

Checks that the user isn't incapacitated and that their loc is a turf

not_incapacitated_and_adjacent_turf_strict_state

tgui state: not_incapacitated_turf_state

Checks that the user isn't incapacitated and that their loc is a turf

not_incapacitated_and_inventory_state

tgui state: not_incapacitated_and_inventory_state

Checks that the user isn't incapacitated and the obj is in their inventory

not_incapacitated_and_inventory_turf_state

tgui state: not_incapacitated_and_inventory_turf_state

Checks that the user isn't incapacitated and that their loc is a turf and the obj is in their inventory

not_incapacitated_state

tgui state: not_incapacitated_state

Checks that the user isn't incapacitated

not_incapacitated_turf_state

tgui state: not_incapacitated_turf_state

Checks that the user isn't incapacitated and that their loc is a turf

notcontained_state

tgui state: notcontained_state

Checks that the user is not inside src_object, and then makes the default checks.

note_categories

Note categories in text form, in order of their numerical #defines.

obfs_x

A number between -500 and 500.

obfs_y

A number between -500 and 500.

observer_state

tgui state: observer_state

Checks that the user is an observer/ghost.

ooc_color_override

In-round override to default OOC color

perf_flags

Global performance feature toggle flags

physical_obscured_state

tgui state: physical_obscured_state

Short-circuits the default state to only check physical distance, being in view doesn't matter

physical_state

tgui state: physical_state

Short-circuits the default state to only check physical distance.

reverse_contained_state

tgui state: reverse_contained_state

Checks if src_object is inside of user.

self_state

tgui state: self_state

Only checks that the user and src_object are the same.

time_offset

Offset for the Operation time

trait_name_map

value -> trait name, generated on use from trait_by_type global

unit_test_mapping_logs

When unit testing, all logs sent to log_mapping are stored here and retrieved in log_mapping unit test.

wj_categories

list of categories for working joes

wj_emotes

dict ("category" : (emotes)) of every wj emote typepath

xeno_datum_list

Xeno caste datums

xeno_queue_candidate_count

The last count of possible candidates in the xeno larva queue (updated via get_alien_candidates)

z_state

tgui state: z_state

Only checks that the Z-level of the user and src_object are the same.