Dialog Tutorial

From Citizens Wiki

Revision as of 09:26, 30 January 2013 by Fullwall (talk | contribs)

In this tutorial, you will learn the basics of the dialog system syntax, and the concepts involved.

Overview

First, let's look at the basic flow of a dialog program. The world of Minecraft can be broken up into a series of events. These are things like talking, combat, block breaks, and so on. The general flow looks kind of like this: event -> listener. This isn't easy to represent in text. How do we make a nice system out of this?

The answer is pretty simple: think of an event as a series of facts, such as a player who was involved, their name, and so on. Each fact has a name or key, and a value eg. the player's name might have a key of "name" and a value of "fullwall". An event is simply a whole lot of facts about what happened. This makes it much easier to reason about in text.