3 ms·
Is there any room in GOAP for weighting certain actions over others? Like, could I imbue a character with personality traits that would direct them to do one th
by dclowd9901 10y ago
Is there any room in GOAP for weighting certain actions over others? Like, could I imbue a character with personality traits that would direct them to do one thing over another?
- Jtsummers 10y agoPer the GOAP paper [0], yes. You can weight different actions. The example used is: Order pizza (to satisfy hunger) cost of 2, make a pie (to satisfy hunger) cost of 8. If the actor only satisfies the preconditions for one, that's what they do. But if they satisfy the preconditions for both, they take the cheaper one. [0] http://alumni.media.mit.edu/~jorkin/goap.html http://alumni.media.mit.edu/~jorkin/goap.html
- stolk 10y agoYes, all actions have a cost associated with it. You can use it in different ways: like you describe: have some agents prefer certain actions, different from the preferences of other agents. The way I use it is to adapt to the environment. For instance, I make walking over to let's say an apple, less costly if the closest apple is near.