All right, since everyone has their own ideas of what adamantine is/should be, I've set up this modding thread for anyone who has a cleaver way for them to implement theirs. The idea here is that each in-game lode will be of a different kind, and that people's forts will start to become slightly "themed" around which type(s) they find.
Anyone who wants to make their own version of the metal
(or an alloy of it) can post here, but please keep these things in mind:
-Each metal
MUST be unique; this can be as small as a color change, but be aware that if a "cooler" and more "unique" version of your metal comes about,
it can replace yours. However, since the whole point of this thread is variety, this will only be done with your permission.
-Each metal needs a unique name, this can be as simple as "______ Adamantine". "Cooler" names may replace the original name, but again this will be only with permission.
ONE IMPORTANT CAVEAT: "Mithril" and any "misspellings" thereof (like "mythril") will
NOT be allowed. Mithril has been used in so many mods already, and it is also something that has as wide an interpretation as adamantine. Therefore, if mithril
is to be included in this mod (
very unlikely), then it will be as another "boring" and "generic" archetype. "______ Mithril" is still an okay name, though.
-Metals that are adamantine alloys are more than welcome here. If you want to declare a specific type of adamantine to use, do so. You can make up a reaction class to say that any one of a few different kinds of adamantine can be used, or just use
[REAGENT:A:150:BAR:NO_SUBTYPE:NONE:NONE][REACTION_CLASS:ADAMANTINE]
to allow
any adamantine to be used to make it.
-Please be as creative as possible! The more creative you are, the more Fun we can have!
Here's some good inspiration if you're stumped.[MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_COLOR:ALL_SOLID:GREY]
[STATE_NAME:ALL_SOLID:adamantine]
[STATE_ADJ:ALL_SOLID:adamantine]
[STATE_COLOR:LIQUID:RED]
[STATE_NAME:LIQUID:molten adamantine]
[STATE_ADJ:LIQUID:molten adamantine]
[STATE_COLOR:GAS:RED]
[STATE_NAME:GAS:boiling adamantine]
[STATE_ADJ:GAS:boiling adamantine]
[DISPLAY_COLOR:3:3:1]
[MATERIAL_VALUE:300]
[SPEC_HEAT:7500]
[IGNITE_POINT:NONE]
[MELTING_POINT:25000]
[BOILING_POINT:50000]
[HEATDAM_POINT:NONE]
[COLDDAM_POINT:NONE]
[MAT_FIXED_TEMP:NONE]
[SOLID_DENSITY:200]
[LIQUID_DENSITY:2600]
[MOLAR_MASS:55845]
[IMPACT_YIELD:5000000]
[IMPACT_FRACTURE:5000000]
[IMPACT_ELASTICITY:0]
[COMPRESSIVE_YIELD:5000000]
[COMPRESSIVE_FRACTURE:5000000]
[COMPRESSIVE_ELASTICITY:0]
[TENSILE_YIELD:5000000]
[TENSILE_FRACTURE:5000000]
[TENSILE_ELASTICITY:0]
[TORSION_YIELD:5000000]
[TORSION_FRACTURE:5000000]
[TORSION_ELASTICITY:0]
[SHEAR_YIELD:5000000]
[SHEAR_FRACTURE:5000000]
[SHEAR_ELASTICITY:0]
[BENDING_YIELD:5000000]
[BENDING_FRACTURE:5000000]
[BENDING_ELASTICITY:0]
[MAX_EDGE:100000]
[ABSORPTION:0]
[IS_METAL]
[DEEP_SPECIAL]
[REACTION_CLASS:ADAMANTINE]
[INORGANIC:ADAMANTINE]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:adamantine][DISPLAY_COLOR:3:3:1]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED][ITEMS_SOFT]
[WAFERS]
(All this extra code that's there is what can't be changed without removing it entirely, and so it must be listed with each type of adamantine if anyone wants to change them for their version.)
[INORGANIC:RAW_ADAMANTINE]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:raw adamantine][DISPLAY_COLOR:3:7:1][TILE:156]
[ITEM_SYMBOL:'*'][MATERIAL_VALUE:250][SOLID_DENSITY:200]
[THREAD_METAL:ADAMANTINE:100][IS_STONE]
[ENVIRONMENT:ALL_STONE:VEIN:1]
Or a reaction for your alloy. (Sorry, I have no example.)
List of Adamantines:
Simple stuff, metals with a core of the dense metal and a jacket of adamantine, that's how I originally intended them. Then i made them different colours because they look stylish. They are used for the swords in the demon fortresses as well.
[INORGANIC:ADAMANT_IRON]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:adamant-iron]
[STATE_NAME_ADJ:LIQUID:molten adamant-iron]
[STATE_NAME_ADJ:GAS:boiling adamant-iron]
[DISPLAY_COLOR:0:7:1][MATERIAL_VALUE:930]
[SPEC_HEAT:450][MELTING_POINT:12768][BOILING_POINT:15150]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED]
[SOLID_DENSITY:7850][LIQUID_DENSITY:6980][MOLAR_MASS:55845]
[INORGANIC:ADAMANT_GOLD]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:adamant-gold]
[STATE_NAME_ADJ:LIQUID:molten adamant-gold]
[STATE_NAME_ADJ:GAS:boiling adamant-gold]
[DISPLAY_COLOR:6:6:1][MATERIAL_VALUE:1000]
[SPEC_HEAT:129][MELTING_POINT:11915][BOILING_POINT:15141]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED]
[SOLID_DENSITY:19320][LIQUID_DENSITY:17310][MOLAR_MASS:196967]
[INORGANIC:ADAMANT_SILVER]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:adamant-silver]
[STATE_NAME_ADJ:LIQUID:molten adamant-silver]
[STATE_NAME_ADJ:GAS:boiling adamant-silver]
[DISPLAY_COLOR:7:7:1][MATERIAL_VALUE:930]
[SPEC_HEAT:230][MELTING_POINT:11731][BOILING_POINT:13892]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED]
[SOLID_DENSITY:10490][LIQUID_DENSITY:9320][MOLAR_MASS:107868]
[INORGANIC:ADAMANT_COPPER]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:adamant-copper]
[STATE_NAME_ADJ:LIQUID:molten adamant-copper]
[STATE_NAME_ADJ:GAS:boiling adamant-copper]
[DISPLAY_COLOR:4:7:0][MATERIAL_VALUE:930]
[SPEC_HEAT:385][MELTING_POINT:11952][BOILING_POINT:14611]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED]
[SOLID_DENSITY:8930][LIQUID_DENSITY:8020][MOLAR_MASS:63546]
[INORGANIC:ADAMANT_PLATINUM]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:adamant-platinum]
[STATE_NAME_ADJ:LIQUID:molten adamant-platinum]
[STATE_NAME_ADJ:GAS:boiling adamant-platinum]
[DISPLAY_COLOR:7:7:1][MATERIAL_VALUE:1000]
[SPEC_HEAT:130][MELTING_POINT:13182][BOILING_POINT:16885]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED]
[SOLID_DENSITY:21400][LIQUID_DENSITY:19770][MOLAR_MASS:195084]
[INORGANIC:ADAMANT_ALUMINUM]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:adamant-aluminum]
[STATE_NAME_ADJ:LIQUID:molten adamant-aluminum]
[STATE_NAME_ADJ:GAS:boiling adamant-aluminum]
[DISPLAY_COLOR:3:3:1][MATERIAL_VALUE:1000]
[SPEC_HEAT:900][MELTING_POINT:11188][BOILING_POINT:14534]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED]
[SOLID_DENSITY:2700][LIQUID_DENSITY:2375][MOLAR_MASS:26981]
Formed by these reactions:
[REACTION:ADAMANT_IRON_MAKING]
[NAME:make adamant iron]
[BUILDING:SMELTER:NONE]
[REAGENT:A:450:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:IRON]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANT_IRON][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
[REACTION:ADAMANT_GOLD_MAKING]
[NAME:make adamant gold]
[BUILDING:SMELTER:NONE]
[REAGENT:A:450:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:GOLD]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANT_GOLD][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
[REACTION:ADAMANT_SILVER_MAKING]
[NAME:make adamant silver]
[BUILDING:SMELTER:NONE]
[REAGENT:A:450:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:SILVER]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANT_SILVER][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
[REACTION:ADAMANT_COPPER_MAKING]
[NAME:make adamant copper]
[BUILDING:SMELTER:NONE]
[REAGENT:A:450:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:COPPER]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANT_COPPER][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
[REACTION:ADAMANT_PLATINUM_MAKING]
[NAME:make adamant platinum]
[BUILDING:SMELTER:NONE]
[REAGENT:A:450:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:PLATINUM]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANT_PLATINUM][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
[REACTION:ADAMANT_ALUMINUM_MAKING]
[NAME:make adamant aluminum]
[BUILDING:SMELTER:NONE]
[REAGENT:A:450:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:ALUMINUM]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANT_ALUMINUM][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
*Feel free to copy and mod this in any way you wish. They are the project that led to this one, and are here only to inspire you to make them cooler.*
[INORGANIC:ADAMANTINE_BLACK]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:dark adamantine][DISPLAY_COLOR:0:8:0]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED][ITEMS_SOFT][WAFERS]
[INORGANIC:ADAMANTINE_BLUE]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:dusk adamantine][DISPLAY_COLOR:1:1:1]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED][ITEMS_SOFT][WAFERS]
[INORGANIC:ADAMANTINE_GREEN]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:glittering adamantine][DISPLAY_COLOR:2:2:1]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED][ITEMS_SOFT][WAFERS]
[INORGANIC:ADAMANTINE_RED]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:bloody adamantine][DISPLAY_COLOR:4:4:1]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED][ITEMS_SOFT][WAFERS]
[INORGANIC:ADAMANTINE_PURPLE]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:regal adamantine][DISPLAY_COLOR:5:5:1]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED][ITEMS_SOFT][WAFERS]
[INORGANIC:ADAMANTINE_YELLOW]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:gleaming adamantine][DISPLAY_COLOR:6:0:1]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED][ITEMS_SOFT][WAFERS]
[INORGANIC:ADAMANTINE_WHITE]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:pure adamantine][DISPLAY_COLOR:7:11:1]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR][ITEMS_ANVIL]
[ITEMS_HARD][ITEMS_METAL][ITEMS_BARRED][ITEMS_SCALED][ITEMS_SOFT][WAFERS]
[INORGANIC:RAW_ADAMANTINE_BLACK]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:raw dark adamantine][DISPLAY_COLOR:0:7:0][TILE:156]
[ITEM_SYMBOL:'*'][MATERIAL_VALUE:250][SOLID_DENSITY:200]
[THREAD_METAL:ADAMANTINE_BLACK:100][IS_STONE]
[ENVIRONMENT_SPEC:ADAMANTINE:CLUSTER_SMALL:100]
[INORGANIC:RAW_ADAMANTINE_BLUE]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:raw dusk adamantine][DISPLAY_COLOR:1:7:1][TILE:156]
[ITEM_SYMBOL:'*'][MATERIAL_VALUE:250][SOLID_DENSITY:200]
[THREAD_METAL:ADAMANTINE_BLUE:100][IS_STONE]
[ENVIRONMENT_SPEC:ADAMANTINE:CLUSTER_SMALL:100]
[INORGANIC:RAW_ADAMANTINE_GREEN]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:raw glittering adamantine][DISPLAY_COLOR:2:7:1][TILE:156]
[ITEM_SYMBOL:'*'][MATERIAL_VALUE:250][SOLID_DENSITY:200]
[THREAD_METAL:ADAMANTINE_GREEN:100][IS_STONE]
[ENVIRONMENT_SPEC:ADAMANTINE:CLUSTER_SMALL:100]
[INORGANIC:RAW_ADAMANTINE_RED]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:raw blood adamantine][DISPLAY_COLOR:4:7:1][TILE:156]
[ITEM_SYMBOL:'*'][MATERIAL_VALUE:250][SOLID_DENSITY:200]
[THREAD_METAL:ADAMANTINE_RED:100][IS_STONE]
[ENVIRONMENT_SPEC:ADAMANTINE:CLUSTER_SMALL:100]
[INORGANIC:RAW_ADAMANTINE_PURPLE]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:raw regal adamantine][DISPLAY_COLOR:5:7:1][TILE:156]
[ITEM_SYMBOL:'*'][MATERIAL_VALUE:250][SOLID_DENSITY:200]
[THREAD_METAL:ADAMANTINE_PURPLE:100][IS_STONE]
[ENVIRONMENT_SPEC:ADAMANTINE:CLUSTER_SMALL:100]
[INORGANIC:RAW_ADAMANTINE_YELLOW]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:raw gleaming adamantine][DISPLAY_COLOR:6:7:1][TILE:156]
[ITEM_SYMBOL:'*'][MATERIAL_VALUE:250][SOLID_DENSITY:200]
[THREAD_METAL:ADAMANTINE_YELLOW:100][IS_STONE]
[ENVIRONMENT_SPEC:ADAMANTINE:CLUSTER_SMALL:100]
[INORGANIC:RAW_ADAMANTINE_WHITE]
[USE_MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:impure adamantine][DISPLAY_COLOR:7:0:1][TILE:156]
[ITEM_SYMBOL:'*'][MATERIAL_VALUE:250][SOLID_DENSITY:200]
[THREAD_METAL:ADAMANTINE_WHITE:100][IS_STONE]
[ENVIRONMENT_SPEC:ADAMANTINE:CLUSTER_SMALL:100]
Help and guides:
So, (Probably Newbie) Questions:
1) Are those codes that Arkenstone posted in the very first post the "Original" DF Adamantine?
2) If I modify Arkenstone's code(s), and paste it into 'somewhere' in the Data folder, then a new metal is modded into the game?
3) That 'somewhere' is where?
1) The template looks like it makes normal DF adamantine, but if you are new then you probably don't want to faff with templates.
2) takes more than that. If you take my stuff (under the spoiler in the bottom of the top post) then, yes a new metal is added to the game. The place the metals need to be inserted is objects\inorganic_metal.txt the reactions need to go in reaction_smelter.txt (or reaction_other.txt) then you need to add the names of the reactions into entity_default.txt in the mountain section in this way:
[PERMITTED_REACTION:ADAMANT_IRON_MAKING]
[PERMITTED_REACTION:ADAMANT_GOLD_MAKING]
[PERMITTED_REACTION:ADAMANT_SILVER_MAKING]
[PERMITTED_REACTION:ADAMANT_COPPER_MAKING]
[PERMITTED_REACTION:ADAMANT_PLATINUM_MAKING]
[PERMITTED_REACTION:ADAMANT_ALUMINUM_MAKING]
Then you need to gen a new world and dwarf it up.
*NOTE: you will also have to put ADAMANTINE_TEMPLATE into "material_template.txt
" for it to work (it's in the first spoiler)* That answers two and three, now with regards to what that did: I created a new kind of substance which things can be made out of, I gave it some properties. I enabled the substance to be obtained somehow and then I gave that method to the dwarfs.
That's the process you'll need to go through to add a new metal to the game. The template comes in at the first stage of that, notice many (perhaps all) metals start with the tag [USE_MATERIAL_TEMPLATE:METAL_TEMPLATE] if you look in material_template_default.txt then you will see the properties that this gives the substance. It's just like copy and pasting, be aware that if you repeat tags with different info then the one further down the list will overwrite the first in it's effect.
4) How to adjust the properties/tags of said metal in:
a) It's performance...how well it perform if made into armor and weapon...Especially armor.
b) What this metal can be made into (Bars,blocks,weapons and armors,clothings,furniture, etc.)
c) How can I make it an alloy with other metal
d) Where can I dug it out
e) Which civilization other than Dwarf use/ export this.
4a)Look in the section "Weapon and Armour Quality"
b)That depends on the tags you give it. Things like [ITEMS_XXX] enable the substance to be used for crafting items which have the [XXX] tag. That's the general format, not all things apply to that ([METAL] items need [IS_METAL] on their substance for instance.)
c) that's done with your careful choice of properties and use of the reaction in order to obtain that metal, have a look at my adamant-iron making for instance:
[REACTION:ADAMANT_IRON_MAKING]
[NAME:make adamant iron]
[BUILDING:SMELTER:NONE]
[REAGENT:A:450:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:IRON]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANT_IRON][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
See how there are two reagents that make one product? The number in the reagent section is the dimension of the object to be used, in this case 450. One bar of a metal which dwarfs can carry around has dimension 150, you can see that is determined by the [PRODUCT_DIMENSION:X] tag at the end. In the above reaction 3 bars of adamantine and 1 bar of iron make 1 bar of adamant iron. In the case of bronze making the reagents "add up" to the volume that is produced, but in mine they don't for balance reasons. That's how something can be an alloy, the game doesn't know but we do, because of how it's made.
d) Digging stuff out: You need to make a stone in inorganic_mineral.txt (or any of those stone texts) with some kind of [ENVIRONMENT_SPEC:<STONE TYPE>:<VEIN TYPE>:<FREQUENCY>] or [ENVIRONMENT:<LAYER NAME>:<VEIN TYPE>:<FREQUENCY>] then it'll form in layers in the rock you've indicated. now you need to add in a reaction to get a metal form that rock, take a look at lignite to coke:
[REACTION:LIGNITE_TO_COKE]
[NAME:make coke from lignite]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:BOULDER:NO_SUBTYPE:INORGANIC:LIGNITE]
[PRODUCT:100:2:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
See it takes one boulder of INORGANIC:LIGNITE and gives 2 bars of coke? You'll want INORGANIC:<WHATEVER YOUR STONE IS CALLED> and the product to be BAR:NO_SUBTYPE:METAL:<YOUR METAL'S NAME>
When I say a metal's name I mean the name it is given in capitals at the start of it's object definition [INORGANIC:ADAMANTINE] means that the following object is called ADAMANTINE and is a subtype of INORGANIC.
e) That's in entity_default.txt if they have [METAL_PREF] and the substance isn't marked [DEEP_SPECIAL] then they will trade it sometimes. (Rocks need a layer that they can get a hold of in order for them to trade it, I RECKON : ) .)