MongooseA text-based world full of questionable inventions.

All help topics · Link to this topic

Showing help on '$building_utils'

building utilities ($building_utils #21)

Verbs useful for building. For a complete description of a given verb, do `help $building_utils:verbname'.

make_exit(spec,source,dest[,don't-really-create]) => a new exit
spec is an exit-spec as described in `help @dig'

set_names(object, spec) - sets name and aliases for an object
parse_names(spec) => list of {name, aliases}
in both of these, spec is of the form
<name>[[,:]<alias>,<alias>,...]
(as described in `help @rename')

recreate(object, newparent) - effectively recycle and recreate object
as a child of newparent
refit_plan(ship) -> missing {master room, built room, master fitting} rows; read-only.
refit_correspondence(ship) -> pairs, unmatched master rooms and unmatched built rooms.
refit(ship) -> new fittings; wizard only, additive and idempotent; carries no nonclonable stock.
Rooms match by area-tree position, ancestor and room names, and exit aliases/destination positions.

:make_exit - make_exit(spec, source, dest[, use-$recycler-pool [, kind]])
:set_names - $building_utils:set_names(object, spec)
:recreate(object,newparent) -- effectively recycle and recreate the specified object as a child of parent. Returns true if successful.
:parse_names - $building_utils:parse_names(spec)
:object_audit_string(object [,prospectus-style])
:do_audit(who, start, end, match)
:do_audit_item(object, match-name-string, prospectus-flag)
:clone_area - clone_area(original, ?skip_exits = false, ?as_child = false) -> {copy, room mapping}: copies an area, its rooms (copy_room_set) and nested areas, then rebuilds exits between the copies unless skip_exits.
:clone_room - Clone one controlled room, its details, its ambient sounds (room.sounds, as copies) and opted-in fittings as the caller.
:open_sockets - open_sockets(rooms) -> {{room, exit}, ...} for every exit in the set whose dest is $nothing (an open socket / unfinished exit).
:mate - mate(exit_a, exit_b) -> wire two open-socket exits to point at each other's source rooms (bidirectional), updating entrances.
:copy_state - copy_state(original, copy, ?skip={}) - for :cloned callbacks: copy every property value from original to copy (except names in skip), then its in-room position.
:copy_room_set - Copy controlled rooms, fittings and their links into an area under actor authority.
:rebuild_room_exits - Rebuild exits between copied rooms, changing pairing identifiers and orientation as required.
:chunk_copy_cost - Estimate the numbered-object and byte quota of copying rooms and opted-in fittings.
:chunk_budget - chunk_budget(actor, rooms, ?extra=0, ?reader=actor) -> "" when ACTOR's building quota covers copying ROOMS (their copyable fittings and EXTRA further objects), else the refusal message naming what is short; wizards always get "".
:copy_text_properties(source, target): copy the builder-written words of source onto target.
:clone_room_fitting - clone_room_fitting(OBJ, clone, room, orientation, text_mode) copies fitting OBJ into the room copy CLONE, keeping its name, text, configuration, size, contents and position.
:refit_fixture14 - Create two real refittable ship interiors using named fixtures and the existing native hull constructor.
:copy_fixture_configuration(source, target) preserves messages, an explicit readable form, and declared configuration.
:announce_copied - announce_copied(source, copy, ?room, ?mapping) is how a builder that made COPY itself (a fresh child from $recycler or copy_create, configured from SOURCE, an instance or a generic) finishes it: COPY's class resets it through the same cloned announcement #1:clone makes, event_cloned(source, room, mapping).
:copy_fixture_contents - copy_fixture_contents(source, copy, room) is the builders' content step for a fitting they copied into ROOM: when SOURCE holds clonable things and COPY holds nothing yet (its own event_cloned may already have built parts, such as a fridge's compartments), clone_fixture_contents copies them; a container takes the source's stock_list when it has none and is then restocked.
:valid_layout_copy - Recognize a native room-set copy event before a receiver uses its source-to-copy references.
:may_copy_fitting - An enclosing room may exclude an actual fitting or contained object from a building layout copy.
:_tick_old_crf - Temporary: the clone_room_fitting body before 2026-12-02, from ~/mongoose_db, to measure ticks; removed after.

Also from $generic_utils: 1 documented verb. help $generic_utils