SIMs Type AI
You might also consider looking at Gamasutra, which has published several articles on The Sims and its creator, Will Wright.
Cheers,
Timkin
[edited by - Timkin on February 4, 2003 8:06:58 PM]
A true OO model must be in place.
Each world object is a stand-alone code object.
Each world object contains a list of desires it can satisfy (the fridge says "I satisfy hunger"). This list gets broadcast to a certain range. If a Sim walks near the fridge, he "hears" it saying it has food.
Each world object contains a list of actions that it can do. These supply the pop-up lists for the player to choose or the Sim can choose on his own.
Each action of an object contains the data on how to use it - including the animations. Therefore, the fridge shows the Sim object what it looks like to open the fridge, get food out etc. The stereo tells the Sim how to dance, etc.
Therefore, a Sim doesn''t know how to do too much on its own other than the basic necessities of getting around. It relys on the objects in the world to tell it what to do when it uses them. This has 2 benefits. It cuts down on the size of a Sim object since it doesn''t always need to carry around the animations of everything possible. Also, it makes for fantastic expandability since all one need do is create the art and action code for a new object and drop it into the game. Every Sim now knows what the object satisfies, what it can do, and how to act when it uses the object.
This relates very well to our discussion of open-ended worlds, btw.
Dave Mark - President and Lead Designer
Intrinsic Algorithm - "Reducing the world to mathematical equations!"
Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play
"Reducing the world to mathematical equations!"
Nos Obligatus Peto Veritas
In the end, it boils down to a +/- on the relationship level.
Dave Mark - President and Lead Designer
Intrinsic Algorithm - "Reducing the world to mathematical equations!"
Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play
"Reducing the world to mathematical equations!"
http://citeseer.nj.nec.com/kallmann99behavioral.html
http://citeseer.nj.nec.com/kallmann98modeling.html