HEISENBERG'S CASTLE 1.0 An In-Game Module for Legend of the Red Dragon Copyright (C) 2026 Michael Slater Kalgoorlie Retro BBS - https://kalretro.au/castle/ Free software under the GNU GPL, version 2 or later (COPYING) WHAT IT IS ---------- Castle Heisenberg stands on a crag above the town. Its lord, a scholar- knight and alchemist, keeps an open hall. Players reach it from LORD's Other Places menu and find: S The Solar of Lord Heisenberg - one riddle a day; a right answer lets the player choose +2 strength, +2 defence, +1 charm or +5 maximum hit points. F The Forge of Master Wulfric - +1 strength or +1 defence for gold; the price grows with level and with each job; a daily limit. C The Counting House - keeps gold, gems, forest fights and player fights, with caps and a daily limit on fights taken out. T The Crooked Crown - Twenty-One against the dealer (stands on 17, a two-card 21 pays 3 to 2, a tie returns the stake), Knucklebones (three dice each, high total wins), a daily tankard of ale, gossip. H The Chapel of St. Aldric - healing for gold; a free daily blessing. J The Jousting Lists - one joust a day, three passes. W The Well in the Bailey - a daily coin; now and then a wish. D The Deep Catacombs - descents per day, 13 random events. One is only for Death Knights, one for Mystics, one for Thieves. Nothing in the castle can kill a player: hit points stop at 1. R The Roll of Honour - rankings over every player in the game. There is no registration: everything works as soon as it is installed. WHAT YOU NEED ------------- DOS version (CASTLE.EXE): LORD 4.06 or 4.07 beta, or LORD FP's DOS version, on DOS, DOSBox-X or dosemu2. A FOSSIL driver, or a plain COM port. SHARE for several nodes. Linux version (castle): LORD FP for Linux, release of 16 November 2026 or later (it runs native Linux IGMs). INSTALLING - DOS ---------------- 1. Make a folder below your LORD folder, e.g. C:\LORD\IGMS\CASTLE, and unzip CASTLD10.ZIP into it. 2. Run CASTCFG from that folder. C sets every value (Enter keeps the default), I installs the castle into LORD's 3RDPARTY.DAT. It asks for your LORD folder (it guesses two levels up). 3. That's all. Players find "Heisenberg's Castle" under Other Places. The line CASTCFG adds to 3RDPARTY.DAT looks like this: C:\LORD\IGMS\CASTLE\CASTLE.EXE * C:\LORD\ `%Heisenberg's `0Castle * is the node. The COM port comes from LORD's INFO. file; you may add it as a third word (1 = COM1, L = local) if yours is different. Under DOSBox-X give the paths as DOSBox sees them (for example E:\LORD4\). INSTALLING - LINUX (LORD FP) ---------------------------- 1. mkdir /sbbs/xtrn/lordfp/igms/castle (or wherever your game is) and unzip CASTLL10.ZIP into it. 2. cd there and run: ./castcfg DEFAULTS ./castcfg INSTALL /sbbs/xtrn/lordfp/ or ./castcfg for the menu. 3. LORD FP runs it as a native IGM (a 3RDPARTY.DAT line starting with /). Files are opened by the same user the BBS runs LORD FP as, so make sure that user can write the castle's folder. CASTCFG ------- C Configure every setting R Reset the castle (wipes CASTLE.DAT) I Install into LORD V View the activity log U Uninstall from LORD Q Quit For scripted installs: CASTCFG DEFAULTS | INSTALL | UNINSTALL SETTINGS (CASTLE.CFG) --------------------- A plain "key = value" file; CASTCFG writes it with comments. Every key must be present: if one is missing or out of range, the castle tells the player to fetch the SysOp, says which setting is wrong, and goes back to LORD. "x level" amounts are multiplied by the player's level. TIMEOUTSECS idle seconds before the player is sent back (180) MAXGOLD most gold kept in the Counting House per player MAXGEMS most gems kept MAXFIGHTS most forest fights kept MAXPFIGHTS most player fights kept FIGHTSOUTDAY fights (both kinds) a player may take out per day MAXTRANSFER largest single gold deposit or withdrawal TABLEMAXSTAKE Twenty-One's largest stake BONESMAXSTAKE Knucklebones' largest stake FORGEBASECOST gold x level x (jobs today + 1) per forge point FORGEPERDAY forge jobs per day HEALCOSTPERHP chapel: gold x level per hit point WELLCOST the well's coin, gold x level WISHGOLD a wish for gold gives this x level WISHGEMS a wish for gems gives this many JOUSTPRIZE prize gold x level for winning a joust COFFINGOLD a catacomb coffer holds up to this x level DESCENTSPERDAY catacomb descents per day RIDDLESPERDAY, JOUSTSPERDAY, WELLSPERDAY, BLESSPERDAY, ALEPERDAY SOLAR, FORGE, COUNTINGHOUSE, TAVERN, CHAPEL, LISTS, WELL, CATACOMBS, RANKINGS yes/no: that place is open NEWS yes/no: write jousts won and wishes to the Daily News RETHEMING --------- CASTLE.TXT holds every room's description. A screen starts with @#ID and ends at a blank line; a line holding just "." is an empty line inside a screen. LORD colour codes work, and @NAME@ @SIR@ (Sir or Dame) @GOLD@ @GEMS@ @HP@ @HPMAX@ are filled in. Keep the IDs as they are. GOSSIP.TXT holds the tavern gossip, one line each. FILES ----- CASTLE.EXE / castle the IGM CASTCFG.EXE / castcfg set-up program CASTLE.CFG settings (made by CASTCFG) CASTLE.TXT, GOSSIP.TXT screens and gossip CASTLE.DAT players' castle records (made by the IGM) CASTLE.LOG what each player did CASTLE.DOC this file COPYING the GNU General Public License The castle changes LORD's PLAYER.DAT (re-reading each player before every change), the fairy line of INFO., and LOGNOW.TXT, as IGMs do. FOR THE SYSOP AT THE KEYBOARD (DOS) ----------------------------------- F1 chat with the player (Esc ends the chat) F10 send the player back to LORD SOURCE ------ CASTLS10.ZIP has the Free Pascal source. Build with FPC 3.2.2: Linux with "fpc castle.pas", DOS with the i8086 cross compiler (-Tmsdos -WmLarge). build.sh builds both. Legend of the Red Dragon is by Seth A. Robinson (Robinson Technologies), now owned by Metropolis Gameport. Heisenberg's Castle is an independent module and is not made or endorsed by them.