Skip to content
kahlen-tech edited this page Oct 4, 2026 · 1 revision

Description

Uses your tessera in the background to train Trading. Every 20 seconds it checks whether Trading is low and it's a good moment. If so, it pauses your other scripts, retreats, takes out the tessera, asks it about invest, and puts it away again.

It waits tessera_retry_interval seconds (375 by default) between uses. The time of the last use is remembered between sessions.
If it can't find your tessera at all, it says "Tessera not found, exiting" and stops.

Settings

YAML Settings

Your tessera

tessera_noun: tessera
tessera_mindstates: 3
tessera_retry_interval: 375
tessera_startup_delay: 15
Setting Default Purpose
tessera_noun tessera The noun of your tessera.
tessera_mindstates 3 Only use the tessera while your Trading mindstate is below this.
tessera_retry_interval 375 Seconds to wait after a use before trying again.
tessera_startup_delay 15 Seconds to wait after starting before doing anything.
The comment in base.yaml says the tessera is used at or below tessera_mindstates, but it's only used below it. With the default of 3, that means mindstates 0 to 2.

When not to use it

tessera_no_use_scripts:
  - alchemy
  - athletics
  - bescort
  - burgle
  - carve
  - clean-leather
  - clean-lumber
  - corn-maze
  - craft
  - enchant
  - forge
  - get2
  - go2
  - locksmithing
  - pick
  - remedy
  - safe-room
  - sew
  - shape
  - smelt
  - smith
  - tinker
  - workorders
tessera_no_use_rooms:
  - !ruby/regexp /\b(Carousel|Vault|Item Registration Office|Registrar's Office)\b/
Setting Default Purpose
tessera_no_use_scripts the list above Don't use the tessera while any of these scripts is running.
tessera_no_use_rooms the list above Don't use it in these rooms. Each entry is a room id (a plain number, not in quotes), the whole room title (without the [[ ]]), or a !ruby/regexp matched against the title.

Both lists come with useful defaults. If you set your own, yours replaces the default list completely, so start from the lists above and add to them.

It also waits while you're hidden or invisible, or while both your hands are full (unless one of them is holding the tessera).

What each use does

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

  1. Pauses your other scripts (if it can't, it tries again every 30 seconds) and waits for roundtime.
  2. RETREATs, in case you're in combat.
  3. Gets your tessera, unless you're already holding it. If you have it but can't get it out, it says "Hands full, will try again later" and tries again on its next check.
  4. ASKs the tessera about invest, then STOWs it. The tessera goes wherever STOW puts things, which may not be where it came from.
  5. Notes the time and unpauses your scripts.

The time is noted even if the game says you can't use the tessera while focusing on combat, so it waits the full tessera_retry_interval before trying again.

Argument Settings

There are no arguments.

Usage

;tessera

Leave it running. To have it start every time you log in, add it to your Lich autostart. Unlike some background scripts, it is stopped by ;kill all.

Crossing Training

crossing-training can use a tessera itself, for Traders:

use_tessera_during_crossing_training: true

That's separate from this script. It uses its own timer of about 11 minutes, and doesn't read any of the settings above.

Clone this wiki locally