Forge Settings - elanthia-online/dr-scripts GitHub Wiki

Description

Does the smithing for one blacksmithing, weaponsmithing or armorsmithing item: it studies the recipe, puts the ingot on the anvil and works it through every step the game asks for (stoking the fire, turning with tongs, cooling, grinding, oiling, assembling parts and so on). It can also temper, hone, balance, lighten or reinforce a finished item.

You often won't run it yourself: smith buys the materials and walks you to an anvil before running it, and workorders and craft go through smith or forge. Run it directly when you're already at an anvil with your ingot.

See Crafting Setup and the Forging Tutorial for forging tools and toolbelts.

Settings

YAML Settings

Tools

forging_tools:
  - diagonal-peen hammer
  - tongs
  - bellows
  - shovel
forging_belt:
adjustable_tongs: false
crafting_container: backpack
crafting_items_in_container:
Setting Default Purpose
forging_tools bellow, diagonal-peen hammer, shovel, tong Your forging tools. It must include a hammer or mallet, or the script stops.
forging_belt Toolbelt your tools hang on, if any.
adjustable_tongs false Your tongs adjust into a shovel, so you don't need a separate shovel.
crafting_container backpack Where the ingot, parts, oil, wire brush and recipe book are kept. Required.
crafting_items_in_container Items to take only from crafting_container, such as oil.

Other tools are taken by name as each step needs them: tongs, shovel, bellows, wire brush, pliers, oil and your stamp. The grindstone is in the room.

Consumables

Before starting it checks your oil and wire brush. If you have none, or one is down to fewer than 3 uses, it throws it away and buys a new one at the forging supply shop. (When smith runs it, smith has already checked the oil.) The skip argument turns this off.

Where to forge

hometown: Crossing
force_crafting_town:
use_private_forge: false
forge_private_forge_cost:
Setting Default Purpose
force_crafting_town Use this town's shops and forges instead of your hometown's.
use_private_forge false Walk to the town's private forge first. The older name forge_use_private_forge also works.
forge_private_forge_cost 50,000 Copper to have on hand for the private forge.

Start at an anvil. If a step needs the forge and there isn't one in the room, it goes to find a forge. In a rented forge it checks the rental notice and renews when there are under 10 minutes left.

The recipe

master_crafting_book:

It uses your master_crafting_book if set, otherwise the book for the smithing type (for example a weaponsmithing book) from crafting_container. With the instructions form, it studies your instructions instead.

Buffs and other settings

waggle_sets:
  forge:
mark_crafted_goods: false
cube_armor_piece:
forge_show_progress: false
Setting Default Purpose
waggle_sets: forge Cast before starting, if you have it.
mark_crafted_goods false Mark the finished item with your stamp. Not done for enhancements.
cube_armor_piece The item your Hollow Eve cube is attached to. It's touched before work starts.
forge_show_progress false Show the item's progress and quality at each stage.
debug_mode Verbose debug output, like the debug argument.

It also casts your crafting_training_spells between steps.

How forging is handled

There are no settings for these; this is what to expect.

  • A free hand. You need one free hand when you start, or it stops and says what you're holding.
  • Leftover metal. If the game splits your ingot and leaves the spare piece in another container, it moves it back to crafting_container.
  • Parts. When the item needs a part (a hilt, a handle, padding, a cord and so on), it takes the part from crafting_container and assembles it.
  • Enhancements. Tempering is done on the forge with tongs. Honing and balancing use the grindstone and wire brush; lightening and reinforcing use pliers and the grindstone.

Argument Settings

Make an item from a book:

;forge [finish] <type> <chapter> "<recipe name>" <metal> <noun> [skip] [debug]

Argument Purpose
finish What to do with the finished item: hold (the default), log (bundle it with your forging logbook), stow or trash.
type blacksmithing, armorsmithing or weaponsmithing.
chapter The recipe's chapter.
recipe name The recipe name, in double quotes if more than one word.
metal The ingot's metal, e.g. bronze or steel. It takes <metal> ingot from crafting_container.
noun The finished item's noun.
skip Don't check oil and wire brush at the start.
debug Verbose debug output.

Make an item from instructions:

;forge [finish] instructions <metal> <noun> [skip] [debug]

Enhance a finished item:

;forge <temper|hone|balance|lighten|reinforce> <noun> [skip] [debug]

Hone and balance are for weapons; lighten and reinforce are for armor and shields.

Resume an item:

;forge resume <type> <noun> [debug]

It finds the item in your hands, on the anvil or on the forge, and carries on.

Usage

;forge blacksmithing 6 "a shallow metal cup" bronze cup

;forge log weaponsmithing 7 "a metal pike" steel pike

;forge temper pike

;forge resume weaponsmithing pike

⚠️ **GitHub.com Fallback** ⚠️