Craft Settings - elanthia-online/dr-scripts GitHub Wiki
Description
Trains a crafting skill by making one item suited to your ranks, buying the materials it needs, and throwing the item away afterwards. It's quicker than workorders, but costs coin instead of earning a little.
Supported crafts: forging, outfitting, engineering, alchemy and enchanting.
You need the craft's tools and recipe book first. See Crafting Setup for tools, toolbelts and books.
Settings
YAML Settings
When to stop
craft_max_mindstate: 31
If the craft's skill is already above craft_max_mindstate, it exits without making anything.
Where to craft
hometown: Crossing
force_crafting_town:
training_rooms:
safe_room:
enchanting_room:
| Setting | Default | Purpose |
|---|---|---|
| force_crafting_town | Buy materials in this town instead of your hometown. |
|
| training_rooms | Rooms to craft in; one is picked at random. Falls back to safe_room. Engineering looks for a free shaping room instead. |
|
| enchanting_room | Room for enchanting. |
Choosing the item yourself
Normally the item comes from your ranks (see the tables below). craft_overrides makes a specific item instead, for outfitting, engineering or forging. Alchemy and enchanting always follow the tables.
craft_overrides:
Outfitting:
chapter: 5
item: a knitted blanket
type: knit # knit or sew
volumes: 7 # yards of fabric, for sewing
Engineering:
chapter: 7
item: a wood bracelet
Forging:
item: a shallow metal cup
Materials
It buys what's missing before each item:
| Craft | Materials |
|---|---|
| Outfitting | Yarn for knitting, or cotton thread and burlap cloth for sewing. It keeps at least yarn_quantity yards of yarn and of thread. |
| Engineering | Maple lumber, when you have fewer than 5 pieces. |
| Forging | A bronze ingot, bought by ;smith. |
| Alchemy | The recipe's herbs (25 of each) and catalyst. Herbs the shop doesn't sell are foraged and prepared with ;alchemy. |
| Enchanting | The recipe's sigil-scrolls, a bone totem or basic runestone, and a fount with enough charges. |
yarn_quantity: 100
crafting_container: backpack
crafting_items_in_container:
| Setting | Default | Purpose |
|---|---|---|
| yarn_quantity | 100 | Yards of yarn (and thread) to keep on hand. Don't go above 300. |
| crafting_container | backpack | Where materials are kept. |
| crafting_items_in_container | Items to take only from crafting_container. |
It withdraws coin from your bank as needed. If it can't get enough for alchemy materials, it skips making the item.
Teaching and listening
While knitting, sewing or shaping, it can teach or listen in the room.
classes_to_teach:
listen: false
listen_observe: false
| Setting | Default | Purpose |
|---|---|---|
| classes_to_teach | Skills to teach the people in the room, switching to the next every 10 minutes. | |
| listen | false | Listen to a class in the room, picking your lowest skill that someone's teaching. |
| listen_observe | false | Also listen to observe-type classes. |
Other settings
| Setting | Default | Purpose |
|---|---|---|
| storage_containers | Containers to open when starting. | |
| worn_trashcan / worn_trashcan_verb | A worn trash container for the finished items and leftovers. |
What it makes
The item is chosen from your ranks in the skill.
| Ranks | Outfitting | Engineering | Forging | Alchemy | Enchanting |
|---|---|---|---|---|---|
| 0-25 | knitted socks | wood band | shallow metal cup | blister cream | radiant trinket |
| 26-50 | knitted mittens | wood bracelet | short metal mug | moisturizing ointment | flash trinket |
| 51-100 | knitted hat | wood cloak pin | back scratcher | chest salve | wind trinket |
| 101-175 | knitted gloves | wood amulet | metal ankle band | neck potion | earth trinket |
| 176-300 | knitted hose | wood brooch | metal lockpick ring | limb salve | basic holy ritual focus |
| 301-425 | knitted cloak | wood armband | metal armband | chest unguent | strange arrow runestone |
| 426-550 | knitted blanket | wood choker (to 600) | metal clippers | neck tonic | gauge flow runestone |
| 551-700 | small cloth rucksack | articulated wood necklace (601-700) | squat knitting needles | eye tonic | dispel runestone |
| 701-850 | cloth rucksack | wood crown | serrated hide scraper | body elixir | lay ward runestone |
| 851-1175 | cloth mining belt | wood comb | serrated scissors | general elixir | frost focus |
| 1176-1400 | cloth survival belt | wood haircomb | thin sewing needles | refreshment elixir | electric focus (1176 and up) |
| 1401+ | cloth artisan's belt | ornate wood burin | trapezoidal wire sieve | vigor poultices |
The frost and electric focus sigils can't be bought; gather them yourself first (for example with a sigil-harvesting script). The higher alchemy tiers forage some herbs (belradi, blue flower, dioica).
The work itself is done by ;sew (knitting and sewing), ;shape, ;smith, ;remedy and ;enchant, so their tool settings apply.
Argument Settings
| Argument | Purpose |
|---|---|
| craft | Required. forging, outfitting, engineering, alchemy or enchanting. |
| debug | Verbose debug output. |
Usage
;craft outfitting
;craft engineering
You can run it before a hunt, or in a subsection of T2:
hunting_info:
- :zone:
- young_blue_dappled_prereni
:duration: 30
before:
- craft engineering
T2
- skill: Outfitting
start: 10
scripts:
- craft outfitting