Skip to content

System Overview Event

SlappedWithSilence edited this page Sep 23, 2021 · 1 revision

The Event System is TXEngine's way of allowing System Elements to interact with each other. One might say that Events are the opposite of Requirements in that respect, as Requirements are TXEngine's way of allowing System Elements to observe other Systems. When a System Element contains an Event, it may execute that Event to perform some discrete action.

Types of Events

There are a number of Event classes that allow designers to perform all sorts of different in-game scenarios:

  • FlagEvent
    • When performed, sets a certain flag to true or false
  • ItemEvent
    • When performed, gives the player a certain item
  • MoneyEvent
    • When performed, gives the player a certain amount of money
  • RecipeEvent
    • When performed, the player learns a certain new recipe
  • SkillXPEvent
    • When performed, the players gains XP for a certain skill

How Events are Used

Each of these events are highly configurable. In general, System Elements will make use of multiple events to execute a specific in-game scenario. Here is a list of some System Elements that make use of Events:

  • Conversations

    • A Conversation may trigger Events when the player reaches a certain dialog. This allows the Conversation to reward players with Items or Money for reaching the correct dialog state.
  • Crating Recipes

    • A Crafting Recipe may trigger events when the player successfully crafts with it. For example, if a designer has created a Skill named "Smithing", they may want certain Recipes to give the player XP for the Skill. This is possible by giving those Recipes a SkillXPEvent.

Skills - A Skill may trigger Events when the player reaches a certain level. For example, if a player gets their "Alchemy" skill to level 50, a designer could reward the player with a fancy potion via an ItemEvent.

Getting Started

JSON Formatting Guide

Embedded JSON Structures

Designing Your Game

Clone this wiki locally