Quickstart

The Core of the system is "Reactor" component. You can attach it to every npc character.

Attaching Reactor Component

Reactor Properties

GitBook supports importing content from many popular writing tools and formats. If your content already exists, you can upload a file or group of files to be imported.

Reactor Properties

Debug - Turn on Debug oputput to see the current desired goal for the NPC and Planned chain of actions.

Selected Archetype Name - your custom traits for this NPC (this is the foundation of personality)

Use Reactor - Set true to turn on R.E.A.C.T.O.R character system for GOAP planning.

AI Controller

GOAP AI controller

Next important step is to assign GOAP AI controller to your NPC

Assign GOAP Controller

Inside BP_Goap_AI_Controller you will find the MindCraft properties section

Planning Retries - this is the number of planning attempts. If something goes wrong and there is now valid plan or unknown state of the world MIndCraft will attempt re-planning. This represents the number of retries before going to Idle state or choosing default goal - Relax

Planning Timeout - timeout before re-planning attempts

World BlackBoard Data - Blackboard asset which will represent the world state for this NPC

Goals Data Table - Set of Goals for this NPC (like Eat, Sleep, Relax, Kill player, Chop Trees, Make coffee, praise the developer etc).

Action Data Table - set of possible actions for this NPC (action like Find Object, Go to, Find Cofee Beans, Grind Coffe Beans, Make Coffee etc.)

To make it simple the Goals are final results this NPC might want to achieve and actions are the roadmap to achieve these results. If the NPC is hungry he will look for set of actions that will lead him to the goal of satisfying his need for food.

After this you are setup and ready to create your lifelike NPCs.

Last updated