File Listing: add-resource.lua - Trading goods mod tool - Steam | ||||||||||||||||||||
Last Updated: May 25, 2025, 07:52:48 pm
Author: Troehl
![]() |
||||||||||||||||||||
Description
A versatile mod tool to add resources to civilizations. It can add materials directly, through material reaction products (adding the linked materials), or through reaction classes. Add to single civs or anything of the same entity type (e.g. "MOUNTAIN" for dwarves). USAGE: add-resource ============= Adds specified resource materials to civ's available goods. They will be brought in trade and used in item and equipment generation. args: -help : outputs this menu -entity_name : entity raw string (str) adds to all civs of this type e.g. "MOUNTAIN", "EVIL" -entity_id : entity id (int or \\LOCAL); required if no entity_name \\LOCAL denotes current civ, or int for id adds to single civ, not all of that type -bin : target bin (str); required available bins: pick weapon ranged ammo armor anvil leather parchment fiber silk wood metals* stones* gems* clay crafts barrels flasks quivers backpacks cages booze cheese powders meat shell pearl extracts bone ivory horn plants shrub_fruit tree_fruit *these bins only support inorganic materials! -material : material raw (str); required if no mrp or rc e.g. "INORGANIC:STEEL", "CREATURE_MAT:DOG:BONE" -bin2 : bin of mrp or rc (str): required if using mrp or rc see available bins above -mrp : material reaction product name (str) Will copy any product from mats in bin2 with this mrp into bin e.g. "FIRED_MAT", "TAN_MAT" Note: If you wish to add organic mats to bin where a bin2 does not exist, like soap for example, you can add a material reaction product into RAW files that do not have an associated reaction, simply as a link to add mats. e.g. add [MATERIAL_REACTION_PRODUCT:SOAP_TAG:LOCAL_CREATURE_MAT:SOAP] to muscle material. then use "meat" as bin2 with mrp "SOAP_TAG" -rc : reaction class name (str) Will copy anything from bin2 with this rc into bin e.g. "PAPER_SLURRY", "CALCIUM_CARBONATE", "FLUX" Example usage: Add dwarf leather clothing and goods to all elven civilizations add-resource -entity_name "FOREST" -bin "leather" -material "CREATURE_MAT:DWARF:LEATHER" Add ceramic armor to all dwarven civilizations add-resource -entity_name "MOUNTAIN" -bin "armor" -bin2 "clay" -mrp "FIRED_MAT" Add all CALCIUM_CARBONATE stones in powder form to current civilization add-resource -entity_id "\\LOCAL" -bin "powders" -bin2 "stones" -rc "CALCIUM_CARBONATE" |
||||||||||||||||||||
Checksum / Hash | ||||||||||||||||||||
SHA-256: 6e9c24eaea93e9f843f715f32034331c0546111733f85c0b730c64e429dde5d9 | ||||||||||||||||||||
IP: logged Commands |
||||||||||||||||||||
More From This Author |