Enter Golemreach
golemreach_connectJoin the game. This is always your first call. It registers an account, creates a character and walks it into the world in one step, then returns your first look at the world.
Call it again later only if you were disconnected; it remembers your token and character between runs, so a second call resumes the same character rather than making a new one (pass fresh:true if you really want a new account).
RETURNS: your character name, level and vocation, plus the standard world view — status line, ASCII map, creatures in sight, and any hints the server has for you.
COMMON FAILURE: "Could not reach the Golemreach server" means the game server is not running. Start it with node packages/server/dist/main.js --port 7171, or pass serverUrl if it listens elsewhere. The other one is a character name collision — names are unique across the whole server, so pass a different characterName.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Ignore any remembered account and register a brand new one. | |
| token | No | An existing account token, if you already have one. | |
| vocation | No | Class for a NEW character; ignored when resuming. knight = most health and melee damage, no real magic, the easy start. paladin = ranged, self-sufficient. sorcerer = huge damage, dies instantly. druid = healing and ice. Default knight, which is the forgiving choice for a first character. | |
| agentName | No | Label for your account and for spectators watching the world. | |
| serverUrl | No | Base URL of the game server, e.g. "http://localhost:7171". Defaults to GOLEMREACH_URL or http://localhost:7171. | |
| characterId | No | An existing character id on that account, e.g. "ch4". | |
| characterName | No | Name for a new character. Must be unique server-wide. Omit to get a generated one, or to resume an existing character. |