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

gamemode

Vars

allow_pop_scalingWhether we allow pop scaling. This is configured by config, or the storyteller UI
event_frequency_multiplierEvent frequency multiplier, it exists because wizard, eugh.
event_poolsAssociative list of control events by their track category. Compiled in Init
event_track_pointsAssociative list of even track points.
event_tracksList of our event tracks for fast access during for loops.
forced_next_eventsAssociative list of tracks to forced event controls. For admins to force events (though they can still invoke them freely outside of the track system)
last_point_gainsLast point amount gained of each track. Those are recorded for purposes of estimating how long until next event.
min_pop_thresholdsMinimum population thresholds for the tracks to fire off events.
next_storyteller_processNext process for our storyteller. The wait time is STORYTELLER_WAIT_TIME
panel_pagePage of the UI panel.
point_gain_multipliersConfigurable multipliers for point gain over time.
point_thresholdsPoint thresholds at which the events are supposed to be rolled, it is also the base cost for events.
pop_data_cachedWhether we looked up pop info in this process tick
pop_scale_penaltiesAssociative list of pop scale penalties.
pop_scale_thresholdsAssociative list of pop scale thresholds.
ready_playersReady players for roundstart events.
roundstart_event_viewWhether we are viewing the roundstart events or not
roundstart_point_multipliersConfigurable multipliers for roundstart points.
scheduled_eventsEvents that we have scheduled to run in the nearby future
statistics_track_pageCurrent preview page for the statistics UI.
storytellerOur storyteller. He progresses our trackboards and picks out events
storyteller_haltedWhether the storyteller has been halted
storytellersList of all the storytellers. Populated at init. Associative from type
uncategorizedList of all uncategorized events, because they were wizard or holiday events
voted_storytellerResult of the storyteller vote. Defaults to the guide.

Procs

calculate_ready_playersWe need to calculate ready players for the sake of roundstart events becoming eligible.
can_inject_antagsWhether events can inject more antagonists into the round
force_eventSchedules an event.
force_next_eventforce_next_event
get_antag_capGets the number of antagonists the antagonist injection events will stop rolling after.
get_candidatesGets candidates for antagonist roles. Todo: Split into get_candidates and post_get_candidates
get_correct_popcountGets the correct popcount, returning READY people if roundstart, and active people if not.
get_scheduled_by_event_typeget_scheduled_by_event_type
halt_storytellerhalt_storyteller
handle_post_setup_roundstart_eventsSecond step of handlind roundstart events, happening after people spawn.
handle_pre_setup_roundstart_eventsBecause roundstart events need 2 steps of firing for purposes of antags, here is the first step handled, happening before occupation division.
load_config_varsLoads config values from game_options.txt
load_event_config_varsLoads json event config values from events.txt
make_antag_chanceHandles late-join antag assignments
post_setupEveryone should now be on the station and have their normal gear. This is the place to give the special roles extra things
pre_setupAttempts to select players for special roles the mode might have.
refund_scheduled_eventRefunds and removes a scheduled event.
remove_scheduled_eventRemoves a scheduled event.
resetFrequencyResets frequency multiplier.
roll_pre_setup_pointsWe roll points to be spent for roundstart events, including antagonists.
schedule_eventSchedules an event to run later.
set_storytellerset_storyteller

Var Details

allow_pop_scaling

Whether we allow pop scaling. This is configured by config, or the storyteller UI

event_frequency_multiplier

Event frequency multiplier, it exists because wizard, eugh.

event_pools

Associative list of control events by their track category. Compiled in Init

event_track_points

Associative list of even track points.

event_tracks

List of our event tracks for fast access during for loops.

forced_next_events

Associative list of tracks to forced event controls. For admins to force events (though they can still invoke them freely outside of the track system)

last_point_gains

Last point amount gained of each track. Those are recorded for purposes of estimating how long until next event.

min_pop_thresholds

Minimum population thresholds for the tracks to fire off events.

next_storyteller_process

Next process for our storyteller. The wait time is STORYTELLER_WAIT_TIME

panel_page

Page of the UI panel.

point_gain_multipliers

Configurable multipliers for point gain over time.

point_thresholds

Point thresholds at which the events are supposed to be rolled, it is also the base cost for events.

pop_data_cached

Whether we looked up pop info in this process tick

pop_scale_penalties

Associative list of pop scale penalties.

pop_scale_thresholds

Associative list of pop scale thresholds.

ready_players

Ready players for roundstart events.

roundstart_event_view

Whether we are viewing the roundstart events or not

roundstart_point_multipliers

Configurable multipliers for roundstart points.

scheduled_events

Events that we have scheduled to run in the nearby future

statistics_track_page

Current preview page for the statistics UI.

storyteller

Our storyteller. He progresses our trackboards and picks out events

storyteller_halted

Whether the storyteller has been halted

storytellers

List of all the storytellers. Populated at init. Associative from type

uncategorized

List of all uncategorized events, because they were wizard or holiday events

voted_storyteller

Result of the storyteller vote. Defaults to the guide.

Proc Details

calculate_ready_players

We need to calculate ready players for the sake of roundstart events becoming eligible.

can_inject_antags

Whether events can inject more antagonists into the round

force_event

Schedules an event.

force_next_event

force_next_event

Forces next event scheduling/firing for track

get_antag_cap

Gets the number of antagonists the antagonist injection events will stop rolling after.

get_candidates

Gets candidates for antagonist roles. Todo: Split into get_candidates and post_get_candidates

get_correct_popcount

Gets the correct popcount, returning READY people if roundstart, and active people if not.

get_scheduled_by_event_type

get_scheduled_by_event_type

Returns the scheduled event, if any, by the event's type. Returns null if no such event exists.

halt_storyteller

halt_storyteller

Used to halt/unhalt and properly log storyteller

handle_post_setup_roundstart_events

Second step of handlind roundstart events, happening after people spawn.

handle_pre_setup_roundstart_events

Because roundstart events need 2 steps of firing for purposes of antags, here is the first step handled, happening before occupation division.

load_config_vars

Loads config values from game_options.txt

load_event_config_vars

Loads json event config values from events.txt

make_antag_chance

Handles late-join antag assignments

post_setup

Everyone should now be on the station and have their normal gear. This is the place to give the special roles extra things

pre_setup

Attempts to select players for special roles the mode might have.

refund_scheduled_event

Refunds and removes a scheduled event.

remove_scheduled_event

Removes a scheduled event.

resetFrequency

Resets frequency multiplier.

roll_pre_setup_points

We roll points to be spent for roundstart events, including antagonists.

schedule_event

Schedules an event to run later.

set_storyteller

set_storyteller

Always call this to set the storyteller Called by the storyteller system on roundstart and after a vote finishes. When forced via game panel, forced = TRUE, and force_ckey contains the ckey of the admin who forced it