Skip to content

Interactables ​

The Interactables editor (Entities > Interactables).
The Interactables editor (Entities > Interactables).

An interactable is an object of the world that the player can use or hurt: a door, a chest, a lever, a ladder, a sign, a trap, a crafting station, a barrel you can smash. The editor makes the definition; you place the object in a world with the Uniques tool, where a placed object can override some of the settings.

An interactable has one interaction: the thing that happens when it is used. The model, the lock, the targeting and the stats are the same for every kind.

Template ​

An interactable can follow a template for its stats, pools, immunities and growth: all the Wooden Crates share one template. The Template section at the top of the editor chooses it and lists what this object changed on top of it. A template hides the model, sounds, effects, interactions and loot.

Basic properties ​

FieldWhat it does
Display name, Description, Icon, ColorThe name the prompt shows and the editor lists

Visual properties ​

FieldWhat it doesDefault
Object model sceneThe scene of the object: the model, its collision and its animations. Select Model opens the catalog; the scene is shown in a 3D preview under the buttonnone
Model scene scaleSize of the scene, with Uniform scale1, 1, 1

The animations the scene has (open, close, locked, destroyed) are offered in the dropdowns of the interaction.

Interaction ​

FieldWhat it doesDefault
Locked by itemAn item that unlocks the object. A player who has it in the bag opens the lock by using the object. Empty = not lockednone
Consume key on unlockThe key is used up when it unlocks the object. Off: the key staysoff
Interaction cooldownSeconds the object waits after being used before it can be used again. 0 = no wait0.5
InteractionWhat the object does: pick one of the interaction typesnone

Using an object ​

These fields work for every kind of object, whatever its interaction does: a door that needs a skill, a chest that takes time to pick, a node that is gathered from. They are in the Using it section of the editor.

FieldWhat it doesDefault
RequirementsWhat a user needs to use the object: any requirement (a profession level, a tool in the hands, a quest, a class). All must be met. Empty = anyonenone
Message when not metWhat the user is told when they are not. Empty = the reasons the requirements give ("Needs Mining 25 (you have 12)")empty
Hide the prompt until they are metThe "interact" prompt of the object is not shown to a user who cannot use it. Off: the prompt is shown, and using the object says why notoff
Time to use (seconds)How long using the object takes. The user's cast bar shows it and the use happens when it ends. 0 = at once0
Cast bar textThe text of the bar. Empty = "Using" and the name of the objectempty
Moving interruptsWalking away (more than three quarters of a metre) cancels the useon
Taking damage interruptsBeing hurt cancels the useon
User animationThe animation the user plays while the object is used: a social animation of the actions kind (kneel, mine, pick). It stops when the use endsnone
Object animationThe animation of the object's own model that plays when the use startsnone

What happens when a user tries:

  1. The object is locked? Its key opens it (see Locked by item).
  2. The requirements are checked. Not met: nothing happens, the user is told (the message above), and the object's interaction_refused signal fires.
  3. The interaction says whether it can start (a gathering node with nothing left, or a bag with no room, says why).
  4. With a time to use, the cast bar runs. Moving, taking damage (when the box is on), casting an ability or dying cancels it: nothing happens, and the bar flashes. Using the object again while somebody is using it does nothing.
  5. When the time is up the requirements and the interaction are checked again (the user may have changed), and the interaction happens.

The cast bar is the one that shows ability casts, so an interface that has a cast bar shows this one too.

Targeting and stats ​

By default an object is scenery. These switches make it a thing that can be attacked.

FieldWhat it doesDefault
Targetable directlySingle-target abilities can pick it: a spell on a barrel, a heal on a destructible walloff
Targetable by AoEArea abilities hit it: a fireball breaks the cratesoff
Object has statsTurns on automatically when either switch above is on. The object gets a stats data (the same section as a class): a health pool, defenses, immunitiesoff
Damage thresholdThe share of health under which the object counts as damaged (0.7 = below 70 % health). It plays the damaged sound once, and a door reads it: Can open when damaged off keeps a damaged door shut0.7

When the master pool of an object empties, it is destroyed: it plays its destroyed animation (if the scene has one), its destroyed sound and its destruction VFX, stops being a target, and refuses to be used.

Loot ​

Under the interaction. Any interactable can have loot rules, not only containers: each is a loot table with a trigger. On Initialize: the object holds it from the start. On First Access: it is rolled the first time the object is opened (a chest), at the item level you choose. On Destroyed: it is rolled when the object is destroyed (it needs an object that can be targeted, so it has health). What a destroyed object leaves is lootable like a corpse: a destroyed chest can still be opened, and a plain crate with no interaction becomes openable like a container. See Loot Rules.

A placed object can replace the rules of its definition.

Sound and visuals ​

FieldWhen it plays
Interaction SFXThe object is used (after the interaction starts)
Hit soundThe object takes damage (when it has stats)
Damaged soundOnce, when the object first falls under the damage threshold (it is still standing)
Destroyed soundThe object is destroyed
Destruction VFXA visual effect that plays on the object when it is destroyed

The sounds play on the audio component of the object, from the object, so they are heard from where it stands. The interactions have sounds of their own too (the door and container sounds below).

See also ​