Instructions/Request Item: Difference between revisions

From Desynced Wiki
(Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}")
 
No edit summary
Line 2: Line 2:


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


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


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




==== Similar Instructions ====
==== Similar Instructions ====
 
[[Instructions/Request Wait|Request Wait]]


{{Instruction_Bottom}}
{{Instruction_Bottom}}

Revision as of 15:41, 8 October 2023


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