nw_o0_itemmaker

Functions

NameBrief Description
CanAffordDetermines 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.
dbSpeakA debug function with a no-op implementation
GetBackpackMatchDetermines if the PC carries the proper items to create a new item.
GetForgeMatchChecks to see if the nPos item matches the current reward
GetIsMagicalChecks for predefined groups of magical effects on an item to determine if it is magical.
GetIsValidCombinationDetermines if items within a container are valid for combining into a new item.
GetItemPositionReturns 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.
GetValidItemGets a name of an item that can made at the Forge in the official campaign.
GetValidItemCostUsed to determine the cost of making an item at the forge.
HasAnyItemOfBaseTypeCycles 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.
IsMiscReturns true if the basetype of the item is one of the misc. types of basetype.
IsValidBaseItemChecks to see if the baseitem type matches the one in the array AND if the item is "magical"
nNumberOfCombosReturns number of possible combinations
PlaySuccessVisualApplies 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.
SetValidItemSpecifices the location in a PC's inventory where a valid item exists for the Smithy plot in original campaign.
SetValidItemCostSpecifies the amount of gold the combined item is worth during the Smith plot in original campaign.
SetValidItemCostTokenSpecifies 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
 Send comments on this topic.