EVENT-DIALS
A dial is a value of an event that can be changed while it runs, without touching its script: the size of a wave, the time between raids. The plan declares each dial with what it allows, and the game refuses anything else.
knobs: { raid_size: { def: 5, min: 3, max: 8 },
inner_guard: { def: 'weak', allowed: [ 'weak', 'strong' ] } }
(def is the dial's default: default is a word DeadScript keeps for switch.) A script reads one with Scenario.current.knob( 'raid_size' ) and may change one with setKnob( 'raid_size', 6 ) (true, or false when the value isn't allowed). An immortal types event set olden-road-raid raid_size 6. Names are lower-case letters, digits and _; at most 16 dials. A dial keeps its value through a reboot; when a new version of the plan no longer allows it, it goes back to its default (the log says so).