1990 · Blade Software

Lords of Chaos

This minisite was contributed by air. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/spectrum/lords-of-chaos with me to Gold.

Three maps of 36 by 36 squares, each drawn here from its scenario file: a green land of houses and rivers, a dungeon of rock and lava, and a sorcerer's hall of traps, teleports and walls you can walk through.

01 · Scenario 1

The Many Coloured Land: the portal can open on the map's edge

Up to four wizards start on the four pentacles. Three giant spiders roam between the corners, where four locked chests wait to be filled with treasure at the start of each game.

Choose a square.

Every square drawn from the scenario's map, things and graphics, the way the game draws its map window ($A94C). The creatures and objects are the ones the scenario places itself ($FF15). Each game also scatters objects at random over the open ground and into the chests, and shows a square's contents only once one of the player's creatures has seen it.

Each wizard takes one of the four pentacles, at rows and columns 9 and 26. The portal they leave by opens on turn 12 to 15, on one of four squares, three of them on the edges of the map, and stays open for 12 turns, so nobody knows in advance where to wait for it.

The corners hold the treasure. The start of each game fills each locked chest there with one to six objects drawn at random ($FE03). The giant spiders, which belong to nobody, patrol the corners: two walk route 1, round all four, and one walks route 8, from corner to corner.

In a game against the computer, TORQUEMADA's creatures each take one of the eleven routes that suits their kind. A scenario hook keeps them, and only them, out of water, tangle vine and fire ($E16A).

02 · Scenario 2

Slayer's Dungeon: opening the Slayer's chest wakes three groups of guards

The Slayer, worth 30 points, lies in a locked chest with a magic elixir. Its key is in another chest in the north, and opening the Slayer's chest wakes three groups of guards at once.

Choose a square.

Drawn the same way as scenario 1. Choose a trip square to see which creatures it wakes, or a creature to see the route it walks. A red waypoint is one that lies past the end of the scenario's table of waypoints.

Twelve of the fourteen independent creatures start out waiting, each in a numbered group (bit 6 of their orders, $D4E5). A trip square wakes a group when anything changes the square ($A716): a door unlocked, opened or closed, a chest opened, or its terrain changed by any other means. Eight of the eleven trip squares in the list are doors, with their creatures waiting behind them. The other three all name the Slayer's square, at row 16, column 33, so opening its chest wakes groups 1, 2 and 3 at once: the two spectres at the west end and the demon two rows above the chest.

Two pieces of the scenario's own code change the rules in the dungeon. One makes the dungeon things invisible again at the start of every turn ($E39E). The other makes the river of molten lava, which costs no more to walk into than the floor, take 7 points from a creature a player moves into it ($E1F0). The computer's creatures cross the lava unharmed, as Discoveries shows.

Three of the seven routes the computer's creatures choose from, routes 0, 2 and 6, name waypoint 28, but the table holds only waypoints 0 to 27. The game reads the two bytes after the table as the square ($9971), which gives row 8, column 7, a square of rock wall. A creature moves on to its next waypoint only when it stands on the one it is heading for ($9992), and nothing but a ghost can stand in rock, so a creature that takes one of these routes never gets past it. Discoveries has more.

03 · Scenario 3

Ragaril's Domain, from the start to the portal

One wizard plays against RAGARIL, and the portal opens late, on turn 44 to 51, in a hall at the centre that has no door. The scenario's own code adds teleports, trap floors, a floor that kills and an altar that takes a life.

Choose a square. A scroll shows its message.

Drawn the same way as scenario 1. The orange marks come from the scenario's own code: the table of teleports ($E3AD), the trap floors ($E324), and the floor and altar that kill ($E3C9). The walls marked are the ones a creature can walk through or break with ease.

The scrolls hold the scenario's hints. A wizard reads one with READ, a menu option only this scenario adds ($E2F8). "Offer a living sacrifice on the altar of Sondoman": a creature that starts its turn on the altar, at row 18, column 9, dies, and four walls in row 16 become locked doors ($E3C9). The last of them is a trip square, and wakes the spectre waiting beside it. "When is a wall not a wall?": five squares look just like the walls round them and are named WALL, but cost 4 action points to cross, the same as the floor.

Several squares look like floor and are something else. A creature that steps onto one of the three trap floors turns the eight squares round it into tangle vine, water or green fire. Three floor squares side by side in row 11 are teleports to row 5, column 4. The floor at rows 23 to 25 kills any creature that starts its turn on it. It runs the length of a corridor too long to cross in one turn, and the next section shows how a wizard gets to the end of it.

From the start, at row 31, column 4, a wizard can walk through the doors to the south and west of the building, and no further. Everything to the north and east lies beyond the wall at row 28, column 33, at the head of a passage whose far end holds the scroll YOUR EXIT IS AHEAD. It is the only wall in the domain that can be broken. A blow breaks terrain when a random number below twice the attacker's combat reaches the terrain's toughness ($6862): this wall's toughness is 5, and every other wall's is 255, which the number never reaches.

Beyond the wall, the way north runs along a passage beside a gallery where a troll and a giant walk with magic bows. Nobody can walk into the gallery: walls close it on three sides and a chasm on the fourth. A chasm, unlike a wall, does not block the view (the terrain flags at $D38E), so the two archers can see and shoot at anything in the passage across it ($9CC5).

