Visual Scripting

Visual scripting is used to control AI, Conversations, Area triggers, Switches, and Quests.

Visual scripting uses Requirements and Actions for game logic. Requirements are queries that return true or false. Actions run some code to perform some work.

AI Brains use requirements to determine when to move between states of an AI brain state machine. Actions are called when in a particular AI brain state to perform work.

An Area trigger uses requirements to determine which actions to invoke when the player moves into or out of the area sphere.

A Switch uses requirements to determine which actions to invoke when a switch is activated or deactivated by a player action.

Conversations use requirements to determine which conversation options are valid or can be shown to the player as well as deciding what the starting node of a conversation would be.

AI Combat brains use requirements to determine what combat actions to take when the AI needs to make a combat decision.

Actions

Requirements

Procedures

Brains

Quests

Conversations

Combat Behaviors

Variables

Moving entities

Visual scripting examples