As mentioned in previous posts, I've been playing with ingame map modification. Here's my current code (diff with current cvs, as anonymous access sees it). This is not intented to be committed to cvs, but just to show the code & have opinions on it :) Quick & dirty modifications to test it, after applying & building: * using an editor, open your appartment (or any unique map which gives map->unique == 1, actually) * increase its size, leave undefined squares around * save, close, launch game, enter that map * you'll need to switch to dm to create items, no way to get'em currently Here are the archetypes i defined, how to use'em and what they do: (those archetypes are items in inventory, apply one to build) * builder_floor face a wall, apply the Floor builder. Will remove the wall, put a floor, make sure there are floors and/or walls around affected square, and ensure walls are correctly connected. Uses floor you are standing on for archetype, destroyed wall for walls you add * builder_wall face a square where you can go, which must be adjacent to an existing wall. Will put a wall of same archetype as first found wall around affected square, and ensure walls are correctly connected * builder_door_detector face a 'free' (where you can go) square, with the next in line free too. You must look either horizontally or vertically, diagonals NOT authorized. Will make a door and 2 pedestals to activate it. Uses a random connection number (range 0-19999, should be ok) * builder_door_button same as previous, but makes buttons instead of detectors Feel free to test it, or not :) Nicolas 'Ryo' -------------- next part -------------- A non-text attachment was scrubbed... Name: build_stuff.patch.bz2 Type: application/x-bzip2 Size: 4094 bytes Desc: not available Url : http://shadowknight.real-time.com/pipermail/crossfire/attachments/20030929/188d6a43/build_stuff.patch.bin