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

Description

Makes one alchemy remedy. It studies the recipe, from your book or from loose crafting instructions, puts the main herb in your mortar or mixing container, then works it through every step the game asks for: adding water, alcohol, the catalyst or the second herb, sieving, turning and smelling, until the remedy is done. It leaves the finished remedy in your hands and says how many uses it made, for example "Remedy: made 12 uses of clubmoss liniment."

You often won't run it yourself: craft, workorders and ;create_remedies run it for alchemy and buy or forage the herbs first. Run it directly to make a specific remedy with herbs you already have.

See Crafting Setup for alchemy tools, toolbelts and books.

Settings

YAML Settings

Tools

alchemy_tools:
  - bowl
  - mixing stick
  - mortar
  - pestle
  - sieve
alchemy_belt:
crafting_container: backpack
crafting_items_in_container:
Setting Default Purpose
alchemy_tools bowl, mixing stick, mortar, pestle, sieve Your alchemy tools. The recipe's container must be in this list (see below).
alchemy_belt Toolbelt your tools hang on, if any. Tools and the remedies book are untied from it and tied back.
crafting_container backpack Where tools, herbs, water, alcohol and the catalyst are kept.
crafting_items_in_container Items to take only from crafting_container.
  • The container. The recipe's container is the start of a word in one of your alchemy_tools: mort finds a large mortar, and bowl finds a cauldron or a bowl. If no tool matches, it stops and tells you to add one ("Add your container to alchemy_tools, then run this again.").
  • Crushing or mixing. In a mortar it crushes with your pestle (the alchemy_tools entry containing pestle). In any other container it mixes with your mixing stick.

Herbs

herb_container:

It gathers 25 pieces of the main herb, combining stacks to get there. It looks in herb_container first, then in crafting_container, and puts leftovers back in herb_container if you have one. With fewer than 25, it says so and crafts with what it has ("Remedy: gathered only N pieces of herb (a remedy takes 25); crafting with what is in hand."). To insist on a minimum instead, add the herb quantity argument (see Argument Settings). If the recipe asks for red or blue flower and you have none fresh, it uses dried or crushed flower instead.

Water and alcohol

water_container:
alcohol_container:
Setting Default Purpose
water_container A container to pour water from. If it's empty, it's rubbed (for containers that make their own) and refilled from crafting_container.
alcohol_container The same, for alcohol.

If you don't use a container and have no water or alcohol, it buys some at the alchemy shop in your crafting town (force_crafting_town, otherwise hometown), with coin from that town's bank. It also buys a coal nugget if that's the catalyst and you have none. Then it walks to your alchemy_room, or back to where you started if that isn't set. If it can't buy something, it says so and carries on without it.

hometown: Crossing
force_crafting_town:
alchemy_room:

The recipe

master_crafting_book:

It uses your master_crafting_book if set, otherwise a remedies book from crafting_container. From 175 Alchemy ranks, studying the remedies book reminds you to upgrade to a journeyman or master book before 176. The instructions form uses <noun> instructions instead (see Argument Settings).

Magic and buffs

waggle_sets:
  remedy:
crafting_training_spells:

Before starting it casts your remedy waggle set, if you have one. It also casts your crafting_training_spells between steps (see Crafting Setup), and releases them when it's done.

Other settings

Setting Default Purpose
mark_crafted_goods false Mark the finished remedy with your stamp.
remedy_repair_stamp false If the stamp is too badly damaged to mark the remedy, repair it with your own wire brush and oil, then mark again.
cube_armor_piece The item your Hollow Eve cube is attached to. It's touched before starting.
  • Without remedy_repair_stamp, a damaged stamp leaves the remedy unmarked, with a message saying so.
  • With it, the repair can walk to the bank and to the forging supply shop of your crafting town for oil or a wire brush, then back. The remedy waits in crafting_container meanwhile, and is back in your hands at the end.

When it's done

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

  • The finished remedy is left in your hands, your tools and the container are put away, and it counts the remedy's uses.
  • It releases any crafting_training_spells it left prepared, however it ends.
  • It stops with a bold "Remedy:" message, and no remedy, when:
    • the game refuses the herb, or wants more of it;
    • a tool, the remedies book, the catalyst or the second herb can't be got or put in;
    • the game asks for a second herb when there isn't one (na, or the instructions form);
    • the game stops answering, or the remedy isn't done after 100 steps;
    • you have fewer pieces of the main herb than your herb quantity;
    • the instructions can't be got or studied, or fade before crafting starts;
    • it has to buy water, alcohol or a coal nugget, and there's no alchemy shop it knows of in your crafting town or hometown;
    • the finished remedy isn't in your hands at the end.
  • If it stops with an unfinished remedy in the container, it prints the ;remedy continue command that picks it up again.

Argument Settings

Make a remedy:

;remedy remedies <chapter> "<recipe name>" <herb1> <herb2> <catalyst> <container> <noun> [herb quantity]

Argument Purpose
remedies Required; the book type.
chapter The recipe's chapter.
recipe name The recipe name, in double quotes if more than one word.
herb1 The main herb, in double quotes if more than one word.
herb2 The second herb, or na, none or "not used" if the recipe has only one.
catalyst The catalyst, e.g. "coal nugget".
container The container the recipe uses, e.g. mortar or bowl.
noun The finished remedy's noun: cream, salve, wash, balm, unguent, potion, tonic, ointment, elixir, poultices, draught, and for the instructions remedies, liniment or curative.
herb quantity Optional. The fewest pieces of the main herb to use, from 1 to 75. It gathers until one stack holds at least that many and puts the whole stack in. With fewer, it puts the herb away and stops before starting.

Make a remedy from instructions:

;remedy instructions <herb1> <catalyst> <container> <noun> [herb quantity]

It gets <noun> instructions from crafting_container (or your alchemy_belt), studies them, puts them back and says how many uses they have left. There's no second herb. No book is opened. The instructions remedies are a clubmoss liniment, a woundwort curative, a marram salve and a flamestalk potion.

Continue a remedy already in your container:

;remedy continue <herb2> <catalyst> <container> <noun>

It analyzes the remedy in the container in your hands, then carries on.

Usage

;remedy remedies 2 "some blister cream" "red flower" nemoih "coal nugget" mortar cream

;remedy remedies 3 "some chest salve" plovik none "coal nugget" mortar salve

;remedy remedies 2 "some blister cream" "red flower" nemoih "coal nugget" mortar cream 50

;remedy instructions marram "pewter ingot" mortar salve

;remedy continue nemoih "coal nugget" mortar cream

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