Skip to content

Instantly share code, notes, and snippets.

@jbz
Created February 22, 2012 21:44
Show Gist options
  • Save jbz/1887609 to your computer and use it in GitHub Desktop.
Save jbz/1887609 to your computer and use it in GitHub Desktop.
Bombs
An ID Bomb is a kind of thing. An ID Bomb is portable. An ID Bomb can be disarmed, armed or dead. An ID Bomb is disarmed. The description of an ID Bomb is "[if disarmed]A small home-made device consisting of the flash and capacitor from a disposable camera, the radio chip from a disposable cell phone and a small homebrew timing circuit. It can be armed using its single button.[otherwise if armed]The LED labelled 'ARMED' is blinking green at increasingly shorter intervals.[otherwise]This ID Bomb looks slightly scorched and smells of burnt plastic."
In the backpack are ten ID Bombs.
At the time when the ID Bomb detonates:
say "There is a bright flash and nearly-ultrasonic whine as the ID Bomb discharges its capacitor through its radio chip![line break]";
now the player is suspect;
now the noun is dead.
The Blasting Charge is portable. The Blasting Charge can be safe or fuzed. The Blasting Charge is safe. The Blasting Charge can be set or unset. The Blasting Charge is unset. The description of the Blasting Charge is "[if safe]A gray-green brick of blasting plastic, soft and slightly tacky. There is a detonator integrated into one side of the brick; an arming tab extends out, waiting to be pulled.[otherwise]A menacing-looking block of blasting plastic. The detonater is hissing slightly. The arming tab has been pulled."
The Blasting Charge is in the backpack.
At the time when the Blasting Charge detonates:
if the location of the Blasting Charge is the location:
say "There is a flash of light! But before you can see anything else, the shockwave of hot gas from the charge crushes your body![line break]";
end the story;
otherwise if the Blasting Charge is in an adjacent room:
say "There is a loud [bold type]BOOM[roman type] from nearby![line break]";
remove the Blasting Charge from play;
otherwise:
say "There is an explosion from some distance off![line break]";
remove the Blasting Charge from play.
Arming is an action applying to one thing.
Carry out arming:
if the noun is an ID Bomb:
if the noun is disarmed:
say "You press the button, arming [the noun].";
now the noun is armed;
the ID Bomb detonates in two turns from now;
otherwise:
say "You press the button, but nothing happens.";
otherwise If the noun is a Blasting Charge:
if the noun is safe:
say "You pull the arming strip out and drop it, arming [the noun].";
now the Blasting Charge is fuzed;
the Blasting Charge detonates in four turns from now;
if player surveilled:
the player incriminates in one turn from now;
otherwise:
say "There is no tab to pull! The charge is already armed, and the detonator is hissing![line break]";
otherwise:
say "You can't arm that![line break]".
Understand "arm [something]" as arming.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment