CONTENT CONTRACT · VERSION 1
world_object
Something the world shows at an anchor while its conditions hold.
Signature
{ anchor: AnchorRef, id: ContentId, kind: "world_object", look: WorldObjectLook, size_permille: ObjectScale, when: {StoryCondition} }Fields
| Name | Type | Meaning |
|---|---|---|
anchor | AnchorRef | Where it shows, an anchor of the world map. Length: 1…226; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}/[a-z][a-z0-9_]{0,95}$; Reference: map.anchor |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
kind | "world_object" | Discriminant |
look | WorldObjectLook | What it shows. |
size_permille | ObjectScale | Size relative to the look's own. Range: 100…10000; Unit: permille |
when | {StoryCondition} | Global quest stages and world variables under which it shows; empty: always. Items: 0…16 |
Validated example
{
"anchor": "core:valley/camp_kettle",
"id": "core:camp_smoke",
"kind": "world_object",
"look": "smoke",
"size_permille": 1100,
"when": [
{
"max": 2,
"min": 0,
"variable": "core:camp_state"
}
]
}