Skip to content

Create New Relationship Types

Shi Johnson-Bey edited this page Feb 21, 2024 · 2 revisions

How to create new Relationship Schemas

This guide explains how to create new Relationship Schemas that specify what starting stats and traits to assign to a relationship given the agent type of the owner and target of the relationship. Schemas make it easier to construct many of the same relationship categories without repeating the same initial configuration process.

  1. Create a new Relationship Schema ScriptableObject by right-clicking in the Project window and selecting Create > TDRS > Relationship Schema.
  2. Set the Owner Type to the agent schema owners of this relationship type will have.
  3. Set the Target Type to the agent schema that targets of this relationship type will have.
  4. Determine what stats should be used to model your relationship. For character-to-character relationships, these values might be friendship, romance, trust, reputation, or opinion. The goal is to choose stats that tie into the systems and mechanics of your game.
  5. Decide if relationships of this type should start with any default traits.
  6. Add your new relationship schema to the Relationship Schemas list on your SocialEngineController instance.

Sample Relationship Schema

relationship schema screenshot