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.
- Create a new
Agent SchemaScriptableObject by right-clicking in the Project window and selectingCreate > TDRS > Agent Schema. - Set the
Agent Typefield to your desired category name. This value might be something like "character", "faction", or "family". - 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.
- 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
factionso you know which are factions when performing effects from social events. - Add your new agent schema to the
Agent Schemaslist on yourSocialEngineControllerinstance.
Sample Agent Schema
