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.

The constants have the same values. The individual function pages note which ones are duplicates in the "Remarks" section.

NOTE 2: None of the functions contained in this file have prototypes.

Constants

NameValueBrief Description
DC_EASY0
DC_HARD2
DC_MEDIUM1
G_CLASSCHANCE70This is used by some of the template scripts; 100 - this number is the chance of that dialog appearing.

Functions

NameBrief Description
AutoDCInternal 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.
CheckPartyForItemInternal function. Check party for possession of an item.
DoGiveXPInternal function. Gives the designated XP to the object using the design rules for XP distribution.
HasGoldInternal function. Determines if a player has more than a certain amount of gold on them.
HasItemInternal function. Determines if a creature possesses an item.
RewardPartyGPInternal function. Give gold to PC or PC's entire party
RewardPartyXPInternal function. Gives experience to a PC and (optionally) all party members.
TakeGoldInternal function. Removes a given amount of gold from the targets inventory, and optionally removes it from the game.


 author: Charles Feduke, editors: Mistress, Kolyana