Skip to content

Modelling conventions

The standard covers most worlds with the element types and fields it has. Before reaching for a new field or element type, check whether one of these conventions carries the case. When none does, the Council is where the standard changes.

A world can use any subset of the element types. Only name is required on an element, so a world of nothing but Objects is a valid world, and most tools work with two to four element types.

Supertype and subtype are the world’s own kinds

Section titled “Supertype and subtype are the world’s own kinds”

Every element has two free-text classification fields: supertype, the top-level kind the element belongs to, and subtype, a further classification within it. The schema fixes no values, so each world defines its own: a Location with supertype City and subtype Port, an Institution with supertype Guild.

Both sort elements inside their element type: a Location with supertype City is still a Location, and no supertype adds an element type to the standard.

The API filters on both by exact value (?supertype=City), so keep the vocabulary consistent within a world. Some platform features use supertypes too: an agent’s own Character has supertype Agent, and in-world messages are Narratives with supertype Message (see below).

A link field states that a connection exists: a Character’s location, an Event’s characters. Links point one way, from the element that holds the field.

When the connection itself has content, make it a Relation. A Relation is an element of its own, so it can carry what a link cannot:

Relation field Holds
actor The primary Character defining the relation
background History and origin of the relation
start_date, end_date When it began and ended, in world time units
intensity Significance, 0 to 100
events Events where the relation is involved
characters, institutions, locations, … The elements it connects, across most element types

If the Consul’s ties to the Hegemony have a history and a span worth recording, they are a Relation; the Consul’s current location is a link.

Choosing between neighbouring element types

Section titled “Choosing between neighbouring element types”

The element type definitions draw these lines themselves:

Pair The line
Character / Creature A Character is “an individual with agency and the capacity to make choices”; Creatures “lack the strategic reasoning or social complexity of Characters.”
Institution / Collective Institutions are “organized bodies with purpose and structure”; a Collective “acts as a unit but has no formal governance of its own.”
Species / Collective A Species is “a distinct biological or cultural form of life”; a Collective is “unified by shared traits, contexts, or purpose.”
Object / Construct Objects are “tangible, non-living things that can be made, owned, traded or destroyed”; Constructs are “non-physical, non-character entities that help explain or organize how the world works.”
Phenomenon / Construct Phenomena are “ongoing or emergent conditions… not defined by intent or agency”; Constructs are “frameworks that are made, sustained and lost over time.”
Trait / Ability Traits are “not active powers or learned abilities, but underlying aspects of identity”; an Ability is “a defined action, power, skill, or effect.”
Event / Narrative An Event is “a time-bound happening within the world”; Narratives are “stories told in your world, and can involve the organization or reinterpretation of Events.”
Location / Zone A Location is “a distinct place within the world where activities occur and elements converge”; Zones “are not defined by geometry themselves but gain spatial presence through linked map markers.”

One magic system, three element types. The Ember Art, a school of fire magic, is a Construct. Firebolt, a spell taught in it, is an Ability with the Ember Art as its tradition. The Ember Tide, the force the spell draws on, is a Phenomenon: the Ability’s source, with Firebolt in its empowerments and the mages who can steer it in wielders. The night a mage burned the gates of Varn with it is an Event.

A Zone has no geometry of its own. Its shape on a Map is a set of Markers, each linked to the Map and the Zone, at an x/y coordinate, with an order that sequences them into a polygon or line (0 is the first point). Markers are boundary points and usually carry an empty name. A Pin places one element of any element type at one point on one Map.

A Zone with no Markers is a valid Zone: a region the world names before anyone draws it. Markers added later give it a shape on one Map; the Zone keeps its id and fields, and Markers on a second Map give it a shape there too.

Dates are integers in the world’s own time units, set on the world: a Character’s birth_date, an Event’s start_date and end_date, a Relation’s span. Height, weight, elevation, range and speed use the world’s units, named by length_unit, mass_unit and distance_unit on the world (free text such as cm, kg or km). All numbers are whole, and the API truncates decimals, so choose units small enough that values come out whole.

On a Narrative, story holds the content of the narrative, as told or remembered. description, the base field every element has, holds details about it. Put the text of a tale, a chronicle or a message in story, and an account of it in description.

In-world messages are Narratives with supertype Message. The message profile reads them: its rules, and what onlyworlds.com adds, are on Messages.

Every tool names an element by one triple: the world’s id, the type word and the element’s id. Its three spellings are on Addresses.

A lens is a saved way of reading a world: which elements, how far from a starting set, how much of each. What a lens is, a world read as a graph and the routes that serve lenses are on Lenses.

Two places hold what the element types have no field for:

  • Extension fields (x_*) on the element itself, for small amounts of tool-specific data. They are stored and returned verbatim, up to 64 KB per element. See Fields.
  • Your own database, beside the world, for high-volume data such as logs, statistics or simulation state. Key each row by the element’s id.

Data in either place travels only to the tools that read it. Anything another tool should understand belongs in the schema’s own fields, or in a published extension profile: a named extension field that tools agree to read the same way. Profiles are published, each a page in schema-dist’s profiles/ folder, and Profiles describes each one.