AI smarts

Talk about Neversummer 4 with your fellow players.
powerferret
Pk Bait
Posts: 95
Joined: Wed Apr 07, 2004 12:17 pm
Location: Prime material
Contact:

AI smarts

Post by powerferret »

In regards to the A.I., how does it go about choosing a target in a party? Every time Ive ever partied, 80-90% of all the mosnters we fight will make a beeline for my character, and proceed to chase me around in circles while my other party members hack away at them. I cant figure out why this is happening, because I can be higher level, lower level, higher AC, lower AC, higher health, lower health than my party, or whatever. Im a ranger by the way, and ive also seen it happen to either bards or rogues (not sure which) who are using a bow. Just seems kindof odd that the monsters would ignore the characters that are in melee combat, already engaged and doing sigificant damage, to chase me around, all the while still getting hit by the melee characters.
Image
Eagles may soar, but weasles don't get sucked into jet engines.

NS character: Aadrian Monk-Ranger Extraordinaire

cyberman
Noob
Posts: 5
Joined: Wed Oct 15, 2003 10:28 pm

Post by cyberman »

Wouldn't surprise me if monsters have a propensity to attack a certain type or class of character more often or less often.

In Shadowbane monsters aggroed bards a whole lot (bards were the main buffers in sb). Low level bards were always told to stay back, and don't attack.
Nullified (Human/Druid <10)

The Circle

Kell Of Neversummer
Pk Bait
Posts: 61
Joined: Mon Apr 12, 2004 4:59 pm
Location: Harbison Canyon, Ca

Post by Kell Of Neversummer »

I thinl you will find they tend to attack the first person that attacks them, and ignore subsequent attackers - this was the default in the original NWN.

powerferret
Pk Bait
Posts: 95
Joined: Wed Apr 07, 2004 12:17 pm
Location: Prime material
Contact:

Post by powerferret »

no, i purposely wait untill somone is attacking something before i shoot at it, it can be almost dead and it will then ignore whoever is killing it to come attack me. Example, I was in a group fighting ogres, there were 6 of them, 2 were attackin one tank, 1 was attacking another and 2 were attacking one guy and the the last attacked me, after killing the one that was attacking me, i switched to bow and shot one of the ogres fighting a melee guy, then all the remaining ogres started chaseing me.
Image
Eagles may soar, but weasles don't get sucked into jet engines.

NS character: Aadrian Monk-Ranger Extraordinaire

User avatar
Joran
Spamalot
Posts: 584
Joined: Mon Dec 16, 2002 1:00 am
Location: Austin, TX

Post by Joran »

Without going into details, there's an alogrithm the AI uses to determine the relative danger of a certain target, and usually tries to go with the one the poses the most danger. This is based on a number of things - for example, predefined notions such as "kill class X first" or things calculated on-the-fly such as total damage dealt to you by that target, etc.

Later on in the fight, it sometimes switches to "cleanup" mode, instead of targetting the most important or dangerous target, it tries to get rid of the one with the least HP.

There are also a few other types of calculations used, but generally those are the most heavily favored.

powerferret
Pk Bait
Posts: 95
Joined: Wed Apr 07, 2004 12:17 pm
Location: Prime material
Contact:

Post by powerferret »

ah ok, just makin sure it wasnt a bug or something
Image
Eagles may soar, but weasles don't get sucked into jet engines.

NS character: Aadrian Monk-Ranger Extraordinaire

ToxicOkie
Pk Bait
Posts: 82
Joined: Sat Apr 10, 2004 9:57 pm

Post by ToxicOkie »

heres a thought that demolishes the custom AI...
the other day i experimented when i had gotten a darkness and a true see... i blasted them both on near a very heavy monster populated area where non of them could even see me.. i pulled out a bow and just took em all out and they dident even look at what was killing them, they never saw me so they dident come attack me

User avatar
Joran
Spamalot
Posts: 584
Joined: Mon Dec 16, 2002 1:00 am
Location: Austin, TX

Post by Joran »

Another reason to remove darkness from the game entirely...

JesterOI
Resident Spam King
Posts: 1016
Joined: Wed Jan 15, 2003 4:14 am
Location: SPAM!!!ville
Contact:

Post by JesterOI »

Joran wrote:Another reason to remove darkness from the game entirely...
Or just make the monsters run away out of range :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink:

Or give monsters an item that has a couple charges of ultravision on it, or a buddy that can cast it on them :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink:
LVL 69 LFGS!!!
Image
Image
The Hasselhoff 4 3v3r!!! Metis n3v3r!!!

