Advertisement
ralphmerridew

Insecurity Area

Jul 7th, 2011
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. "Insecurity Area" by ralphmerridew
  2.  
  3. An object can be metal.
  4. An object can be visibly dangerous.
  5. An object can be lead.
  6.  
  7.  
  8. Airport Security Left is a room. "There are security lines northwest (outward search) and north / northeast (open container search), and more lines to the east."
  9. Airport Security Right is east of Airport Security Left. "There are security lines northwest (metal detector) and north / northeast (a reporter), and more lines to the west."
  10. Secure Area is a room.
  11. Secure Area is northeast of Airport security left. Secure Area is northwest of Airport security left. Secure area is north of airport security left. Secure area is up from airport security left. Secure area is down from airport security left.
  12. Secure Area is northeast of Airport security right. Secure Area is north of airport security right. Secure Area is northwest of Airport security right.
  13.  
  14. Airport security right is southeast of secure area.
  15.  
  16. [ =========================================================== ]
  17.  
  18. Before going northwest from Airport security left:
  19. if the player holds a visibly dangerous object, say "The guard points at [the random visibly dangerous object held by the player] as you approach." instead.
  20.  
  21.  
  22.  
  23. Definition: A container is guard2 transparent:
  24. if it is open or it is transparent, decide yes;
  25. decide no.
  26.  
  27. Definition: An object is guard2 dangerous:
  28. If it is visibly dangerous, decide yes;
  29. If it is a supporter and it supports a guard2 dangerous object, decide yes;
  30. If it is a container and it is guard2 transparent and it contains a guard2 dangerous object, decide yes;
  31. decide no.
  32.  
  33. Definition: An object is guard2b dangerous if it is visibly dangerous and the player can see it.
  34.  
  35. Before going down from airport security left:
  36. if the player encloses a guard2b dangerous object, say "The guard points at [the random guard2b dangerous object held by the player] as you approach." instead.
  37.  
  38. Before going north from Airport security left:
  39. if the player holds a guard2 dangerous object, say "The guard points at [the random guard2 dangerous object held by the player] as you approach." instead.
  40.  
  41. To decide what object is the guard3 objection to (thing - an object):
  42. if thing is visibly dangerous, decide on thing;
  43. if thing is a supporter:
  44. repeat with child running through objects on thing:
  45. let temp be the guard3 objection to child;
  46. if temp is not nothing, decide on temp;
  47. if thing is a container:
  48. if thing is open or thing is transparent:
  49. repeat with child running through objects in thing:
  50. let temp be the guard3 objection to child;
  51. if temp is not nothing, decide on temp;
  52. if thing is the player:
  53. repeat with child running through objects held by thing:
  54. let temp be the guard3 objection to child;
  55. if temp is not nothing, decide on temp;
  56. decide on nothing.
  57.  
  58. Before going northeast from Airport security left:
  59. let temp be the guard3 objection to the player;
  60. if temp is not nothing, say "The guard points at [the temp] as you approach." instead.
  61.  
  62. [To fill (L - a list of objects) with guard4 objections to (thing - an object):]
  63. [To decide the fill of (L - a list of objects) with guard4 objections to (thing - an object):]
  64. To decide what list of objects is the guard4 objections to (thing - an object):
  65. let L be a list of objects;
  66. [say "Before handling [thing]: [L][line break]";]
  67. if thing is visibly dangerous, add thing to L;
  68. if thing is a supporter:
  69. repeat with child running through objects on thing:
  70. [fill L with guard4 objections to child;]
  71. add (guard4 objections to child) to L;
  72. if thing is a container:
  73. if thing is open or thing is transparent:
  74. repeat with child running through objects in thing:
  75. add (guard4 objections to child) to L;
  76. [fill L with guard4 objections to child;]
  77. if thing is the player:
  78. repeat with child running through objects held by thing:
  79. add (guard4 objections to child) to L;
  80. [fill L with guard4 objections to child;]
  81. [say "After handling [thing]: [L][line break]";]
  82. decide on L.
  83.  
  84. Before going up from airport security left:
  85. [let L be a list of objects;
  86. fill L with guard4 objections to the player;]
  87. let L be guard4 objections to the player;
  88. if L is not empty, say "The guard shakes his head as you approach. 'Sorry, you'll have to leave [L with definite articles] behind to go past this point." instead.
  89.  
  90. Before going northwest from airport security right:
  91. if the player encloses a metal object, say "The metal detector beeps loudly as you attempt to pass. You won't be able to get through with [the list of metal objects enclosed by the player]." instead.
  92.  
  93.  
  94. Definition: An object is superman transparent:
  95. if it is open, decide yes;
  96. if it is a supporter, decide yes;
  97. if it is lead, decide no;
  98. if it is a container, decide yes;
  99. decide no.
  100.  
  101. Definition: an object is Superman dangerous:
  102. if it is visibly dangerous, decide yes;
  103. if it is superman transparent:
  104. if it is a container and it contains a Superman dangerous object, decide yes;
  105. if the object is a supporter and the object supports a Superman dangerous object, decide yes;
  106. decide no.
  107.  
  108. Before going north from airport security right:
  109. if the player holds a superman dangerous object, say "The reporter shakes his head and points as [the random superman dangerous object held by the player] as you approach." instead.
  110.  
  111. To decide what object is the superman objection to (item - an object):
  112. [say "(He seems to be staring at [the item])[line break]";]
  113. if item is visibly dangerous, decide on item;
  114. if item is superman transparent:
  115. if item is a container:
  116. repeat with child running through objects in item:
  117. let temp be the superman objection to child;
  118. if temp is not nothing, decide on temp;
  119. if item is a supporter:
  120. repeat with child running through objects on item:
  121. let temp be the superman objection to child;
  122. if temp is not nothing, decide on temp;
  123. if item is the player:
  124. repeat with child running through objects held by item:
  125. let temp be the superman objection to child;
  126. if temp is not nothing, decide on temp;
  127. decide on nothing.
  128.  
  129. Before going northeast from Airport security right:
  130. let temp be the superman objection to the player;
  131. if temp is not nothing:
  132. if the player can see temp, say "The guard points at [the temp] as you approach." instead;
  133. say "The reporter seems to be pointing at [the temp] as you approach ... He couldn't see it ... Could he?" instead.
  134.  
  135. A knife is a kind of thing. Understand "knives" as the plural of a knife.
  136.  
  137. The player holds a ceramic knife. The ceramic knife is visibly dangerous knife.
  138. The player holds a steak knife. The steak knife is metal. It is visibly dangerous knife.
  139. The player holds a gun. The gun is metal. It is visibly dangerous.
  140. The player holds a bag. The bag is an openable container.
  141. The player holds a lead box. The lead box is an openable container. It is lead. It is metal.
  142. The player holds a clear plastic box. The clear plastic box is a transparent openable container.
  143. The player holds a plastic tray. The plastic tray is a portable supporter.
  144. The can't put onto something being carried rule is not listed in any rulebook.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement