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

events

Vars

controllist of all datum/round_event_control. Used for selecting events based on weight and occurrences.
currentruncache of currently running events, for lag checking.
frequency_lowerThe lower bound for how soon another random event can be scheduled.
frequency_upperThe upper bound for how soon another random event can be scheduled.
runninglist of all existing /datum/round_event currently being run.
scheduledThe next world.time that a naturally occurring random event can be selected.
wizardmodeWill wizard events be included in the event pool?

Procs

TriggerEventDoes the last pre-flight checks for the passed event, and runs it if the event is ready.
resetFrequencySets the event frequency bounds back to their initial value.
spawnEventSelects a random event based on whether it can occur and its 'weight'(probability)
toggleWizardmodeToggles whether or not wizard events will be in the event pool, and sends a notification to the admins.

Var Details

control

list of all datum/round_event_control. Used for selecting events based on weight and occurrences.

currentrun

cache of currently running events, for lag checking.

frequency_lower

The lower bound for how soon another random event can be scheduled.

frequency_upper

The upper bound for how soon another random event can be scheduled.

running

list of all existing /datum/round_event currently being run.

scheduled

The next world.time that a naturally occurring random event can be selected.

wizardmode

Will wizard events be included in the event pool?

Proc Details

TriggerEvent

Does the last pre-flight checks for the passed event, and runs it if the event is ready.

resetFrequency

Sets the event frequency bounds back to their initial value.

spawnEvent

Selects a random event based on whether it can occur and its 'weight'(probability)

Arguments:

toggleWizardmode

Toggles whether or not wizard events will be in the event pool, and sends a notification to the admins.