Brains

Brains control the actions of AI. Brains are state machines that invoke one or more actions while in a state and based on requirements can move to other states. The state named Start is a special state that always exists and is the state the AI will start in when it is first activated.

Add new states by pressing the Add State button and delete states by pressing the little trashcan icon on the upper left corner of the state. Add or edit actions to be invoked in this state by clicking on the box below the title bar of the state.

Add connections to other states by clicking the Add Event button which will add a connection below the state. Then left click and drag either from the circle with the T or the circle with the F to the circle on the top left circle on the state you want to move to. Connecting the T will move to the state connected to it if the requirement is evaluated as true and connecting to the F will move to the state connected to it if the requirement is evaluated as false. Not that all connections are evaluated every frame that the AI is in that state.

Click the text in the dark gray box a the top of the state to edit the name of the state. This is useful for debugging purposes.

Hold down the right mouse button and drag to move the view. Use the mouse scroll wheel to zoom in and out and use the scroll bars to move the view.

Existing brains saved as templates can be use by clicking the Choose template button. This will replace whatever state machine is currently being edited. Brains can be saved as templates by pressing the Save as button.

Example brain:This brain is of an AI that moves to a chair, sits in the chair, and then can converse with players.

Example brain: Sheep