Civilization 13 - Modules - Types — Proc Details - Search

vending

A vending machine

Procs

build_inventoryBuild produdct_records from the products lists
stockAdd item to the machine
ui_interactDisplay the NanoUI window for the vending machine.

Proc Details

build_inventory

Build produdct_records from the products lists

products, contraband, premium, and prices allow specifying products that the vending machine is to carry without manually populating product_records.

stock

Add item to the machine

Checks if item is vendable in this machine should be performed before calling. W is the item being inserted, R is the associated vending_product entry.

ui_interact

Display the NanoUI window for the vending machine.

See NanoUI documentation for details.