The scroll that asks "When is a wall not a wall?" lies in the north, at row 9, column 17, and the walls it means lead on. The one at row 10, column 22 opens onto the three teleports in row 11, which send a creature to the rooms in the north-west corner. Those rooms have no way out on foot. They hold a diamond, which lies on the trap floor at row 5, column 9: the creature that steps on to take it is shut in by green fire, which can neither be entered nor broken. The FLOOD spell turns green fire into water ($7F09), which costs 12 action points a step and drowns a creature that cannot swim one time in four ($7F98). The rooms also hold the wooden floor, which is the way to the portal, as the section after next explains.

The keys decide which locked doors open. The scenario places two door keys, one at row 13, column 12 and one in the chest at the end of the corridor that kills, and a key is used up when it opens a door ($726C). Once the altar has done its work there are five locked doors: the four in row 16 and the one at row 26, column 29, into the corridor's dead end. Behind the third door in row 16, a chest at row 15, column 10 holds the chest key. That opens the locked chest at row 5, column 30, in the north-east. It holds the scroll about the green flame, with treasure and filled vials drawn at random as each game starts ($FE03), and opening it wakes three zombies.

04 · Scenario 3

Secret: it takes a wizard riding a mount to cross the corridor that kills in one turn

Behind the door at row 26, column 18, where the scroll SPEED IS OF THE ESSENCE lies, a corridor of 20 squares bends round a room to a dead end with a chest in it. A creature on the ground that starts its turn on the corridor's floor dies ($E3C9), so the run has to be made in a single turn.

The corridor needs the site's spectrum.js, which is served with the built site.

The corridor as the game draws it, with its door open. The line is the cheapest route from the doorway to the dead end, and each square on it shows the action points spent by the time a creature stands there ($CA2B). A creature's points and stamina are its type's ($D003), doubled under a speed or super potion ($9342), and a wizard's are its own: 30 when it is new and 40 at the most. The run is drawn in cyan and the wizard's walk after it gets off in green. A red square is where a creature is left on the floor that kills.

Each square of that floor costs 8 action points to cross, twice as much as an ordinary floor, and a diagonal step costs half as much again, 12 ($CA2B). The cheapest way from the open doorway to the dead end cuts every corner it can. It takes 16 steps and 144 action points, and as a step also costs half its points in stamina ($B4EB), 72 stamina too.

That is more than any creature has. The fastest on foot is the unicorn, with 56 action points a turn. A speed potion or a super potion doubles them ($9342), to 112, and that takes the unicorn to row 24, column 24, still 32 points short. A wizard has at most 40, or 80 under a potion. Flying does not help either: a creature cannot take off from these floors, or land in the dead end (bits 4 and 5 of the fifth byte of the floor's terrain record). A ghost, which pays 4 for any square, walls and all, has no need of the corridor, but it cannot pick anything up.

Two creatures can do it together. A rider spends nothing while its mount walks, so a unicorn under a speed potion carries its wizard to row 24, column 24, where the wizard gets off (RIDER, $71D3) and walks the last four steps, 32 action points, into the dead end. The unicorn, left on the floor with nothing to spare, dies at the start of the next turn, and it takes its rider with it if the rider is still on its back ($78D6).

The run needs setting up. Getting on a mount costs 10 action points ($718E), so the wizard does best to be on the unicorn's back, in the open doorway, before the turn of the run begins. A new wizard, with 30 action points, falls two short on the last step and dies a square from safety, unless it has drunk a potion too. The scenario leaves what the potion needs close by: SULPH, the speed potion's ingredient ($84CE), lies in the room inside the corridor's bend, at row 25, column 22, and a cauldron stands at row 30, column 5, beside the start.

The prize is the chest. It holds a door key, which the scenario puts there, and objects drawn at random as each game starts from a list of empty vials, apples, a magic apple and a magic mushroom ($FE03). The other way into the dead end is the locked door at row 26, column 29, and opening that uses up the other door key the scenario places, so a wizard who goes in that way comes out with the one key it went in with.

05 · Scenario 3

Secret: burning the wooden floor is how a flyer gets into the portal's hall

The hall at the centre, where RAGARIL starts and the portal opens at row 17, column 17, has walls all round and no door. The four teleport pads in its corners only take a creature out.

Each pad leads to a square of its own outside the hall ($E3AD). A teleport costs no action points, but walking onto one of those squares costs 254, so the pads are a way out and never a way in.

A flyer can cross any wall in this scenario. None of its walls has a roof (bit 3 of the fifth byte of the terrain record), so a step in the air costs 4 whatever lies below ($CA2B). A creature can take off or land only where the terrain allows it, though (bits 4 and 5 of the same byte, $6DC2), and every floor inside the building forbids both, except the floor of the hall itself.

The way round that is the wooden floor at rows 3 to 7, columns 20 to 24, in the north-west rooms that the teleports in row 11 lead to. The scroll THE FLAMES OF HOPE BURN BRIGHT ! lies on it. It is the only ground inside the building that MAGIC FIRE will take (the low four bits of the fourth byte of the terrain record, $86B2), and fire that dies down leaves WASTELAND ($7DBD), where a creature may take off. A wizard riding a pegasus or a gryphon, the two mounts with wings, can take off from the burnt floor, fly south over the walls and land in the hall beside the portal.

The other way in is the wizard's own TELEPORT spell, which puts the wizard near the square chosen, or fails if that square is solid ($8AE1).