Commands
Commands work very similar to Yarn functions, but use a different syntax and are able to modify the game world. As a consequence of their similarity, registering custom commands is very similar to registering custom functions.
Command Registration
Just as with Yarn functions, registration happens when creating a DialogueRunner
. Let's again modify the example from the Quick Start: