Members - Reputation: 100
Posted 04 December 2011 - 09:16 PM
Giveing NPC monsters/creatures LVL's of inteligence based on a 1-10 LVL system one being the least and 10 being the most intelegent....Then giveing the NPC's diffrent actions depending on the lvl of intelegence.
For Example: a giant rat has an AI lvl of 1 so it knows basic functions like bite,run,eat,drink.
while a goblin has an AI of 5 so it can use low forms of magic and simple weapons also has the functions like attack,defend,and flee
Then a NPC human with an AI of 10 he can cast all fourms of magic relevent to its chosen class craft items speak multiple languages weild advanced weaponry so on and so fourth.
if anyone has tried this let me know how it turned out
Crossbones+ - Reputation: 3852
Posted 05 December 2011 - 03:28 AM
If you want creatures with a wide range of intellectual ability, you don't need an explicit "intelligence tier" stat: just define a lot of possible capabilities and assign many or few to different monster races.
You list several possible specialties that you can arrange to be important in the game (languages, crafting, advanced weapon use, magic) along with functions that appear too basic to be good differentiators: eating and drinking, attacking (including biting), defending, fleeing (including running).
Some ways to attack, defend or flee might be "smarter" than the baseline, but I suggest designing the combat system in detail to understand what meaningful advanced maneuvers could be introduced.
Omae Wa Mou Shindeiru
Members - Reputation: 1585
Posted 08 December 2011 - 08:19 AM
You 'dumb' objects may just do the trigger/charge-at-player(singletarget)/attack-player which can be handled by fairly simple standard FSM+pathfinding+one or more random attacks (with dif animations triggered on client)
These could all be ganged together with their simple processing/data/states.
Simple 'canned' waypoint traversal routes can be used to make them less like the killer mannekins you see in too many games
More complicated objects behavior might handle multiple targets (and switch on opportunity - so have to recheck priorities frequently)
They may have more complicated maneuvering along with multiple attack/defense actions (probably with logic as to which to use when and against which target)
They may have more modes of behavior (offensive/defensive/retreat) that change the action selections and the goals.
This tier has more flexible data requiremenst and more complicated scripted logic and has to carry over/resume its states. The processing is likely a magnitude or more than the dumb objects and may have to be processed 'round robin' when decisions are decided.
Even more complicated objects coordinate with other objects on their side (signal others to set up supported tactices, etc..)
An 'overlord' object might launch or control lower level objects and may not even exist physically but be a group controller in a local scenario.
Such control may have to analyze positional strengths/influences and risk/cost of where/when to push the lesser objects it controls.
Beyond that would be AI that could match the player in timely moves/countermoves evenly in a complex game (not just the carefully choreographed limited special scripting some games have) , but thats getting into processing resources and behavior programming much too costly (as yet). Something general enough to take on the player in any situation with any resources available and even give the player a village idiots response just isnt doable.
Oh and the lowest of all (what I refer to as 'furniture' objects) are usually just reactive to actions done by higher tiered objects. Physics and transmutations (ie- set on fire) or mechanisms. Though I supposed you might have ones with more than an instantaneous reaction to being triggered and some may have to arbitrate between multiple effects being applied to them. There will probably be more of these in games as the static level map triggers cant handle objects that can be moved around or deformed/inventoried and so they have to be changed to be more independant objects.