LEDIT
ledit <layer>leditledit stopledit lines on|offledit baseThe ledit command starts building into a layer. Typed in an instance of the layer's zone, it turns the layer on there (if it isn't), with the layers it is over beneath it, and from then on everything you build in that zone, in that instance, is saved into the layer as you type. Live doesn't see it. Typed in live, it takes you into your instance of the zone with the layer on (it opens one if you have none) and starts there.
You build with the commands you always use: redit (every field), rflag, dig, rcreate, rcopy, rdelete, mproto and medit, mcreate, mdelete, oproto and oedit, ocreate, odelete, zedit zone, the building windows, and undo. Nothing is saved by hand: rsave and the other saves say so; the layer reaches the base by a merge (lset <layer> merge).
A layer may change the exits of its own zone's rooms that lead into other zones: add one, take one away, lead it somewhere else, change its door. The exit back belongs to the other zone. A layer never holds the room flag closed, the zone flag public or the zone's builders: those are the base's. A command that changes one of them has that part put back and named; the rest is saved. rmove, rrenumber and the zone operations change the base's shape and are refused in a layer.
ledit alone says which layer you edit and where; ledit stop ends it (leaving the instance ends it too). ledit lines on adds a line after each edit saying what went into the layer. Any builder of the zone may edit any of its layers that is off in live, at the same time as others; the later change of a field wins.
In a layer, every builder of the zone may remove rooms, creatures and objects (rdelete, mdelete, odelete), below the level those commands need on the base. The removal is in the layer only: lstat lists it, the merge preview names it, and zone revert takes a merge back. A thing still named by an exit or reset line of another zone, or by a script, is refused.
A layer that is on in live is changed by a layer over it: lcreate siege-fix over siege <title>, then ledit siege-fix builds it in your instance with siege on beneath it, and it merges into siege.
Architects: editing a live layer in place
Every live layer is equal, the base included. An architect standing in live picks which one their building commands write into:
| Typed in live | Does |
| ledit <layer> | for a layer on in live: your building commands in its zone now write into it, and players see each change at once: Your building commands in moz now write into winter (on in live). ledit base to go back. |
| ledit base | the base again (where you start) |
| ledit stop | the same: back to the base |
While a layer is your target, the room stamp says editing winter in live, and where am i ends with Your building commands write into winter. Every edit is saved into the layer as typed, with its history edited in live by <name>, and undo takes it back. If a layer higher in the stack covers what you wrote, you are told: Written to winter; players see yuletide's (it covers it). Layers over it whose entries the edit makes stale are named: yuletide has 2 stale entries now (lstat yuletide).
In another zone's room your building commands are refused: You are editing winter (moz); this room is in bogg. ledit base to edit bogg's base. The reset table isn't edited in live (build it in an instance, in a layer over it), and folds and saves are refused while a layer is your target. When the layer leaves live (off, turned back, merged, deleted) your target goes back to the base and you are told. A reboot puts every target back on the base.
The layers made from the old builder files (arch-<name>, listed by llist <zone> archives) are edited like any other.
Your AI assistant writes into the layer you are editing in an instance, unless its set names another (connector); it never writes into a layer on in live.
A layer name alone means the one in the zone you stand in; moz.fix-docks names another zone's.