Skip to main content

SCRIPT_SLOT_SEED

Constant SCRIPT_SLOT_SEED 

Source
pub const SCRIPT_SLOT_SEED: ResRef;
Expand description

The resref a script slot holds when a file does not name one.

A door’s constructor pre-arms all fifteen slots with the literal string "default", and a trigger’s does the same for its seven, so an absent hook on either resolves to that name rather than to nothing. This is the mechanism behind the documented traps.2da fallback: OnTrapTriggered becomes "default" on its own, which is one of the three spellings that routes to the table. A placeable’s constructor arms nothing, so its hooks really are empty when absent.