(the changed container adds gold only to itself, the unchanged adds gold to everyone.
Other than the first version it refers to the calling reference.
There are so many traps to avoid, that the bugs section would be longer than the real explanation. The implementation of the inventory feature is poor, politely put. Accessing disabled references is no problem. Keep that in mind when dealing with items that run scripts of their own.ĪddItem is not limited by the encumbrance value of a container.ĪddItem can not be used on objects that have no reference in the game. However, AddItem will always create new items in the given inventory. It is often used together with RemoveItem to simulate giving something from one actor to another. The most common use is in dialogue to handle rewards or quest items. Adds a given number of items to the callers inventory.