Last active
August 29, 2015 14:10
-
-
Save selfsame/1fe0bbb036ed0de5f6b5 to your computer and use it in GitHub Desktop.
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
"dungeon planet" by Joseph Parker | |
Chapter 1 - Rules | |
Section 1(a) - Substance | |
[via http://inform7.com/learn/eg/rota/source.html] | |
A material is a kind of value. | |
The materials are stone, crystal, glass, wood, paper, bronze, copper, tin, silver, lead, iron, steel, dirt, sand, clay, flesh, bone, leather, cotton, sustenance and air. | |
A thing has a material. Things are usually stone. People are usually flesh. | |
Substance relates a thing (called the item) to a material (called the stuff) when the material of the item is the stuff. | |
The verb to be made of implies the substance relation. | |
[need to figure out better conditional form for this] | |
Definition: A thing is metallic if it is made of bronze or it is made of copper or it is made of tin or it is made of silver or it is made of iron or it is made of steel. | |
A thing can be constructed or elemental. Things are usually elemental. | |
Understand the material property as describing a thing when the item described is constructed. | |
Before printing the name of a constructed thing(called W): | |
Say "[the material of W] ". | |
Section 1(b) - Dice | |
[via http://inform7.com/learn/eg/rota/source.html] | |
A die roll is a kind of value. 3d20+9 specifies a die roll with parts dice, sides (without leading zeros), adds (without leading zeros, optional, preamble optional). | |
To decide which number is roll of (dr - a die roll): | |
let the total be the adds part of dr; | |
say "[dr]: "; | |
repeat with counter running from 1 to the dice part of dr: | |
let the roll be a random number from 1 to the sides part of dr; | |
unless the counter is 1, say ","; | |
say the roll; | |
increase the total by the roll; | |
if the adds part of dr is 0 and the dice part of dr is 1, decide on the total; | |
if the adds part of dr is not 0, say "+", adds part of dr; | |
say "=", total; | |
decide on the total. | |
Test rolling is an action out of world applying to one die roll. Understand "dice [die roll]" as test rolling. Carry out test rolling: say "For your own amusement, you roll "; let the total thrown be the roll of the die roll understood; say ", making [total thrown in words]." | |
Section 2(a) - Inventory | |
Instead of taking inventory: | |
Let EQ be the list of things worn by the actor; | |
Say "Equipment: [line break]"; | |
Repeat with I running through EQ: | |
Say " [I]"; | |
If I is a container(called H): | |
Say ":[line break]"; | |
Let HS be the list of things contained by H; | |
Repeat with II running through HS: | |
Say " [II][line break]"; | |
Else: | |
Say "[line break]"; | |
Let INV be the list of unworn things held by the actor; | |
Say "Inventory: [line break]"; | |
Repeat with I running through INV: | |
Say " [I][line break]". | |
Section 2(b) - Equipment | |
A weapon is a kind of thing. | |
Weapons have a die roll called damage. The damage of a weapon is usually 1d5. | |
Weapons are constructed. Weapons are usually bronze. | |
After printing the name of a weapon(called W): | |
Say " ([damage of W])". | |
Section 3 - Attacking | |
Every person has a number called hp. | |
The hp of a person is usually 12. | |
Every person has a number called maxhp. | |
When play begins: | |
repeat with the patient running through people: | |
Now the maxhp of the patient is the hp of the patient; | |
say "[patient] - [maxhp of patient][line break]". | |
Instead of attacking something(called victim): | |
Say "[actor] strikes [victim]!". | |
Chapter 2 - Objects | |
Section 1 - weapons | |
[Some kinds of weapon are defined by the table of weaponry.] | |
[Table of Weaponry | |
name damage | |
dagger 1d3 | |
hammer 2d3 | |
hatchet 1d5] | |
A sword is a kind of weapon. "A thin [material of noun] sword with a simple hilt. It's scratched and beginning to corrode." | |
The damage of the sword is 1d6. | |
knife is a kind of weapon. The damage of the knife is 1d2. | |
A hammer is a kind of weapon. The damage of a hammer is 2d3. | |
Section 2 - containers | |
Containers are constructed. Containers are usually wood. | |
Definition: A container is transparent if it is made of glass or it is made of crystal. | |
Section 4 - clothing | |
Definition: A thing is unworn if it is not worn. | |
Clothing is a kind of thing. Clothing is wearable. Clothing is usually constructed. Clothing is usually cotton. | |
Player's holdalls are constructed. A player's holdall is usually cotton. | |
Backpacks are a kind of player's holdall. | |
Shirts are a kind of clothing. | |
Trousers are a kind of clothing. | |
Gloves are a kind of clothing. | |
Hats are a kind of clothing. | |
Chapter 3 - Monsters | |
A monster is a kind of person. | |
After examining a monster (called M): | |
If M has a weapon (called W): | |
Say "[M] is wielding [W]". | |
Every turn: | |
If a monster (called M) is inside an open container (called C): | |
Try M exiting; | |
If a monster (called M) can see the player: | |
Try M attacking the player. | |
A skeleton is a kind of monster. | |
Skeletons are usually bone. | |
Every skeleton carries a stone knife. | |
Instead of giving something(called T) to a skeleton(called SK): | |
Say "The [SK] grabs the [T] from your hands and gobbles it up!"; | |
Now the SK has the T; | |
rule succeeds. | |
Chapter 4 - Rooms | |
The Damp Crypt is a room. "Cobwebs hang from the corners of a small damp room. A number of stone burial vessels are arranged haphazardly along it's perimeter. Behind you to the west is the dark hallway you entered from." | |
The Dark Hallway is a room. "You tread lightly on the dirt floor of this stone hallway. A dim glow is coming from a chamber to the east." The Dark Hallway is west of the Damp Crypt. | |
The player is wearing a cotton shirt, a leather trousers, and a leather hat. | |
The backpack is a player's holdall. The backpack is leather. The player is wearing the backpack. | |
The player is holding a lead hammer. | |
The player is in the dark hallway. | |
A coffin is a closed, openable container in the Damp Crypt. It is wood. | |
Inside the coffin is a sword, a skeleton, and a silver coin. | |
A chest is a closed, openable container in the Damp Crypt. It is glass. | |
Inside the chest is an iron knife. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment