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

Description

Forges one blacksmithing, weaponsmithing or armorsmithing item from its recipe, from the master books or from loose instructions. It buys the parts the recipe needs that you don't already have (and the ingot, if you ask it to), goes to an anvil, checks your oil, then has ;forge do the smithing. It can also stamp the item and apply enhancements such as tempering or honing.

craft runs it for forging training.

See Crafting Setup and the Forging Tutorial for forging tools, toolbelts and tongs; ;forge uses them.

Settings

YAML Settings

Where to forge

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

Without a private forge, it finds a free anvil in town. With one, ;forge walks to the private forge and checks the rental notice, renewing the rental when it has under 10 minutes left (see Forge). Private forges are in Crossing, Leth Deriel, Volcano, Shard, Shadow's Reach, Aesry, Hibarnhvidar, Fang Cove and Boar Clan; if your town has none, it stops and lists them.

Materials

crafting_container: backpack
crafting_items_in_container:
forging_belt:
forging_tools:
worn_trashcan:
worn_trashcan_verb:
Setting Default Purpose
crafting_container backpack Where the ingot, parts and oil are kept. Parts already in here are used instead of buying more.
crafting_items_in_container Items to take only from crafting_container, such as oil.
forging_belt Toolbelt your forging tools hang on, if any.
forging_tools bellow, diagonal-peen hammer, shovel, tong Your forging tools. It also uses this list to tell the finished item from a tool with the same name.
worn_trashcan / worn_trashcan_verb A worn trash container, and the verb that empties it. The leftover piece of a small ingot is taken to the forge's trash room and thrown away there, into this if you have one.

Buffs

Before forging, it casts your smith waggle set, if you have one.

waggle_sets:
  smith:

How it works

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

  • Coin. It makes sure you have 3,000 copper on hand, or what the parts and ingot cost with buy if that's more, withdrawing from your bank if needed. With here, it only checks when something has to be bought.
  • Parts. It buys each part the recipe needs, plus a leather strip for reinforce, unless the part is already in your crafting_container. With here, a part carried in another container counts too, since ;forge takes parts from anywhere; a part the recipe needs twice is counted in crafting_container only. If it can't buy one: "smith: Could not buy a part (not enough coin, or the shop is closed). Stopping."
  • Ingot. With buy, it buys an ingot of the metal you name, in the smallest size the shop sells that holds the recipe. Bulk ingots (50 volume or more) are only bought in towns that sell them.
    • If no ingot is big enough: "smith: The largest metal ingot sold holds N volume; this recipe needs M." Combine ingots by smelting, then run it without buy.
    • If the shop doesn't sell that metal: "smith: metal ingots aren't sold here, so 'buy' can't be used for metal."
    • If you already carry an ingot of that metal, it stops instead of buying, because ;forge would use the one you have. Run it without buy, or move the ingot first.
    • Afterwards, the leftover piece of a small ingot is thrown away. A bulk ingot's leftover stays in your crafting_container.
  • Oil. If you have no oil, or it's down to fewer than 3 uses, it throws it away and buys more.
  • The recipe. The recipe name is matched against base-recipes.yaml. If it matches more than one, you pick with ;send <number>; use the full name (for example a metal pike) to avoid that. Book recipes come first: a name that matches any book recipe only looks among those, so glaive is the book glaive and short-hafted glaive the one from instructions.
  • A failed forge. If ;forge doesn't leave the finished item in your hands, it stops before stamping and enhancing: "smith: forge did not finish the noun. Stopping before stamping, enhancements and cleanup."

Forging from instructions

smith also makes the weapons that come from loose instructions rather than the master books (the Special Instructions list): folded katana, half-handled kanabo, hawkbill, hunga-munga, Imperial spear, light pernach, long-handled naginata, pattern welded tekkan, phalanx sword, pinwheel, serrated iltesh, serrated khopesh, serrated kudalata, serrated naginata, serrated parazonium, serrated recade, short-hafted glaive, sterak axe and svidaw sis. Use the name as for a book recipe, e.g. ;smith telothian "Imperial spear" temper; ;forge studies the instructions instead of turning the book.

  • The instructions. Before buying anything, it taps my <noun> instructions and checks that the set is the right kind. If you have none: "smith: You don't carry any noun instructions, which forge needs to make recipe. Stopping before buying anything." If it's another kind with the same noun (the serrated and long-handled naginata): "smith: 'my naginata instructions' is another kind (...), and forge would study it instead." For a noun two recipes share, your crafting_container must not hold a set of the other kind either.
  • Parts. It buys the hilt, haft or pole the instructions list. The parts for the serrated iltesh, serrated kudalata and serrated recade aren't known yet, so none is bought for them; if ;forge stops and names one, buy it and run ;forge resume weaponsmithing <noun> with the item in hand.
  • Wear. Instructions wear out as they're studied, and the game throws them away when they're used up.

Argument Settings

;smith <material> "<recipe name>" [options]

Argument Purpose
material Required. The ingot's metal, e.g. bronze.
recipe name Required. The recipe name, in double quotes if more than one word.
buy Buy an ingot of material (see How it works).
stamp Mark the finished item with your stamp.
here Forge in the room you're in, e.g. a rented private forge or with a forge wand. It doesn't look for an anvil, and ;forge stays put too, though it still checks the rental notice. If a part is missing (or with buy), it walks to the shops, comes back, then forges; back into your town's private forge, it carries the rental cost and tries the door if the walk ends outside. With everything on you, it doesn't move. If it can't get back: "smith: Could not get back to room N after shopping, so smith stops rather than forge somewhere else." In a room it can't find again: "smith: Buying with 'here' needs a known room to come back to."
temper Temper the item afterwards, for durability.
hone Weapons: hone, reducing weight and impact.
balance Weapons: balance, improving balance at the cost of suitability.
lighten Armor and shields: lighten, reducing weight.
reinforce Improve protection at the cost of weight and hindrance. Buys a leather strip.

Usage

;smith bronze "a shallow metal cup" buy

;smith steel "a metal pike" temper hone

;smith bronze "a metal armband" here stamp

;smith telothian "Imperial spear" here temper (in your rented private forge: buys the long pole, comes back, forges and tempers)

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