This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
new:inventory [2018/02/15 17:19] – removed korshun | new:inventory [2018/02/18 18:13] (current) – korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Inventory functions ====== | ||
+ | |||
+ | ===== SetInventory ===== | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Sets the number of items in actor' | ||
+ | |||
+ | This function is optimized to minimize bandwidth use. It computes the difference between the current item count and the requested count, and gives or takes the needed number of items. If the actor already has the exact number of items, this function does nothing. | ||
+ | |||
+ | ===== GiveMaxInventory/ | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | | ||
+ | Give maximum possible number of '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Take all items of type '' | ||
+ | |||
+ | ===== ToggleInventory ===== | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | If the actor has no '' | ||
+ | |||
+ | This is a shorter way of writing '' | ||