| To give you a brief,
simplified overview of the AI methods used in the game,
I can tell you that the Morrowind system consists of four
primary types all integrated into the game editor:
1. The State Machine
In Morrowind, a state machine handles many of the NPC
actions. The NPC actions are based on a no-priority
queued system of "packages." Using these,
a designer can assign various pre-engineered tasks to
an NPC -- such as wandering or following -- in addition
to movement states that the NPC will perform automatically
as conditions call for them. Examples include how and
when to fly or swim, and how to communicate between
themselves. This final capability adds greater depth
to grouping behaviors and responses from other characters
throughout the game.
2. Rule Based
Rule-based logic takes over in combat and helps the
NPC determine optimal range, target, weapon, and spell
selection. This logic evaluates various capabilities
and stats such as fatigue, encumbrance, attributes,
and skills, and applies these factors to the decision-making
process.
3. Random Generation
Not all actions are derived from strict interpretations
of rules and states. To add variety to behaviors, some
degree of random element is rolled carefully into the
mix.
4. Scripted
Another important method used is one in which a game
designer can directly alter the standard behavior of
a character by writing scripts, or simplified code commands.
This gives us the ability to custom tailor the characters
with dialog and behaviors far beyond the generic handling.
|