News for hackers. Stuff that matters.
Re:Alter-ego - A Reactive AI Library by pvg on Saturday July 03, 2010 @07:34PM (#1484757)
I'm not sure you answered the poster's question, though. The criteria you describe are equally applicable to a bunch of if statements.
Re:Alter-ego - A Reactive AI Library by _delirium on Saturday July 03, 2010 @07:43PM (#1484772)
Well, you get basically nothing for free with the if statements; you have to explicitly code every possible variation in reactive behavior. The ideal system is one that lets human specify the parts they want to specify, and not specify the parts they don't want to specify, so you say "I want you to do X", and then it does the right thing in thousands of possible scenarios.

I mean ultimately, all AI is just a higher-level way of writing normal programs, because it compiles down to the same assembly code as everything else. It's just an issue of what you have to write explicitly, and what you get seemingly "for free". In many areas, the human wants to specify very little (say, a fitness function, or some planning operators plus a plan goal) and then get an automatic answer, but in areas like game-AI, the human wants to specify quite a bit more, but still wants some stuff for free.

So the difficult problem is coming up with a behavior-specification language, supported by a backend that implements it, that lets people specify exactly the parts of things like NPC behavior they want to specify, but then figures out how to apply them in various situations, resolve conflicts, enact them jointly, etc. NPC designers really do have a ton of specific things they have in mind for the NPC's behaviors and personality that they want to be able to encode somewhere, but they don't want to literally have to script every possible variation on every possible NPC interaction, since that blows up exponentially, especially with multiple NPCs and nonlinear storylines. Admittedly, behavior trees are fairly far towards the "you don't get much for free" end of the spectrum, even compared to other reactive planners.