Nw o0 itemmaker

From NWN Lexicon
Jump to: navigation, search



nw_o0_itemmaker

General Magic Item + Reagent smith system. Uses CustomToken #777.

NOTE: This file includes nw_i0_plot .

Functions

Name Brief Description

CanAfford

Internal function. Determines if the player has enough gold in their inventory to pay for creating an item at the forge.

CreateForgeItem

Used to create magic items at a "forge" container.

dbSpeak

Internal function. A debug function with a no-op implementation.

GetBackpackMatch

Internal function. Determines if the PC carries the proper items to create a new item.

GetForgeMatch

Internal function. Checks to see if the nPos item matches the current reward.

GetIsMagical

Internal function. Checks for predefined groups of magical effects on an item to determine if it is magical.

GetIsValidCombination

Internal function. Determines if items within a container are valid for combining into a new item.

GetItemPosition

Internal function. Returns the position of a variable in an array containing a list of possible base types that can be created.

GetLocalArrayInt

Simulates retrieving an Integer from an array on an object.

GetLocalArrayString

Simulates retrieving a String from an array on an object.

GetValidItem

Internal function. Gets a name of an item that can made at the Forge in the official campaign.

GetValidItemCost

Internal function. Used to determine the cost of making an item at the forge.

HasAnyItemOfBaseType

Internal function. Cycles through the players inventory looking for any item that has a certain Base Item Type. If the Base Item Type is Armor, make sure the AC matches.

IsMisc

Internal function. Returns true if the basetype of the item is one of the misc. types of basetype.

IsValidBaseItem

Internal function. Checks to see if the baseitem type matches the one in the array AND if the item is "magical".

nNumberOfCombos

Internal function. Returns number of possible combinations.

PlaySuccessVisual

Internal function. Applies the visual effect for improved ability score to a target.

SetLocalArrayInt

Simulates storing a local integer in an array.

SetLocalArrayString

Simulates storing a local string in an array.

SetValidItem

Internal function. Specifies the location in a PC's inventory where a valid item exists for the Smithy plot in original campaign.

SetValidItemCost

Internal function. Specifies the amount of gold the combined item is worth during the Smith plot in original campaign.

SetValidItemCostToken

Internal function. Specifies the amount of gold extra that is needed to create a magical item during the Smithy plot line of the original campaign.



 author: Charles Feduke, editor: Mistress, contributor: Graewerld