Instructions/Request Item

From Desynced Wiki
Revision as of 15:41, 8 October 2023 by Johan (talk | contribs)


Request Item
     
     Requests an item if it doesn't exist in the inventory
Lua ID request_item
Category Unit
Icon Make Order.png
Argument One: Type Input
Argument One: Name Item
Argument One: Description Item and amount to order
Argument One: Data Type item_num



Description

Creates an item request if the item quantity exceeds current inventory contents.

If a unit has 17 Metal Bars and it makes a request of 20, then it would generate an order of 3 items.

Uses

Used for generating an item request. Production components generate item requests and this instruction imitates that functionality.


Similar Instructions

Request Wait