This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
new:inventory [2018/02/18 18:08] – created korshun | new:inventory [2018/02/18 18:13] (current) – korshun | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== SetInventory ===== | ===== SetInventory ===== | ||
- | * void SetInventory(str itemname, int count) | + | * '' |
- | * void SetActorInventory(int tid, str itemname, int count) | + | * '' |
Sets the number of items in actor' | Sets the number of items in actor' | ||
Line 10: | Line 10: | ||
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. | 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 '' | ||