Nw i0 tool

From NWN Lexicon
Jump to: navigation, search



nw_i0_tool

NOTE 1: This file contains several constants and functions that are also present in nw_i0_plot. The nw_i0_plot include file is more complete than this one.<br /><br />The constants have the same values. The individual function pages note which ones are duplicates in the "Remarks" section.<br /><br />NOTE 2: None of the functions contained in this file have prototypes.

Constants

Name Value Brief Description
DC_EASY 0
DC_HARD 2
DC_MEDIUM 1
G_CLASSCHANCE 70 This is used by some of the template scripts; 100 - this number is the chance of that dialog appearing.


Functions

Name Brief Description

AutoDC

Internal function. Determines whether a skill check succeeds.

NOTE: The version of this function located in nw_i0_plot is a much better version to use. It can test for DCs superior through epic. It also has tests for charmed and dominated effects.

CheckPartyForItem

Internal function. Check party for possession of an item.

DoGiveXP

Internal function. Gives the designated XP to the object using the design rules for XP distribution.

HasGold

Internal function. Determines if a player has more than a certain amount of gold on them.

HasItem

Internal function. Determines if a creature possesses an item.

RewardPartyGP

Internal function. Give gold to PC or PC's entire party

RewardPartyXP

Internal function. Gives experience to a PC and (optionally) all party members.

TakeGold

Internal function. Removes a given amount of gold from the targets inventory, and optionally removes it from the game.



 author: Charles Feduke, editors: Mistress, Kolyana