|Syntax||(itmSetCount item count) -> item|
|Argument List||item: the item whose stack count you want to set
count: the count you want the item stack to have
|Returns||a new item, with the stack count you specified. You should use this item in place of the one you modified to keep the changes|
|Description||Every item in game exists in it's own little stack. Most items in game exist alone in their stack (ergo have a stack count of 1). All items in this stack are completely identical (including enhancements, damage, charges etc...)
This function is used to change the amount of items in a stack.
Create one Helium Fuel Rod, and then increase the item count in the stack to 100
(block (rod) (setq rod (itmCreate &itHelium3FuelRod; 1)) (setq rod (itmSetCount rod 100)) )
the rod variable starts containing a single Helium Rod and then gets increased to 100 fuel rods...
|Comment||Very useful for changing stack count without having to use itmCreate again.|
|Mod of the Month (March '17)|
|The Auviq for 1.7|
|Drake Technologies Alpha for 1.7|
|[Pre-Alpha] Oracus and Domina I: The March of the Heretic|