byond - Modules - TypesVar Details - Proc Details

Events

Vars

controllist of all datum/round_event_control. Used for selecting events based on weight and occurrences.
frequency_lowerLower bound for how frequently events will occur
frequency_upperthe latest an event can happen after a previous event
runninglist of all existing /datum/round_event
scheduledThe next world.time that a naturally occuring random event can be selected.

Procs

check_eventchecks if we should select a random event yet, and reschedules if necessary
rescheduledecides which world.time we should select another random event at.
spawn_eventselects a random event based on whether it can occur and it's 'weight'(probability)

Var Details

control

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

frequency_lower

Lower bound for how frequently events will occur

frequency_upper

the latest an event can happen after a previous event

running

list of all existing /datum/round_event

scheduled

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

Proc Details

check_event

checks if we should select a random event yet, and reschedules if necessary

reschedule

decides which world.time we should select another random event at.

spawn_event

selects a random event based on whether it can occur and it's 'weight'(probability)