← sources

Goal Oriented Action Planning vs Hierarchal Task Network Planning - anybody with NPC dev experience have an opinion on which is more effective for creating interesting combat AI that feel intelligent?

source: reddit (reddit:gamedev)published 2026-10-14 06:39ingested 2026-10-15 02:38

retained text

I'm in early design stages of developing some rather complex combat AI and I want to ensure I choose the right type of NPC decision making process.

I'm looking to develop enemies that feel like they work together, where each member of a squad of enemies has classes (medic, soldier, tech/engineer, etc), so I want their decision making processes to feel reactive to what is happening during combat to ensure they can effectively fulfill their roles, while also feeling like they intelligently know how to correctly approach a task/in what order to perform their actions.

**Goal Oriented Action Planning**

GOAP is of course very well known, you give an AI a task and a toolbox and they start picking the tools they need to achieve their task and you can end up with enemies that all feel very creative and "uniquely individual". If I hadn't heard of HTNP, I would have gone with GOAP.

**Hierarchal Task Network Planning**

My understanding with HTNP is that you have finer control over the order that decisions are made and that in doing so they seem to more realistically "think" about how to tackle a problem/in what order, but it produces less emergent/creative behaviors. Is this an accurate description?

\--

Is my thinking here correct in that one isn't particularly better than the other, but that they should be used for different things? Would it be worth using one for one type of role, and another for another type of role?

It's a tough one to wrap my head around, would appreciate any thoughts, *especially* if you've used ***both.*** I just want to save myself the headache of R&D'ing the whole thing for a year and then learning the one I picked doesn't feel the way I want.

Thanks all, much love.

document fetched 2026-10-15 00:28 · canonical https://reddit.com/r/gamedev/comments/1x5k5f7/goal_oriented_action_planning_vs_hierarchal_task