This new "shorter post titles" for the forum is really bugging me.
anyway....
Which should I use? What is the difference?
GoldLog = Playerref.GetGoldAmount()
Goldlog = playerref.getitemcount(gold001)
This new "shorter post titles" for the forum is really bugging me.
anyway....
Which should I use? What is the difference?
It's simply redundant. The getItemCount() is merely used to get the number of items in a container (including NPC inventory).
You know
myContainer.getItemCount(whatToCount)
and whatToCount can be just the gold001 item.
Function GetGoldAmount() GetItemCount(gold001)EndFunctionIt's good for when you are using it in a fragment (for dialogue for example) where you might find its quicker then making your own MiscItem Gold001 property. Whatever floats your boat really. The latter is probably quicker to execute, all depends on your situation