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  Sunjammer's Armor Functions
Author  Sunjammer
Submitted / Updated  03-20-2006 / 11-22-2006
Category  Scripting routines
Expansions  NWN-1.66
Format  Code Only
Type  Type - Other
Includes  Custom
Description
Sunjammer's Armor Library

This library offers a number of simple functions to expose more armor and shield properties to scripting including the much sought after Base AC (Armor Class) and ACP (Armor Check Penalty).

This library was developed over the last two years on an ad hoc basis in response to various requests posted in the NWN Scripting forum. Since the functions still seem to be much in demand in one form or another I decided to give the library a thorough overhaul. My aim was to slightly expand the functionality; to provide more consistency between functions; and to take advantage of more vigorous naming conventions. However to ensure it is backwards compatible with earlier versions all existing functionality has been retained as deprecated functions.

If you have any constructive comments or suggestions for new functions please let me know here, via the BioBoards or via my own website.

Getting Started

Simply download the ZIP file, extract the ERF and import it into your module. Use the #include directive to incorporate the Armor Library (sj_armor_i) into any script you wish to use the constants and functions in and you're good to go.

All the functions are fully prototyped so once you have saved a script which includes them they will appear in the F2 Auto-complete menu, the Function palette and (when you click on one) in the Help tab.

Files

NameTypeSizeDownloads
sj_armor_200.zipsj_armor_200.zip
Submitted: 03-20-2006 / Last Updated: 03-20-2006
zip3.18Kb359
Sunjammer's Armor Library
SCORE OUT OF 10
10
3 votes
View Stats
Cast Your Vote!

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 (9):

Posted by Sunjammer at 2006-03-26 12:48:46    
I have tweaked my website a bit and you can now find any new armor related functions in the the Neverwinter Nights section under Libraries > Armor > Snippets. These will be appearing in v2.01 in due course.
_________________________
Sunjammer
Code Monkey

Posted by Sir_Elric at 2006-03-24 17:29:36    Voted 10.00 on 03/24/06
Nice work as usual.
_________________________
City of Melnibone
ausnwn.dyndns.org:5121

Posted by Rami_Ahmed at 2006-03-24 14:01:56    Voted 10.00 on 03/24/06
Perfect, just what I needed right now ;)
_________________________
NWN2 stuff:
- Persistent Player Owned Shop System

Some stuff made by me for NWN:
- Persistent Player Owned Shop v2.1
- Item Breakage System (Updated)

Posted by Sunjammer at 2006-03-23 13:05:39    
I'm glad you guys are find functions to your liking and thanks for the comments, the votes and even more so for the suggestions.

With regard to the suggestions I think the best approach might be for me to post any new or expanded functions on my website until they warrant a new release. I'm in the middle of polishing my Footprint System so I'll finish that and then tweak my website a little to accommodate the new stuff. Hopefully I can get that all be done over the weekend but I'll keep you posted.

In the meantime keep the suggestions coming.
_________________________
Sunjammer
Code Monkey

Posted by 69MEH69 at 2006-03-22 22:06:03    Voted 10.00 on 03/22/06
Most excellent and am incorporating these functions into the MBHKit to accomplish my needs there. Needless to say, I will give all appropriate credit to your authorship. Thanks!

Posted by 69MEH69 at 2006-03-22 22:04:36    Voted 10.00 on 03/22/06
Most excellent and am incorporating these functions into the MBHKit to accomplish my needs there. Needless to say, I will give all appropriate credit to your authorship. Thanks!

Posted by Sir_Elric at 2006-03-21 17:54:11    Voted 10.00 on 03/24/06
Presto, here's a simple use to get the base ac of what a player is wearing.

#include "sj_armor_i"
void main()
{
object oPC = GetLastUsedBy();
object oChest = GetItemInSlot(INVENTORY_SLOT_CHEST, oPC);
int nBaseAC = SJ_Armor_GetItemACBase(oChest);
int nAC = GetItemACValue(oChest);
SpeakString("The base AC of what I'm wearing is "+IntToString(nBaseAC));
SpeakString("The AC bonus of the armour I'm wearing is "+IntToString(nAC - nBaseAC));
}
_________________________
City of Melnibone
ausnwn.dyndns.org:5121

Posted by Sunjammer at 2006-03-21 12:03:20    
Since the functions are prototyped and commented I have already provided that information and I can't see any real benefit in duplicating it. However what I can do is put together some "real world" examples of how you might use the functions.
_________________________
Sunjammer
Code Monkey

Posted by Presto ( 200.214.xxx.xxx ) at 2006-03-21 09:45:30    
Hello!
Could you make a simple txt with a tutorial?
For exemple:
funcion XYZ = Do this, and that.
funcion KWY = Just add propertie Z on the shields.

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 Scripts


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