Skip to content

Commit

Permalink
Reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
FictitiousFrode authored Mar 27, 2017
1 parent 1a6f83a commit 098b52d
Showing 1 changed file with 32 additions and 45 deletions.
77 changes: 32 additions & 45 deletions Directionality.i7x
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
Version 2/170327 of Directionality by Fictitious Frode begins here.
Version 1/150126 of Directionality by Fictitious Frode begins here.

"Provides automated listing of all exits from a room."

Include Epistemology by Eric Eve.
A room can be known or unknown. A room is usually unknown.

Carry out looking (This is the direction listing rule):
Let known-exits be a list of text;
Let unknown-exits be a list of text;
Repeat with direction running through directions:
Carry out looking (This is the Direction Listing rule):
Let known-exits be {""};
Now known-exits is {};
Let unknown-exits be {""};
Now unknown-exits is {};
repeat with direction running through directions:
Let destination be the room-or-door direction from location;
If destination is a door:
Unless destination is undescribed: [This should cover the Standard Rules' implementation of hidden doors]
Let throughfare be destination;
Let destination be the other side of destination from location;
If destination is visited or destination is known, add "[Destination] [are] [direction] (through [throughfare])" to known-exits;
Let throughfare be destination;
Let destination be the other side of destination from location;
If destination is visited or destination is known, add "[Destination] is [direction] (through [throughfare])" to known-exits;
Else:
If destination is visited or destination is known, add "[Destination] [are] [direction]" to known-exits;
If destination is not known and destination is unvisited, add "[direction]" to unknown-exits;
If destination is visited or destination is known, add "[Destination] is [direction]" to known-exits;
If destination is unknown and destination is unvisited, add "[direction]" to unknown-exits;
If number of entries in known-exits is 0:
If number of entries in unknown-exits is 0, say "There are no clear exits from here.";
else say "There are exits [unknown-exits].";
Expand All @@ -28,60 +29,46 @@ Directionality ends here.

---- DOCUMENTATION ----
Chapter 1 - Using this Extension
Chapter - Using this Extension
The main purpose for this extensions is for testing and development work, when room connections change and updating room descriptions can be easily forgotten.
To use this framework, you need to download and install it (which you probably have if you're reading this) and include it in your story:
The main functionality will come by just importing the extension in an Inform 7 project:
*:
Include Directionality by Fictitious Frode.
After printing the room description, Inform will now print a line listing all the exits from the current location.
If the player has knowledge of the destination by visiting it, the name will also be listed.
Note that this does not check that the player knows that this exits leads to the destination.
After printing the room description, Inform will now print a line listing all the exits from the current location. If the player has knowledge of the destination by visiting it, the name will also be listed. Note that this does not check that the player knows that this exits leads to the destination.
Section 1.1 - Exploration
The main purpose for this extensions is for testing and development work, when room connections change and updating room descriptions can be easily forgotten.
For games where the player is "exploring" an area that is known to the character, it's possible to set rooms as familiar, in order to have them show up in the destination listing.
Eric Eve's Epistemology extension is used to provide this support.
Section - Known Rooms
The Library is north of the Hallway.
The Hallway is familiar.
For games where the player is "exploring" an area that is know to the character, it's possible to set rooms as known, in order to have them show up in the destination listing.
When determining wether an exit is known or unknown, it's not the exit that's being evaluated but the destination.
This has some implications for rooms that are accessible from multiple directions, and shortcuts.
Secret doors are handled according to the Standard Rules; a door that is not described is not listed.
The Library is north of the Hallway.
The Hallway is known.
Section 1.2 - Version History
Chapter - Technical Notes
2015-01-26 (Release 1)
When determining wether an exit is known or unknown, it's not the exit that's being evaluated but the destination. This has some implications for rooms that are accessible from multiple directions, and shortcuts.
Initial functionality.

Release 2 (In development)
Secret/hidden connections are not handled, but is a point for future updates.
Incorporated Eric Eve's Epistemology instead of the custom 'known/unknown' property.
Support for hidden doors, as implemented in the Standard Rules (using undescribed to imply the player is unaware they exist)
Minor documentation changes.
Section - Version History
Section 1.3 - Contact Info
Section - Contact Info
The author of this extension can be reached in the following ways:
The author of the framework can be reached in the following ways:
Mail: fictitious.frode@gmail.com
Blog: https://informedaif.wordpress.com/ is a blog dedicated to writing AIF with Inform 7, and is the official host of the extension. It contains both dicussions around AIF and tutorials on both Inform in general and this extension in particular.
Reddit: https://www.reddit.com/r/AIFCentral/ is the subreddit for the AIF community, and the author checks this regularly.
GitHub: https://github.com/FictitiousFrode/AIF Contains the latest version of the extension, possibly including functionality that hasn't been released yet.
* Mail: fictitious.frode@gmail.com
* Blog: https://informedaif.wordpress.com/ is a blog dedicated to writing AIF with Inform 7, and is the official host of the framework. It contains both dicussions around AIF and tutorials on both Inform in general and this framework in particular.
* Reddit: https://www.reddit.com/r/AIFCentral/ is the subreddit for the AIF community, and the author checks this regularly.
Feedback of all varieties is welcome, but constructive criticism and discussion is the most appreciated, along with reports of bugs and other issues.
For support I would appreciate using public communication, so that other may learn from the request as well.
Feedback of all varieties is welcome, but constructive criticism and discussion is the most appreciated, along with reports of bugs and other issues. For support I would appreciate using public communication, so that other may learn from the request as well.
Example: * Directions to known and unknown rooms.
Library is a room. "This is a library."
Closet is inside from Library. "A small closet."
Closet is familiar.
Closet is known.
Hallway is south of Library. "A long hallway."
Bathroom is a room. "A public bathroom."
A bathroom door is a door. A bathroom door is north of library and south of bathroom.
Expand Down

0 comments on commit 098b52d

Please sign in to comment.