I've made great strides on the chemical weapons front. It resulted in two new workshops, one new tool, and a few new materials. Gases will use the LIQUID_MISC item token, and will be stored in gas canisters:
[ITEM_TOOL:ITEM_TOOL_GAS_TANK]
[NAME:gas canister:gas canisters]
[VALUE:10]
[HARD_MAT]
[TOOL_USE:LIQUID_CONTAINER]
[TILE:229]
[SIZE:3000]
[MATERIAL_SIZE:1]
[CONTAINER_CAPACITY:10000]
Gas canisters use a special kind of steel:
[INORGANIC:STEEL_CANISTER]
[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:Steel]
[STATE_NAME_ADJ:LIQUID:molten Steel]
[STATE_NAME_ADJ:GAS:boiling Steel]
[DISPLAY_COLOR:0:7:1]
[BUILD_COLOR:0:7:1]
[MATERIAL_VALUE:30]
[SPEC_HEAT:500]
[MELTING_POINT:12718]
[BOILING_POINT:14968]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR]
[ITEMS_ANVIL]
[SOLID_DENSITY:7850]
[LIQUID_DENSITY:6980]
[MOLAR_MASS:55845]
[MAT_FIXED_TEMP:9540]
[IMPACT_YIELD:1505000]
[IMPACT_FRACTURE:2520000]
[IMPACT_STRAIN_AT_YIELD:940]
[COMPRESSIVE_YIELD:1505000]
[COMPRESSIVE_FRACTURE:2520000]
[COMPRESSIVE_STRAIN_AT_YIELD:940] 160
[TENSILE_YIELD:430000]
[TENSILE_FRACTURE:720000]
[TENSILE_STRAIN_AT_YIELD:225] 200
[TORSION_YIELD:430000]
[TORSION_FRACTURE:720000]
[TORSION_STRAIN_AT_YIELD:215]
[SHEAR_YIELD:430000]
[SHEAR_FRACTURE:720000]
[SHEAR_STRAIN_AT_YIELD:215] no data, used 200
[BENDING_YIELD:430000]
[BENDING_FRACTURE:720000]
[BENDING_STRAIN_AT_YIELD:215]
[MAX_EDGE:10000]
[ITEMS_HARD]
[ITEMS_METAL]
[ITEMS_BARRED]
[ITEMS_SCALED]
[STATE_COLOR:ALL_SOLID:GRAY]
It has a fixed temp to keep the gas liquid.
Due to the uselessness of a gas canister without this property, a special reaction is needed to make them, which takes place at the first of the new workshops, the Crafts Factory:
[REACTION:GAS_CANISTER]
[NAME:manufacture gas canisters]
[BUILDING:FACTORY_CRAFTS:CUSTOM_G]
[REAGENT:steel:150:BAR:NO_SUBTYPE:INORGANIC:STEEL]
[PRODUCT:100:5:TOOL:ITEM_TOOL_GAS_TANK:INORGANIC:STEEL_CANISTER]
[SKILL:EXTRACT_STRAND]
As the name suggests, the crafts factory can also produce crafts:
[REACTION:CRAFTS_FACTORY]
[NAME:manufacture crafts]
[BUILDING:FACTORY_CRAFTS:CUSTOM_C]
[REAGENT:metal:150:BAR:NO_SUBTYPE:INORGANIC:NONE]
[PRODUCT:100:8:CRAFTS:GET_MATERIAL_FROM_REAGENT:metal:NONE]
[SKILL:EXTRACT_STRAND]
Mustard gas still needs work, but phosgene is complete. Here are the required reactions:
[REACTION:CARBON_MONOXIDE]
[NAME:make carbon monoxide]
[BUILDING:SMELTER:NONE]
[REAGENT:carbon source:1:BAR:NO_SUBTYPE:COAL:COKE]
[REAGENT:canister:1:TOOL:ITEM_GAS_TANK:INORGANIC:STEEL_CANISTER][EMPTY]
[PRESERVE_REAGENT]
[PRODUCT:100:30000:LIQUID_MISC:INORGANIC:CARBON_MONOXIDE][PRODUCT_DIMESION:150]
[PRODUCT_TO_CONTAINER:canister]
[REACTION:CHLORINE]
[NAME:produce chlorine]
[BUILDING:LAB:CUSTOM_C]
[REAGENT:sodium chloride:1:BOULDER:NO_SUBTYPE:INORGANIC:ROCK_SALT]
[REAGENT:water:150:LIQUID_MISC:NONE:WATER]
[REAGENT:water container:1:NONE:NONE:NONE:NONE][CONTAINS:water]
[PRESERVE_REAGENT]
[REAGENT:canister:1:TOOL:ITEM_TOOL_GAS_TANK:INORGANIC:STEEL_CANISTER]
[PRESERVE_REAGENT][EMPTY]
[PRODUCT:100:3000:LIQUID_MISC:INORGANIC:CHLORINE][PRODUCT_DIMENSION:150]
[PRODUCT_TO_CONTAINER:canister]
[PRODUCT:100:750:LIQUID_MISC:NONE:LYE][PRODUCT_DIMENSION:150]
[PRODUCT_TO_CONTAINER:water container]
[SKILL:ALCHEMY]
[REACTION:PHOSGENE]
[NAME:produce phosgene]
[REAGENT:chlorine:3000:LIQUID_MISC:INORGANIC:CHLORINE]
[REAGENT:chlorine canister:TOOL:ITEM_TOOL_GAS_TANK:INORGANIC:STEEL_CANISTER]
[CONTAINS:chlorine][PRESERVE_REAGENT]
[REAGENT:carbon monoxide:LIQUID_MISC:INORGANIC:CARBON_MONOXIDE]
[REAGENT:CO canister:TOOL:ITEM_TOOL_GAS_TANK:INORGANIC:STEEL_CANISTER]
[CONTAINS:carbon monoxide][PRESERVE_REAGENT]
[REAGENT:activated carbon:150:BAR:NO_SUBTYPE:COAL:COKE][PRESERVE_REAGENT]
[REAGENT:canister:1:TOOL:ITEM_TOOL_GAS_TANK:INORGANIC:STEEL_CANISTER][EMPTY]
[PRESERVE_REAGENT]
[PRODUCT:100:3000:LIQUID_MISC:INORGANIC:PHOSGENE][PRODUCT_DIMENSION]
[PRODUCT_TO_CONTAINER:canister]
[SKILL:ALCHEMY]
[REACTION:SHELL_PHOSGENE]
[NAME:make phosgene shells]
[BUILDING:FACTORY_AMMO:CUSTOM_SHIFT_P]
[REAGENT:steel:150:BAR:NO_SUBTYPE:INORGANIC:STEEL]
[REAGENT:phosgene:3000:LIQUID_MISC:INORGANIC:PHOSGENE]
[REAGENT:phosgene canister:1:TOOL:ITEM_TOOL_GAS_TANK:INORGANIC:STEEL_CANISTER][CONTAINS:phosgene]
[PRESERVE_REAGENT]
[PRODUCT:100:25:AMMO:ITEM_SHELL:INORGANIC:SHELL_PHOSGENE]
I'm pretty sure I did something wrong. I've recently become acquainted with the errorlog, and it says that the gas reactions don't work.
In fact, all of my reactions are probably messed up. I'm pretty sure that the one for chlorine is wrong, but I can't find out what's wrong with the others.
But anyway, the second new workshop is the Arms Factory. It lets you manufacture weapons much like the Munitions factory lets you manufacture ammo:
[REACTION:RIFLE_FACTORY]
[NAME:manufacture rifles]
[BUILDING:FACTORY_ARMS:CUSTOM_R]
[REAGENT:steel:150:BAR:NO_SUBTYPE:INORGANIC:STEEL]
[PRODUCT:100:10:WEAPON:ITEM_WEAPON_RIFLE]
[SKILL:EXTRACT_STRAND]
[REACTION:PISTOL_FACTORY]
[NAME:manufacture pistols]
[BUILDING:FACTORY_ARMS:CUSTOM_P]
[REAGENT:steel:150:BAR:NO_SUBTYPE:INORGANIC:STEEL]
[PRODUCT:100:20:WEAPON:ITEM_WEAPON_RIFLE:INORGANIC:STEEL]
[SKILL:EXTRACT_STRAND]
[REACTION:ARTILLERY_FACTORY]
[NAME:manufacture field guns]
[BUILDING:FACTORY_ARMS:CUSTOM_A]
[REAGENT:STEEL:150:BAR:NO_SUBTYPE:INORGANIC:STEEL]
[PRODUCT:100:5:WEAPON:ITEM_WEAPON_RIFLE:INORGANIC:STEEL]
[SKILL:EXTRACT_STRAND]
I've been thinking about aerial combat. Flying mounts don't really work right now, but I have an idea on how enemy plane behavior should work. The planes should circle above the fort and occasionally swoop down to strafe any dwarves outside. Not sure how to implement this, though.