This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
add_item_to_container [2021/04/21 18:57] – justin | add_item_to_container [2023/01/02 21:08] (current) – justin | ||
---|---|---|---|
Line 13: | Line 13: | ||
|item_id|ID of the [[item|item]] (as assigned in the [[item_editor|Item Editor]]).|[[string|String]]|Yes| | |item_id|ID of the [[item|item]] (as assigned in the [[item_editor|Item Editor]]).|[[string|String]]|Yes| | ||
|count|How many of the [[item|item]] to add (defaults to 1).|[[number|Number]]|No| | |count|How many of the [[item|item]] to add (defaults to 1).|[[number|Number]]|No| | ||
+ | |||
+ | ^Return Value^Description^Type^ | ||
+ | |Number Added|Returns the actual number of [[item|items]] that were added to the [[item container]]. This could be less than the count supplied to the function, for example if the [[item container]] becomes full.|[[Number]]| | ||
====Example: | ====Example: |