Instructions/Request Wait: 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. The instruction will then wait until the item is received before proceeding.


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 Item|Request Item]]


{{Instruction_Bottom}}
{{Instruction_Bottom}}

Latest revision as of 15:43, 8 October 2023


Request Wait
     
     Requests up to a specified amount of an item and waits until that amount exists in inventory
Lua ID request_wait
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[edit | edit source]

Creates an item request if the item quantity exceeds current inventory contents. The instruction will then wait until the item is received before proceeding.

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

Uses[edit | edit source]

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

Similar Instructions[edit | edit source]

Request Item