JerrodAmolyan wrote...
I have a major problem with item variables. It seems that when you purchase an item from a store, it no longer has it's variable (And I'm using a script that should add the variable if the resref is right, when you equip it, it doesn't seem to work sadly.)
Any ideas and help is appreciated greatly.
Since you have stated that you have already solved the problem. I wiil just list a few of the known problems/pitfalls with variables, Starting with the one that I think stated your original problem.
Problem 1: Items marked for unlimited sale. Items that are marked unlimited in a store are striped of all local variables, This is not a problem for Items that do not have the unlimited flag set.
Problem 2: Stackable ItemsStacked Items are an interesting case. It is important to keep in mind that, a stack of three items is a single instance of the item with the stack size set to three. This means that all three of the items share the same Var Table. To further compound the issue NWN does not check to see if Vars differ on items before it stacks them together. when two items are stacked, the original item instance has its stack size increased and the item being added has its instance destroyed. This means that both items will not have the same var table as the original item and any data that differed on the added item is simply lost.
Problem 3: Exported Characters It has been reported that Vars on items in a characters inventory are not being saved to the characters .bic file when exported form single player games.
It was also noted that if the Item was in a container in the characters inventory that the vars would then be saved.