Created
February 23, 2012 22:12
-
-
Save jbz/1895343 to your computer and use it in GitHub Desktop.
Blasting test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
At the time when an explosion occurs: | |
repeat with activeMunition running through exploding explosives: | |
if the activeMunition is an ID bomb: | |
if the location of the activeMunition is the location: | |
say "There is a bright flash and nearly-ultrasonic whine as the ID Bomb discharges its capacitor through its radio chip! You feel a slight tickle in your skull from your dead Mit-Klein bottle circuits. The lights flicker."; | |
now the player is suspect; | |
now the activeMunition is exploded; | |
otherwise: | |
say "The lights flicker very slightly. In the distance, you hear murmuring."; | |
otherwise if the activeMunition is the Blasting Charge: | |
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 fireball from the blasting charge crushes and burns you![line break]"; | |
end the story saying "You have died."; | |
otherwise if the Blasting Charge is in an adjacent room: | |
say "There is a loud [bold type]BOOM[roman type] from nearby! The floor shakes."; | |
remove the Blasting Charge from play; | |
otherwise: | |
say "There is an explosion from some distance off![line break]"; | |
remove the Blasting Charge from play. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment