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  



NWN SCRIPTS

- Jump to comments -
Title  Source v1.08 for Inventory System & Battle AI
Author  Tony K
Submitted / Updated  07-08-2002 / 10-05-2008
Category  Creature Related
Expansions  NWN-1.69
Format  Code Only
Type  Type - General
Includes  BioWare Standard
Description
This is the source code for the henchman inventory control system and battle AI. This version works ONLY with the toolset. See the hakpaks section for the version that works in the override (i.e., the binaries only). The README file now contains a script function reference. It works with the SoU and HotU expansion also.

Files

NameTypeSizeDownloads
henchai108.ziphenchai108.zip
Submitted: 07-08-2002 / Last Updated: 10-05-2008
zip784.32Kb1824
Main zip
henchcreatures.ziphenchcreatures.zip
Submitted: 07-08-2002 / Last Updated: 10-05-2008
zip238.6Kb742
Contains Auldar's henchmen for the original Official Campaign and familiars from Nick D and Tony K. These are the same versions as in the exe release.
henchdialog.ziphenchdialog.zip
Submitted: 07-08-2002 / Last Updated: 10-05-2008
zip1.4Mb813
Contains all of the henchman dialogs from the Henchman Inventory and Battle AI exe release for the original, SoU, and HotU official campaigns. It also contains the familiar and animal companion dialogs for non HotU modules.
READMEv1.08.txtREADMEv1.08.txt
Submitted: 07-08-2002 / Last Updated: 10-05-2008
txt58.59Kb1472
--
SCORE OUT OF 10
9.8
12 votes
View Stats
Cast Your Vote!

AWARDS



PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS





You Must Be Logged In to Participate.
Comments (30):

1 2 3

Posted by Tony_K at 2006-01-0515:52:48    
CRT_Hero, Try this: Search for the HENCH_BLEED_NEGHPS in hench_o0_ai and try commenting out the second that starts with ?find dying creatures to finish off?. Or you could change the definition of HENCH_BLEED_NEGHPS in hench_i0_heal to be 0 or 1. You could also try running a ClearAllActions on nearby creatures.

Posted by CRT_Hero at 2006-01-0401:13:29    
Question: I merged these scripts into a module I'm building that uses a "hovering over death" bleeding script which I wrote... With the basic HOTU A.I., the "SetIsTemporaryNeutral" command worked very well for stopping monsters from attacking a fallen PC... with this code package, it doesn't work at all... I tried switching to a less subtle method of putting a DC 100 sanctuary spell on fallen PCs, but any "late hits" on the PC will freeze/crash the game. Harumph. Any ideas on getting my old factional methods to work? I've tried monkeying around with "hench_i0_ai" a little to try to classify characters with less than 0 hp as dead. But that didn't work either. Help. Otherwise these scripts are splendid. Most definitely!

Posted by Tony_K at 2005-12-1516:41:42    
rereng Mew, The AI does use parry if the skill rank is greater than the creature?s AC minus 10. Look for SKILL_PARRY in hench_i0_melee. The creature must be less than 35% hit points to use parry but you can easily tweak that. At this point I don?t think BioWare will change the GetTalent* functions to by default get spells from equip-able items since it would affect the official campaigns. However, they could add additional parameters (default off) or add new functions to get them. I have thought of using the copy item properties kludge to make the items work but couldn?t think of a good way for it to work for henchmen and you cannot name the wand correctly with scripts (No SetName or way to set the name on object creation). I would actually be much happier with an index parameter to GetCreatureTalentBest to get successive spells instead of the GetCreatureTalentRandom kludge I had to do.

Posted by Mew at 2005-12-1513:56:51    
The ai uses Parry it's extremely ANNOYING In a good way :) It's pretty intelligent about the usage though it does seem to have a preference to kick in when stuff has been damaged - I haven't checked the code this is just from experience.

Posted by nereng at on08/17/05
@lovellin: It's worth a try to submit it as a bug report to Bioware, I think. @Tony K: I'm making myself some new skills-2das, and am wondering about the skill Parry. Does the AI ever put the henchman in Parry-mode if he has a lot of skill in that?

Posted by lovellin at 2005-11-2111:46:28    
For non-henchman NPC, we could replicate the cast spell itemproperties by giving them a wand with the same properties. If the wand is not droppable, this workaround would be transparent for the PC. That the original items will not exhausted when the NPC is defeated, is a minor issue.

Posted by Tony_K at 2005-11-2010:08:53    
lovellin, Your analysis is correct. Any item that can be equipped will not work with the GetTalent* functions. Trying to simulate the spells exactly by looking at the item properties is also difficult because the spell casting level of the spell can?t bet set using ActionCastSpellAtObject with bCheat true unless you override every spell and even then it will not be correct for some of the built in functions like spell resistance checks.

Posted by lovellin at 2005-11-1907:54:45    
I did some tests whether NPC use items containing spells. As far as I could find out, scrolls, potions and wands are used, but no other kinds of baseitems (e.g. rings). I checked your script hench_i0_itemsp where spells are inventarized using the GetTalent... functions. Obviously, the Bioware engine returns only spells in scrolls, potions and wands. As you have more experience with this and I was not able to find enough details in the nwnlexicon, could you tell me if I have analyzed the problem correctly? If yes, I would enhance the scripts for my module by also scanning itemproperties of the item types not handled automatically by Bioware.

Posted by nereng at on08/17/05
Excellent work here. With all the bugs in the standard Bioware AI, this is a must-have for anyone who wants to use henchmen in their modules.

Posted by nereng at on08/17/05
Hmm... upgrading from 1.04 to 1.05 looks a bit more complicated than I had anticipated... Basically, what I did with 1.04 was to only keep the include files (hench_i0* and hench_o0*), while using my own conversation template which has features from all the major henchman packages + my own ideas. I think a detailedlist of all the changes from version 1.04 would be helpful, but it may be a little too much to ask perhaps? Maybe I'll just try to overwrite all the include files, keeping a backup of the quite nicely working version with 1.04! Cheers, and thanks for the great work you've done here!

1 2 3

You must be Logged In to post comments in this section.

 
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 Visual Effects


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