Skip to main content

Selection (Data Type)

A string saying which of a player's origins on one layer a type should look at. With swapping, a player can hold more than one origin per layer (a chosen origin, a swapped-in origin and a pool of origins they can swap to), so anything that reads or moves an origin has to say which one it means.

Values

ValueMeaning
mainThe origin the player chose on that layer. This is the default almost everywhere, and the only one that exists on a layer without swapping.
activeThe origin the player is wearing right now: the swapped-in one, or main when nothing is swapped in.
poolThe origins in that layer's swap pool, waiting to be swapped in, not counting the one being worn.
allAny of the three. For a read it matches if any of them does, and for a transfer it means every origin found, not only the first.

Used by

Example

{
  "type": "origins:origin",
  "origin": "origins:phantom",
  "selection": "active"
}

This passes while the player is wearing Phantom, whether it is their chosen origin or one they swapped in.

note

Left out, selection defaults to main on a normal layer and to pool on a swappable one, which matches where each kind of layer keeps its origins.