Smith Settings - elanthia-online/dr-scripts GitHub Wiki
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.
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.
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. |
Before forging, it casts your smith waggle set, if you have one.
waggle_sets:
smith: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
buyif that's more, withdrawing from your bank if needed. Withhere, 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 yourcrafting_container. Withhere, a part carried in another container counts too, since;forgetakes parts from anywhere; a part the recipe needs twice is counted incrafting_containeronly. 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
;forgewould use the one you have. Run it withoutbuy, 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.
- 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
- 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 examplea metal pike) to avoid that. Book recipes come first: a name that matches any book recipe only looks among those, soglaiveis the book glaive andshort-hafted glaivethe one from instructions. -
A failed forge. If
;forgedoesn'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."
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> instructionsand 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, yourcrafting_containermust 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
;forgestops 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.
;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. |
;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)