Determines if the player has enough gold in their inventory to pay for creating an item at the forge.
- The player wishing to create an item.
Returns True if the player can afford the item.
Function found in nw_o0_itemmaker.nss on line 274.
Used in the official campaign to verify that an item can be payed for at the Forge.
Calls the HasGold() function to determine if oBuyer has enough gold to purchase the object in question. Checks the price of the object by calling GetValidItemCost(), which checks the local integer "M3Q1_VALIDITEMCOST" on OBJECT_SELF to determine the value of the object. This function would need to be called from a script that executes on an object.
author: John Shuell, editor: Charles Feduke, additional contributor(s): Ivan Hawkes