Fictionally interactive

Gamebooks In Alan 3

It's easy to forget nowadays, but gamebooks in the analog world exploded in popularity at the same time parser-based interactive fiction did on computers. For a while, after the commercial death of both genres, fans of the latter looked down upon the former as an inferior form (though they won't admit it nowadays). Even so, people have tried to adapt their favorite tools for emulating all those cool choice-based adventures they'd grown up with. Inform 6 has the MCA extension by Krister Fundin (only available on the IF Archive). Inform 7 has the Adventure Book extension, itself a port of an older tool. Quest has a gamebook mode built in. Arguably these have all been obsoleted by dedicated tools such as Twine, but those throw out the baby with the bathwater. Ever played a parser-based game with menu-based conversation? Or an Inform game with a hint menu? There's room for both a parser and choices in the same game — an insufficiently explored avenue. But to pursue it requires a tool that can support both kinds of interaction at the same time, and that's rare: the aforementioned extensions are all-or-nothing solutions.

You'll be happy to hear, then, that Alan 3 supports gamebooks natively, by its very nature, and you don't have to sacrifice anything to make one.

How? Remember that unlike with most authoring systems, in Alan 3 exit names are arbitrary; they don't have to be picked from a predefined "compass". The interpreter still tracks all the exit names used in the game so it can say "you can't go that way" where appropriate, but that's done transparently, without bothering the author. So you can easily have exits named "a", "b", "c" and so on, corresponding to a list of options given in the room description...


	the outside_the_castle isa location
		name 'Outside the castle'
		description "The next few days of travel pass quietly, and
		you arrive at Redhill Castle with time to spare. Right away,
		you notice the anthill-like activity surrounding the massive
		construction. People are hard at work cleaning the moat and
		reinforcing the walls, while more guards than usual closely
		search everyone going in."

		style emphasized.
		"$pHow are you going to reach the king?
		$na) Bluff your way past the guards;
		$nb) climb the wall unnoticed by workers;
		$nc) use your Orb of Travel to blink in."
		style normal.

		exit a to trick_guards.
		exit b to climb_wall.
		exit c to blink_inside
			check charges of magic_orb > 0
			else "The magic of the orb is exhausted
				from too much use."
		end exit.
	end the outside_the_castle.

Yes, we're reusing locations for situations, but that's hardly a stretch. And the game works just fine without including the standard library; but that also leaves out some useful verbs, so you'll want to do something like:


	verb 'save' does save. "Game saved." end verb.
	verb 'restore' does restore. "Game restored." end verb.
	verb 'restart' does quit. end verb.
	verb 'quit' does quit. end verb.
	syntax 'save' = 'save'.
		'restore' = 'restore'.
		'restart' = 'restart'.
		'quit' = 'quit'.
		'quit' = 'q'.

All you have left to do is replacing the "you can't go that way" message with something more appropriate:


	message NO_WAY: "That's not an option right now."
	message UNKNOWN_WORD: "That's not a command or option in this game."

Ta-da! You have a perfectly good gamebook system, with the whole power of Alan 3 still at your disposal:

You can even have things like magic spells available at any time (nothing prevents you from defining some verbs if appropriate for the game). I'm not sure how actors would mesh with this way of using the system, but you'll probably need to use them one way or another if you want fantasy combat in the game. Speaking of which, see above about hybrid interfaces: the whole point of doing this in Alan 3 is that you don't have to give up the parser entirely.

Sadly, as of this writing I don't have a suitable story I could implement to test this proposal in practice. (Is there even a Cloak of Darkness equivalent for choice-based games? If not, we need one.) So for all I know there could be serious flaws in my plan. But it looks fairly solid. If you do try it, let me know how it goes. And thank you for reading.