Ember Reach bot for SyncTERM-Lua
================================

emberbot.lua plays one day of Ember Reach for you, then logs off the
game. It is for testing and for players who want to see the game played.

You need SyncTERM-Lua (SyncTERM with Lua scripting), from
https://games.theiguru.au/lordsrv/ (the SyncTERM-Lua downloads).

Using it
  1. Copy emberbot.lua into SyncTERM-Lua's scripts folder (or anywhere).
  2. Log on to the BBS and start Ember Reach.
  3. At the welcome question, the overnight report or the main menu,
     press Alt-S and give the path of emberbot.lua.
  4. Press Alt-S again at any time to stop it and play yourself.

It plays the house of the BBS user you are logged on as. If you have no
house yet, it founds one named after you. It scouts, settles free worlds,
orders ships and buildings, sets research, and reads the report, news and
messages.

Files it writes, next to the script:
  emberbot-<user>-<date>.log   what it did that day
  emberbot-errors.log          problems only: errors, refused orders,
                               screen lines wider than 80 columns
  emberbot-<user>-state.lua    what it has learnt about the map

To make it play faster, set KEY_DELAY and READ_DELAY near the top of the
script to 0.

Copyright (C) 2026 Michael Slater. GNU General Public License version 2
or later (COPYING).
