-
Notifications
You must be signed in to change notification settings - Fork 23
Home
FBast edited this page Oct 19, 2019
·
45 revisions
This framework only work with Unity and is currently tested on the last 2019 version.
While utility-based systems can be used in many types of games, they are more appropriate in situations where there are a large number of potentially competing actions the AI can take—often with no obvious “right answer.” In those times, the mathematical approach that utility-based systems employ is necessary to ferret out what the most reasonable action to take is. Aside from The Sims, other common areas where utility-based systems are appropriate are in RPGs, RTS, and simulations.
Source : http://intrinsicalgorithm.com/IAonAI/2012/11/ai-architectures-a-culinary-guide-gdmag-article/
- Firstly, download the last release and import it into your Unity Project.
- Create a script MyAIComponent inheriting from AbstractAIComponent and add it to your GameObject.
- Create scripts inheriting from SimpleEntryNode, DataEntryNode or CollectionEntryNode as data entries.
- Create scripts inheriting from SimpleActionNode or DataActionNode as actions.
- Create a UtilityAIBrain using Unity contextual menu in your Project view.
- Add your custom nodes on the Node graph with an UtilityNode and an OptionNode
- Play unity and click on the AI in the scene using the Tool > AI Debugger to observe the brain activity.