Create New Agent Types - ShiJbey/TDRS GitHub Wiki

How to create new Agent Schemas

This guide explains how to create new Agent Schemas that specify an agent's category, starting stats, and starting traits. Schemas make it easier to construct many of the same agent categories without repeating the same initial configuration process.

  1. Create a new Agent Schema ScriptableObject by right-clicking in the Project window and selecting Create > TDRS > Agent Schema.
  2. Set the Agent Type field to your desired category name. This value might be something like "character", "faction", or "family".
  3. Determine what stats should be used to model your agent. For characters, these values might be various facets of a character's personality. The goal is to choose stats that tie into the systems and mechanics of your game.
  4. Decide if agents of this type should start with any default traits. For filtering purposes in preconditions, it might be helpful to give all factions a custom trait with the ID faction so you know which are factions when performing effects from social events.
  5. Add your new agent schema to the Agent Schemas list on your SocialEngineController instance.

Sample Agent Schema

agent schema screenshot