nw_o0_itemmaker

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

NOTE: This file includes nw_i0_plot.

Functions

NameBrief Description
CanAffordInternal function. Determines if the player has enough gold in their inventory to pay for creating an item at the forge.
CreateForgeItemUsed to create magic items at a "forge" container.
dbSpeakInternal function. A debug function with a no-op implementation.
GetBackpackMatchInternal function. Determines if the PC carries the proper items to create a new item.
GetForgeMatchInternal function. Checks to see if the nPos item matches the current reward.
GetIsMagicalInternal function. Checks for predefined groups of magical effects on an item to determine if it is magical.
GetIsValidCombinationInternal function. Determines if items within a container are valid for combining into a new item.
GetItemPositionInternal function. Returns the position of a variable in an array containing a list of possible base types that can be created.
GetLocalArrayIntSimulates retrieving an Integer from an array on an object.
GetLocalArrayStringSimulates retrieving a String from an array on an object.
GetValidItemInternal function. Gets a name of an item that can made at the Forge in the official campaign.
GetValidItemCostInternal function. Used to determine the cost of making an item at the forge.
HasAnyItemOfBaseTypeInternal 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.
IsMiscInternal function. Returns true if the basetype of the item is one of the misc. types of basetype.
IsValidBaseItemInternal function. Checks to see if the baseitem type matches the one in the array AND if the item is "magical".
nNumberOfCombosInternal function. Returns number of possible combinations.
PlaySuccessVisualInternal function. Applies the visual effect for improved ability score to a target.
SetLocalArrayIntSimulates storing a local integer in an array.
SetLocalArrayStringSimulates storing a local string in an array.
SetValidItemInternal function. Specifies the location in a PC's inventory where a valid item exists for the Smithy plot in original campaign.
SetValidItemCostInternal function. Specifies the amount of gold the combined item is worth during the Smith plot in original campaign.
SetValidItemCostTokenInternal 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