Advertisement
Shadowolf3400

Adult Layered Garments (v5) for Inform7

Jul 18th, 2013
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.97 KB | None | 0 0
  1. Version 5/130805 of Adult Layered Garments by Shadow Wolf begins here.
  2.  
  3. "Adding on to Layered Garments, with more adult-related clothes and actions."
  4.  
  5. Include version 11 of Layered Garments by Shadow Wolf.
  6.  
  7. Volume - Skirts and Trousers
  8.  
  9. A garment-element can be skirted. A garment can be skirt-compatible. A garment can be trousered. [Trousered garments cannot be worn over skirted ones.]
  10.  
  11. Check an actor wearing a trousered garment when a skirted garment-element (called G) is borne by the actor:
  12. say "[It-they of the actor] can't wear that over [the G]." instead.
  13.  
  14. To decide whether (X - a skirted garment-element) prevents wearing (Y - a skirt-compatible garment): no.
  15.  
  16. A pair of underpants is usually skirt-compatible and trousered. A dress-skirt is usually skirted. A pair of pants is usually trousered.
  17.  
  18. A skirt is a kind of garment. A skirt is usually skirted.
  19. A layering rule:
  20. now every skirt overlies every pair of underpants;
  21. now every skirt overlies every bodysuit-bottom.
  22.  
  23. Volume - Pantyhose
  24.  
  25. A pair of pantyhose is a kind of garment. A pair of stocking-feet are a kind of garment-piece. A pair of stocking-feet is part of every pair of pantyhose. A pair of pantyhose is usually trousered and skirt-compatible.
  26.  
  27. The plural of pair of pantyhose is pairs of pantyhose. The plural of pair of stocking-feet is pairs of stocking-feet.
  28.  
  29. A layering rule:
  30. now every pair of pants overlies every pair of pantyhose;
  31. now every dress-skirt overlies every pair of pantyhose;
  32. now every skirt overlies every pair of pantyhose;
  33. now every pair of pantyhose overlies every pair of underpants;
  34. now every pair of pantyhose overlies every bodysuit-bottom;
  35. now every pair of shoes overlies every pair of stocking-feet;
  36. now every pair of stocking-feet overlies every pair of feet.
  37.  
  38. Volume - Intimates
  39.  
  40. [Clothing can be flagged as "intimate". This is usually for the author's convenience - someone might be willing to remove regular clothing but not intimate clothing.]
  41.  
  42. A garment can be intimate. Foundation garments, pairs of underpants, bodysuits, and pairs of pantyhose are usually intimate.
  43.  
  44. Volume - Undressing
  45.  
  46. Undressing is an action applying to nothing. Understand "undress" or "strip" or "strip down" as undressing.
  47.  
  48. Check an actor undressing when the actor wears no garments: say "[The actor] [is-are] already naked." instead.
  49.  
  50. The undressing action has a list of garments called the removed garments;
  51. Carry out an actor undressing:
  52. now the dressing-person is the actor;
  53. now removed garments are the coverage-sorted list of garments worn by the dressing-person;
  54. reverse the removed garments; [the above produces innermost to outermost, we want the reverse]
  55. repeat with item running through removed garments:
  56. silently try the actor taking off the item;
  57. if the actor is wearing the item, break;
  58. remove the list of garments worn by the dressing-person from removed garments;
  59.  
  60. Report an actor undressing:
  61. say "[The actor] remove[s] [the removed garments with definite articles]. ";
  62. if the actor wears a garment:
  63. say "[It-they of the actor] [is-are] still wearing [the list of unconcealed garments worn by the actor].";
  64. otherwise:
  65. say "[paragraph break]";
  66.  
  67. Volume - Stripping It From
  68.  
  69. Use extended stripping translates as (- Constant EXTENDED_STRIPPING; -).
  70.  
  71. Stripping it from is an action applying to two things.
  72.  
  73. Understand "take [an garment] off of [someone]" as stripping it from.
  74. Understand "remove [an garment] from [someone]" as stripping it from.
  75. Understand "strip [an garment] from [someone]" as stripping it from.
  76.  
  77. Definition: A garment is other-worn if it is worn by someone who is not the person asked.
  78.  
  79. Understand "remove [an other-worn garment]" as stripping it from.
  80. Rule for supplying a missing second noun while an actor stripping:
  81. now the second noun is the holder of the noun.
  82.  
  83. Before an actor stripping something from when the second noun is the actor: try the actor taking off the noun instead.
  84. Before an actor stripping a garment-piece from: try the actor stripping the holder of the noun from the second noun instead.
  85.  
  86. Before an actor stripping a garment which is impeded by something which is borne by the second noun from someone (this is the remove intervening clothing when stripping rule):
  87. if the extended stripping option is active, make no decision;
  88. while the noun is impeded by an uppermost garment-element (called the impediment) which is borne by the second noun:
  89. report implicitly removing the impediment;
  90. silently try the actor stripping the impediment from the second noun;
  91. if second noun bears the impediment, stop the action.
  92.  
  93. Check an actor stripping a garment from someone (this is the cant strip covered clothing rule):
  94. if an uppermost garment-element (called the impediment) borne by the second noun impedes the noun, say "[The impediment] is in the way." instead;
  95. if a garment-element (called the impediment) borne by the second noun impedes the noun, say "Something seems to be in the way." instead. [Check for invisible clothing]
  96.  
  97. Check an actor stripping a garment from someone when the noun is not worn by the second noun (this is the cant strip garments worn by the wrong person rule):
  98. instead say "[The second noun] [is-are]n't wearing [that-those of the noun]."
  99.  
  100. Carry out an actor stripping a garment from someone (this is the standard stripping garments rule):
  101. doff the noun;
  102. now the actor carries the noun.
  103.  
  104. Report an actor stripping something from someone (this is the standard report stripping rule):
  105. if the second noun is not the player:
  106. say "[The person asked] remove[s] [the noun] from [the second noun].";
  107. otherwise:
  108. say "[The person asked] take[s] [the noun] off of you.";
  109.  
  110. Section - Extended Stripping for normal removal
  111.  
  112. The take off intervening clothing before removing rule is not listed in the before rulebook.
  113.  
  114. Before an actor taking off a garment which is impeded by something which is borne by the actor (this is the replacement take off intervening clothing before removing rule):
  115. if the extended stripping option is not active, abide by the take off intervening clothing before removing rule.
  116.  
  117. Volume - Openable Garments (for use with Openable Garments by Shadow Wolf)
  118.  
  119. A skirt is usually shiftable and liftable. A dress-skirt is usually shiftable. A dress is usually liftable.
  120. A pair of underpants is usually shiftable and pushable.
  121. A pair of pantyhose is usually rippable.
  122.  
  123. Stripping something from someone is garment manipulation. [Follows the garment access rules.]
  124.  
  125. Volume - Gendered Garments and Transvestitism
  126.  
  127. Use gender-restricted clothing translates as (- Constant GENDERED_CLOTHING; -).
  128.  
  129. A garment can be feminine, masculine, or ungendered. A garment is usually ungendered.
  130.  
  131. Check an actor wearing a feminine garment when the actor is male not neuter and the gender-restricted clothing option is active: instead say "[The actor] do[es] not have the right curves to wear [that-those of the noun]."
  132.  
  133. Check an actor wearing a masculine garment when the actor is female not neuter and the gender-restricted clothing option is active: instead say "[The actor] isn't equipped to wear [that-those of the noun]."
  134.  
  135. Skirts are usually feminine. Dresses are usually feminine. Foundation garments are usually feminine. A pair of pantyhose is usually feminine.
  136.  
  137. Definition: A man is crossdressing if he is wearing a feminine garment.
  138. Definition: A woman is crossdressing if she is wearing a masculine garment.
  139.  
  140. Adult Layered Garments ends here.
  141.  
  142. Volume - Naming Garment Pieces
  143.  
  144. [This is basically to add some properties to complex garments so the author can find the pieces more easily. Other garment setup rules can be added too.]
  145.  
  146. Garment setup rules are an object-based rulebook. The garment setup rulebook has an object called the current item.
  147.  
  148. The first garment setup rule for a garment-element (called the element): now the current item is the element.
  149.  
  150. When play begins:
  151. repeat with item running through garment-elements:
  152. follow the garment setup rules for the item.
  153.  
  154. The dummy garment-piece is a garment-piece. [Unused, necessary to prevent the compiler from complaining if there aren't any complex garments.]
  155.  
  156. A dress has a garment-piece called the bottom. Garment setup for a dress-skirt: Now the bottom of the holder of the current item is the current item.
  157. A pair of pantyhose has a garment-piece called the feet. Garment setup for a pair of stocking-feet: Now the feet of the holder of the current item is the current item.
  158. A bodysuit has a garment-piece called the bottom. Garment setup for a bodysuit-bottom: Now the bottom of the holder of the current item is the current item.
  159.  
  160. Volume - Concealing hidden garments
  161.  
  162. Use hidden clothing translates as (- Constant HIDDEN_CLOTHING; -).
  163.  
  164. Rule for deciding the concealed possessions of a person when the hidden clothing option is active:
  165. if the particular possession is not a garment-element, make no decision;
  166. if the particular possession is a body-part, no;
  167. if the particular possession is an unconcealed garment, no; [complex garments are visible if any portion of them is visible.]
  168. if the particular possession is not uppermost, yes.
  169.  
  170. ---- DOCUMENTATION ----
  171.  
  172. Adult Layered Garments Documentation
  173.  
  174. Adult Layered Garments is an add-on for the Layered Garments extension, adding additional behavior which is primarily of interest to AIF authors. It is integrated with, but does not require, Openable Garments, and should work with other extensions in this series.
  175.  
  176. What is included: Skirts are defined, which allow underwear to be worn or removed without taking off the skirt. Pantyhose are defined. "Intimate" garments can be flagged, making it easier for an author to specify how far someone is willing to strip down.
  177.  
  178. An "undress" verb is defined - this simply removes all the player's clothing. A new action, "stripping it from" is defined to allow actors to remove other people's clothing. (e.g. "TAKE PANTS OFF OF BOB").
  179.  
  180. Details are in the following sections.
  181.  
  182. Section: Skirts and Trousers
  183.  
  184. We now have "skirted", "skirt-compatible", and "trousered" properties. "Skirted" must be defined on a garment-element, specifically one overlying the seat (and those overlying legs, if those are defined). "Skirt-compatible" and "trousered" are defined on overall garments.
  185.  
  186. The effect is that a skirt-compatible garment can be worn underneath a skirted one, without removing the skirt. A trousered garment cannot be worn over a skirted one. (No automatic removal check at present, though.)
  187.  
  188. A new kind of garment, the skirt (overlying underpants and bodysuit-bottoms, hence on the same effective layer as pants) is defined. The existing dress-skirt garment piece is also defined as skirted. Underpants are defined as skirt-compatible, and both underpants and pants are trousered.
  189.  
  190. Trousered has little current effect - it would be primarily important if you defined a slip or half-slip skirted garment (beneath skirts, over underpants), or if you created a trousered "hazmat suit" that overlaid pants.
  191.  
  192. Section: Pantyhose
  193.  
  194. The extension defines pantyhose, a complex garment covering the seat and feet. These go underneath pants and skirts, and on top of underpants and bodysuits. Their foot portion lies between the foot and shoes, on the same layer as socks. Pantyhose are skirt-compatible and trousered.
  195.  
  196. Section: Intimates
  197.  
  198. The intimate property on a garment merely indicates that most people will be more reluctant to remove that garment (i.e. the player has to solve a puzzle or set the right situation first). There are no specific rules which make use of this - add "Instead of taking off an intimate garment when..." rules as necessary. (Probably along with "Instead of stripping an intimate garment from").
  199.  
  200. By default, intimate garments include foundation garments (i.e. bras and camisoles), bodysuits, underpants, and pantyhose.
  201.  
  202. Section: Undressing [TODO: Need to change action name in extension]
  203.  
  204. The undressing action is simple - it removes all garments worn by the actor (from outermost to innermost). It stops if a garment is encountered which can't be removed, which may leave the actor partially dressed. In all cases, it reports which garments were removed, and which ones the actor is still wearing.
  205.  
  206. Section: Removing clothes from other people [TODO]
  207.  
  208. The default behavior of "REMOVE ANNE'S BLOUSE" is to try to take the blouse (because the "Taking it off" action works on held items). This usually fails due to the block giving rules.
  209.  
  210. The extension defines a "stripping it from" action with appropriate grammar. The actor will end up carrying the garment (unless the removal fails, of course). Otherwise the rules are similar to taking off garments.
  211.  
  212. The author will likely wish to write "Instead of removing X from Y" rules to prevent stripping someone who's unwilling - unless you are using Openable Garments (see below). "After stripping X from Y" rules to replace the default message are also likely, of course.
  213.  
  214. There is no "undress someone" action to completely strip them at once - most AIF authors will want players to take their time and savor the experience...
  215.  
  216. Section: Integration with Openable Garments
  217.  
  218. Skirts (including dress-skirts) are liftable. Underpants can be pushed aside. Pantyhose are rippable.
  219.  
  220. Finally, "stripping it from" is garment manipulation - meaning it will follow the garment access rules, allowing the wearer to refuse.
  221.  
  222. Section: Gendered Garments
  223.  
  224. Garments can be declared feminine, masculine, or ungendered. By default, this has no effect except that someone is "crossdressing" if they are wearing something of the wrong gender. You could check for this, if it matters, or just ignore it.
  225.  
  226. If you actually want to *forbid* transvestitism, declare "Use gender-restricted clothing." This adds a pair of check rules which prevent wearing the wrong sorts.
  227.  
  228. By default, most garments are ungendered. Skirts, dresses, pantyhose, and foundation garments are declared as feminine - individual garments (e.g. kilts, men's undershirts) may need to declare differently. Other kinds of gendered garments will need to be declared on the individual garment, or new kinds created (e.g. "A blouse is a kind of shirt. A blouse is usually feminine.")
  229.  
  230. Obviously some skirts (aka kilts) are wearable by men or women - simply declare them to be ungendered. Similarly with any foundation garments that men can wear - most foundation garments are bras, camisoles, etc. Blouses vs. shirts, panties vs. underpants, etc. are too divided to make a standard declaration - either define specific kinds, or define the appropriate gender on each individual garment. If you don't use gender-restricted clothing, and you aren't going to check for crossdressing, then there's no need to worry about the details.
  231.  
  232. Note: Prior to version 5, gendered clothing used the same adjectives as persons (male, female, neuter). I finally realized that this could cause some pronoun problems with Plurality (e.g. a bra referred to as "she" by "[it-they]"), and so I've changed the adjectives used.
  233.  
  234. Section: Hidden Clothing
  235.  
  236. By default, the Layered Clothing extension allows players to refer to any clothing, even if it's hidden by other clothing. This extension adds a "Use hidden clothing" option - when this option is added, clothing which is covered up will not be accessible. ("Covered up" here means that all parts of the garment are under something closed and opaque.) Note that body-parts are never concealed - the player knows they're there.
  237.  
  238. Clothing worn by the player is always accessible, though.
  239.  
  240. Section: Extended stripping
  241.  
  242. The Layered Garments extension tries to be very helpful by automatically removing any garments that are in the way of wearing or taking off actions. The stripping it from action in this extension is similarly helpful. An AIF author may want to avoid this implicit removal and force the player to remove garments in the proper order.
  243.  
  244. To this end, this extension adds the "Use extended stripping" option. When enabled, the implicit removal rules are disabled for the taking off and stripping actions. (The wearing action, on the other hand, retains them.)
  245.  
  246. Section: Change History
  247.  
  248. Version 2/130718: First published release.
  249.  
  250. Version 3/130719:
  251. - Added the option to "Use gender-restricted clothing", and detection of crossdressers.
  252. - Added option to "Use hidden clothing."
  253. - Added garment piece properties.
  254. - Fixed Sections in documentation
  255.  
  256. Version 4:
  257. - Added the "Use extended stripping" option, which disables the automatic removal of garments (when stripping or taking off clothes only).
  258. - Verified that when before/check rules mention impediments, that only unconcealed/uppermost items are used.
  259. - Replaced "Carry out X activity" with phrases newly defined in Layered Garments
  260. - Openable Garments integration: Stripping it from is garment manipulation and follows the garment access rules.
  261.  
  262. Version 5:
  263. - Version 11 of Layered Garments replaces "sporting" relation with "bearing". Updated for compatibility.
  264. - Gendered garments: replaced "male" and "female" with "masculine, feminine, ungendered" to avoid pronoun issues with Plurality.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement