Skip to Content
Stoatly Docs
Object types

Create an object type

An object type describes a kind of thing in your game, like a Weapon, a Character or a Quest. Creating one is the first step in building a schema. Admins and schema designers can do this. Designers and viewers can't.

The Objects page

Open Objects in the sidebar. It has two tabs: Objects, which lists your object types, and Schema map, which draws them and their links as a map. The Add Object type menu offers four ways to start:

  • New Object type, which creates an empty type.
  • From preset, which starts from a ready-made type.
  • Import from CSV and Import from JSON, which build a type from existing data.
The Add Object type menu, with New Object type, From preset, and the two import options.
The Objects page showing object types as cards.

Create an empty type

Choose New Object type

Open the Add Object type menu and choose New Object type.

Fill in the details

Enter a Name, such as Weapon. Add a Description if you want one, choose a parent under Inherits from if it should build on another type, and pick an Icon. The last three are optional.

The New Object type dialog, with name, description, inherits from and icon.

Create

Stoatly opens the new type, with its built-in Name field ready. The type is a change in your draft until you send it in a pull request.

The Schema map tab, drawing object types and the links between them.

The object type page

The page has tabs for Fields, Enums, Formulas and Visuals, each with a count. Rename the type, change its description or icon, or pick a different parent at the top.

An object type page, showing its fields in groups and the tabs for Enums, Formulas and Visuals.
Types can be marked obsolete, which hides them from the list by default while keeping their fields and records working.

Once the type exists, add fields to it.

On this page