Revenge
Pk Bait
Posts: 74
Joined: Thu Mar 18, 2004 7:16 pm

Post by Revenge »

Ack no don't remove darkness! That spell has saved my life so many times already! You find yourself swamped by too many monsters, use the innate drow darkness and run for the hills.

But yeah I've seen the custom AI at work, and it's nicely done to say the least. I noticed before that when I got down to 10/35 hp fighting a single shadow, the other 4 or so shadows fighting my party suddenly broke off and all came after me! Even nastier is that I'd run off and lose them, they'd go back to my party, and the moment I came back into view they'd all break off and start chasing me again even if I didn't attack!

And ofcourse, the instant they see a little "Sneak Attack" label floating up over my head, they realise that they can more than half the damage I am doing by going for me instead, even if someone else is hurting them at about the same rate even without a sneak attack.

It's a little scary, but very cool :)

EDIT: Come to think of it I've seen for myself that if you shoot a monster with a bow and they can't see you they don't react. This means you can pretty easily abuse any cave corner... Considering that players have arrow tracers to work with, can't you make it so that if a monster ever gets damaged while in idle status, it's first reaction is to run to the origin of the attack? That way even if they can't see the attack, they atleast get closer to give themselves a better chance of finding their harasser. In the above example, under this tweak, those heavy monsters would have all run into the centre of the darkness, and once they were close enough they would have been able to spot and attack him (as any player would have done). Also casting ultravision and see invis, or using potions of the same effect, tend to be pretty high on a normal player's list of things to do when under attack from something you cant see.

Agent Shiny
Looking for group
Posts: 120
Joined: Fri Jan 17, 2003 5:48 am
Location: Turn around

Post by Agent Shiny »

i think the script AI on summons is a bit weird...
i mean yes... i summoned a friggin lemure of all...
still it's screwed since when i say attack nearest creature. it attacks the nearest creature but after that IT stays where it was meaning if you move further deeper. IT wouldnt follow you.
but other summons are working correctly.
is it just the lemure?
but still attack nearest creature does not mean stay in 1 place all the time like stand ground or something =D
~Oblivion~

JesterOI
Resident Spam King
Posts: 1016
Joined: Wed Jan 15, 2003 4:14 am
Location: SPAM!!!ville
Contact:

Post by JesterOI »

Agent Shiny wrote:i think the script AI on summons is a bit weird...
i mean yes... i summoned a friggin lemure of all...
still it's screwed since when i say attack nearest creature. it attacks the nearest creature but after that IT stays where it was meaning if you move further deeper. IT wouldnt follow you.
but other summons are working correctly.
is it just the lemure?
but still attack nearest creature does not mean stay in 1 place all the time like stand ground or something =D
Hit v e e, that's the follow me command
LVL 69 LFGS!!!
Image
Image
The Hasselhoff 4 3v3r!!! Metis n3v3r!!!

Agent Shiny
Looking for group
Posts: 120
Joined: Fri Jan 17, 2003 5:48 am
Location: Turn around

Post by Agent Shiny »

in normal nwn... it still follows you though, that was my point. =D
~Oblivion~

Chimaira
Looking for group
Posts: 113
Joined: Thu Jul 24, 2003 6:48 pm

Post by Chimaira »

Joran wrote:Another reason to remove darkness from the game entirely...
The normal monster AI NWN has still makes monsters sitting ducks once they are blind, as soon as you KILL(yes kill, it actually has to die) the other remaining monsters will come after you, same with darkness, same with WOF, same with mass blindness/deafness. So I think the whole problem lies with the AI, rather then the spell, even tho darkness was bugged from the beginning NWN came out, the same is true with the blind effect in general.

XxDkCobraxX
Pk Bait
Posts: 62
Joined: Sat Mar 01, 2003 10:42 pm
Location: Someplace that is probably designed to be rpg-ish or fear-inspiring in nature.
Contact:

Post by XxDkCobraxX »

i have an AI issue with my summons. seems summons attack the monster furthest away from you at all times. my Arrowhawk summon enjoyed luring one enemy to me, then instead of staying and fighting with that enemy ran to the next nearest and repeated the process!! kinda tough to rely at all on your helper if said helper is running away from the battle to create a bigger battle all the time.
-|-Rent-|-

Ring ring ring ring ring....Banana Phone!

Locked

Return to “General NS4 Discussion”