Building with an AI assistantA riddling toad, built by asking
Your own AI assistant can build in your zones. It signs in as your builder character, reads what is there, and writes its changes into a layer in your private copy. Players do not see your changes until the layer is merged into a layer that is live.
This page connects an assistant, then follows one request from start to finish: a toad at the bottom of a well who asks a riddle, gives a hint after three wrong answers, and remembers everyone who solved it. That takes a script, the kind of thing that is complicated to get right by hand.
Instances, layers and merging are explained in the Building tutorial. Read that one first; this page uses its commands and its zone, Lantern Hollow. If you built Tera with number ranges and archives, start with For returning builders.
Connect your assistant
Any assistant that takes an MCP connector works: Claude, Codex, ChatGPT, Cursor and others. You use your own account with it. Nothing is installed.
- Log in to the game in your browser, at /play/, with your builder character.
- In your assistant's settings, add a custom connector with the address https://arcaneages.com/mcp.
- Your browser opens a sign-in page on arcaneages.com. It names the assistant and your character, and lists what the assistant may read and write and what it never does, as below. Choose Allow.
In the game, connector lists the assistants connected as you, and connector revoke all cuts them off at once.
| It may read | The rooms, creatures, objects and reset tables of your zones and their layers; the house style, the public lore, the DeadScript reference and every zone's fact sheet. |
| It may write | Change sets into a layer of one of your zones that isn't on in live: rooms, creatures, objects and reset lines, made, changed or removed; at most 500 records a day. You see each in game (changes) and take it back with undo set. |
| It never | Writes the base, turns a layer on for players, merges, touches other builders' zones, the closed flag or exits to other zones, types commands, or reads players or mail. |
The example: the toad in the well
In the Building tutorial you made Lantern Hollow, with a dark room at the bottom of its old well, hollow.old-well. Now you want a secret behind the well wall, and a toad who guards it with a riddle.
1. Open your copy and make a layer
goto hollow.old-well instance hollow as well lcreate toad The riddling toad ledit toad
You stand in your copy of the well, editing the layer toad. The assistant writes into the same layer, and you watch its work arrive around you.
2. Ask in plain English
I'm editing the layer toad in Lantern Hollow. Put an old toad in hollow.old-well. When a player comes in, it asks a riddle whose answer is "echo". A player who says the answer is let through a crack in the wall into a new hidden room. After three wrong answers the toad gives a hint. It remembers who has solved it, and lets them straight through next time. Show me the change set before you apply it.
3. What it builds
The assistant reads the well room and the zone, then proposes one change set: a list of changes the game checks and applies together, all or nothing. This one has three.
| A room added | hollow.toad-hole: Behind the Well Wall. One exit leads back out to the well. No exit leads in. |
| A creature added | hollow.toad: the old toad, with two behaviours. |
| The resets | One line added: the toad loads in the well, and there is never more than one of him. |
Since no exit leads into the hidden room, the toad is the only way in. His two behaviours are scripts in DeadScript, the game's scripting language. The first greets a player who walks in:
JavaScript (enterroom cm player)
if ( actor.db.toadSolved ) {
self.say( 'You again, ^2n. Through you go.', actor );
actor.go( Room.at( 'hollow.toad-hole' ) );
} else
self.say( 'I speak without a mouth and hear without ears. What am I?' );
The second listens to what players say:
JavaScript (after say cm player)
if ( !actor.db.toadSolved ) {
if ( event.text.toLowerCase().indexOf( 'echo' ) >= 0 ) {
actor.db.toadSolved = true;
self.say( 'An echo. In you go, ^2n.', actor );
actor.go( Room.at( 'hollow.toad-hole' ) );
} else {
actor.db.toadWrong = ( actor.db.toadWrong || 0 ) + 1;
self.say( actor.db.toadWrong < 3 ? 'No.'
: 'No. A hint: shout down a well, and I answer.' );
}
}
Four things in those lines do the work:
| The trigger | (enterroom cm player) runs the script when someone walks in, and (after say cm player) when someone has spoken. cm player means players only, so the toad ignores other creatures. |
| actor.db | The toad's memory. Whatever a script stores on actor.db stays with that player through logouts and reboots. toadWrong counts wrong answers, and toadSolved marks a player who got it right. |
| event.text | What the player said. The script lowers it and looks for echo anywhere in it, so "Is it an echo?" counts. |
| actor.go | Moves the player to the room at that address. The assistant may only name rooms of your own zones here. |
In self.say, ^2n is the player's name. You read the proposal, say go, and the assistant applies it. The game tells you, in the game:
Your AI assistant changed <what> (The riddling toad): changes <id> shows what; undo set <id> takes it back.
4. Try it in your copy
The toad loads at your copy's next reset; zreset hollow runs one now. Walk out of the well and back in.
- The toad asks his riddle. say a ghost, say the wind, say a shadow: two plain refusals, then the hint.
- say is it an echo? and you are behind the well wall. look and read the new room.
- Walk back out and in again. He knows you, and waves you straight through.
5. Change it, or take it back
To change something, ask again: "the hint should come after two wrong answers". That is a second, small change set. To take one back, type undo set <id>. changes lists every set with its id, and changes <id> shows exactly what one did. The game builds that page from what really changed, not from what the assistant says it did.
6. Merge it
lset hollow.toad merge lset hollow.toad merge yes
The first line shows what the merge would do. The second does it: the layer is merged into the layer beneath it, Lantern Hollow's base, and from that moment players can meet the toad. zone revert hollow undoes the merge and gives you the layer back.
Good to know
- Some things are always refused. A script that kills, removes or rewards anyone, a change to a zone you don't build, and more than 500 records in a day. A refusal changes nothing and says why.
- Keep each request small. One request makes one change set, and undo set takes back one change set.
- Say names and numbers in the request. "In hollow.old-well, a hint after three wrong answers" leaves nothing to guess.
- Then walk it. A riddle is only tested when you have stood there and answered it.