gamemode 
Vars | |
| 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. |
Procs | |
| 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 |
| 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 |
| halt_storyteller | halt_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 |
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