Instructions/Count Items

From Desynced Wiki
Revision as of 19:54, 11 September 2023 by Johan (talk | contribs) (Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Count Items
     
     Counts the number of the passed item contained in the unit's inventory
Lua ID count_item
Category Unit
Icon Count Item.png
Argument One: Type Input
Argument One: Name Item
Argument One: Description Item to count
Argument One: Data Type item
Argument Two: Type Output
Argument Two: Name Result
Argument Two: Description Number of this item in inventory or empty if none exist
Argument Three: Type Input
Argument Three: Name Unit
Argument Three: Description The unit to check for (if not self)
Argument Three: Data Type entity



Description[edit | edit source]

Uses[edit | edit source]

Similar Instructions[edit | edit source]