Global Variables  
| Vars | |
| AdminProcCallHandler | Use this for indirect proccalls which require a user | 
|---|---|
| admin_state | tgui state: admin_state | 
| always_state | tgui state: always_state | 
| areas_by_type | An association from typepath to area instance. Only includes areas with uniqueset. | 
| 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 | |
| ckey_to_occupied_mob | dict of ckey -> last occupied mob | 
| conscious_state | tgui state: conscious_state | 
| contained_state | tgui state: contained_state | 
| deep_inventory_state | tgui state: deep_inventory_state | 
| deevolved_ckeys | A list of ckeys that have been de-evolved willingly or forcefully | 
| default_state | tgui state: default_state | 
| 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 | 
| giant_lizards_alive | List of giant lizards that are alive. | 
| hands_state | tgui state: hands_state | 
| hive_state | tgui state: hive_state | 
| hive_state_queen | tgui state: hive_state_queen | 
| 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 | 
| inventory_state | tgui state: inventory_state | 
| larva_pool_candidate_count | The last count of possible candidates in the xeno larva pool (updated via get_alien_candidates) | 
| never_state | tgui state: never_state | 
| new_player_state | tgui state: new_player_state | 
| not_incapacitated_and_adjacent_state | tgui state: not_incapacitated_and_adjacent state | 
| not_incapacitated_and_adjacent_strict_state | tgui state: not_incapacitated_and_adjacent_strict state | 
| not_incapacitated_and_adjacent_turf_state | tgui state: not_incapacitated_turf_state | 
| not_incapacitated_and_adjacent_turf_strict_state | tgui state: not_incapacitated_turf_state | 
| not_incapacitated_and_inventory_state | tgui state: not_incapacitated_and_inventory_state | 
| not_incapacitated_and_inventory_turf_state | tgui state: not_incapacitated_and_inventory_turf_state | 
| not_incapacitated_state | tgui state: not_incapacitated_state | 
| not_incapacitated_turf_state | tgui state: not_incapacitated_turf_state | 
| notcontained_state | tgui state: notcontained_state | 
| 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. | 
| obfs_z | A number between -10 and 10 | 
| observer_state | tgui state: observer_state | 
| 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 | 
| physical_state | tgui state: physical_state | 
| reverse_contained_state | tgui state: reverse_contained_state | 
| roles_allowed_minimap_draw | A player needs to be unbanned from ALL these roles in order to be able to use the minimap drawing tool | 
| self_state | tgui state: self_state | 
| time_offset | Offset for the Operation time | 
| total_dead_xenos | Doesn't count tier 0 | 
| 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. | 
| uppj_categories | list of categories for upp joes | 
| uppj_emotes | dict ("category" : (emotes)) of every uppj emote typepath | 
| wj_categories | list of categories for working joes | 
| wj_emotes | dict ("category" : (emotes)) of every wj emote typepath | 
| wy_droid_categories | list of categories for wy combat droids | 
| wy_droid_emotes | dict ("category" : (emotes)) of every wy droid emote typepath | 
| xeno_datum_list | Xeno caste datums | 
| z_state | tgui 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  
- 
Global lists 
- 
character_trait_groups should be defined BEFORE character_traits because of dependencies. 
- 
When trying to reference specific traits or trait groups, reference these lists, which 
- 
store character traits and character trait groups by their type paths 
- 
Example: 
- 
GLOB.character_traits/datum/character_trait/language/spanish will get the 
- 
"Speaks Spanish" character trait, which you can use to give or remove traits 
ckey_to_occupied_mob  
dict of ckey -> last occupied mob
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.
deevolved_ckeys  
A list of ckeys that have been de-evolved willingly or forcefully
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
giant_lizards_alive  
List of giant lizards that are alive.
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.
larva_pool_candidate_count  
The last count of possible candidates in the xeno larva pool (updated via get_alien_candidates)
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.
obfs_z  
A number between -10 and 10
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.
roles_allowed_minimap_draw  
A player needs to be unbanned from ALL these roles in order to be able to use the minimap drawing tool
self_state  
tgui state: self_state
Only checks that the user and src_object are the same.
time_offset  
Offset for the Operation time
total_dead_xenos  
Doesn't count tier 0
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.
uppj_categories  
list of categories for upp joes
uppj_emotes  
dict ("category" : (emotes)) of every uppj emote typepath
wj_categories  
list of categories for working joes
wj_emotes  
dict ("category" : (emotes)) of every wj emote typepath
wy_droid_categories  
list of categories for wy combat droids
wy_droid_emotes  
dict ("category" : (emotes)) of every wy droid emote typepath
xeno_datum_list  
Xeno caste datums
z_state  
tgui state: z_state
Only checks that the Z-level of the user and src_object are the same.