Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN2 SCRIPTS

- Jump to comments -
Name  (Obsolete) Companion AI Fix v1.6
Author  player1
Submitted / Updated  01-01-2008 / 07-16-2009
Category  Creature AI
Type  Type - Combat
Format  Code Only
Patch  1.21
NWN2Game  All
Description
This small add-on fixes several issues with AI of your companions. Note that this mod is more of a showcase for the issues with original game AI, with ways to correct them, then full AI modification (like one made by TonyK).


How to install:

Just put files from archive to your Override folder.


Issues fixed:

1) Bard and Warlock companions won't cast any spells, if wearing Chain Shirt or heavier armor.

This happens due to AI not taking into consideration that spell failure chance from light armor is ignored for Bards and Warlocks. So, if AI sees failure chance higher then 15%, he would not cast any spells at all.

To fix this, I tweaked GetShouldNotCastSpellsBecauseofArmor function that handles this type of behavior. It will now, for Bards and Warlocks, tolerate spell failure chance up to 25%, if wearing light armor, or up to 35% if having Battle Caster feat and wearing medium armor.

2) Badger animal companions won't use their rage ability.

This is one case where fix is really necessary, since you can't manually control animal companions. And solution is simple: AI just needs to check beasts for having barbarian rage and not just barbarians.

3) Bard companion would Inspire Courage, even if Song of Requiem is active, thus canceling it.

The reason why this happens is because when no inspiration is active, Bard will Inspire Courage. But, this check doesn't cover Song of Requiem, which is also disrupted by inspirations (since it is continuing effect). So, to fix this, Song of Requiem needs to be added to GetHasInspireBardSongSpellEffect check.

4) Bard companion won't attempt any songs if they have active inspiration.

Usually, at opening of combat, Bard sings one song and then activates one inspiration. But code for singing song requires that no inspiration is currently active. This is leftover from times when all songs where disrupting inspirations. Since this is not case anymore, that check is removed.

5) Companions with Open Lock behavior setting won't pick locks.

The bug was introduced when adding functionality for familiars to pick locks (needed for Kaji in MotB campaign). Check wasn't done right, so every time when MASTERFAILEDLOCKPICK command was initiated, it run familiar lock picking code and skipped one for regular companions. So companion without familiar would never try to pick a lock.

For fixing this, it is necessary to check for both MASTERFAILEDLOCKPICK command and associate existence in single check, and only if both pass to bypass companion lock picking code and use one for familiars.

6) Companions with spellcasting turned off would still use Dispels or Restorative magic on player controlled character if disabled. And would never use it for other disabled party members, regardless of spellcasting settings.

First issue happens due to CheckForDisabledPartyMembers call never checking caster to see if he has spellcasting enabled or not. As for second issue, the problem was that same CheckForDisabledPartyMembers used obsolete GetHenchman function to iterate between party members, thus only returning currently controlled character. GetNextFactionMember should be used instead.

7) Druid or Ranger companions with Heal Animal Companion spell would waste it on invalid targets.

This happens since there is no special casing to prevent TalentHealingSelf and TalentHeal functions to use this spell on creatures that are not animal companions. There needs to be fallback to weaker healing talent if target is not an animal companion

8) AI controlled Weapon Master would use his Ki Damage, even if Ability usage is turned off

This one was easy to fix. Just added check to see if ability usage is not turned off before trying Ki Damage.

Ever getting annoyed when using Magic Circle vs Evil? With all those sounds playing every single time someone gets near you? If yes is the answer, then this "fix" is for you. It will prevent sp_abjuration_conjure.sef effect (that includes the annoying sound) to show every time someone gets close to you, if you are under effect of Magic Circle vs Evil or Magic Circle vs Good. For installation, just unzip downloaded visualeffects.2da file to your Override folder.


NOTE: Patch 1.23 replaced original AI, with port of TonyK AI, for all NWN2 versions, making these fixes obsolete.

Files

NameTypeSizeDownloads
Companion_AI_Fix_v1.6.zipCompanion_AI_Fix_v1.6.zip
Submitted: 01-01-2008 / Last Updated: 11-17-2008
zip445.28Kb1628
--
SCORE OUT OF 10
N/A
User has decided not to allow voting.
PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




Author has chosen not to allow comments.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Tools


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters